@libreflare/worker-runtime 0.10.5 → 0.10.6

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 (56) hide show
  1. package/README.md +26 -12
  2. package/dist/rule-evaluator/constants.d.ts +1 -1
  3. package/dist/rule-evaluator/constants.d.ts.map +1 -1
  4. package/dist/rule-evaluator/constants.js +5 -0
  5. package/dist/rule-evaluator/constants.js.map +1 -1
  6. package/dist/rule-evaluator/country-codes.generated.js +1 -1
  7. package/dist/rule-evaluator/diagnostics.d.ts +1 -1
  8. package/dist/rule-evaluator/diagnostics.d.ts.map +1 -1
  9. package/dist/rule-evaluator/diagnostics.js +5 -0
  10. package/dist/rule-evaluator/diagnostics.js.map +1 -1
  11. package/dist/rule-evaluator/edge-field-gaps.d.ts.map +1 -1
  12. package/dist/rule-evaluator/edge-field-gaps.js +27 -4
  13. package/dist/rule-evaluator/edge-field-gaps.js.map +1 -1
  14. package/dist/rule-evaluator/engine-observations.generated.d.ts +38 -1
  15. package/dist/rule-evaluator/engine-observations.generated.d.ts.map +1 -1
  16. package/dist/rule-evaluator/engine-observations.generated.js +19 -2
  17. package/dist/rule-evaluator/engine-observations.generated.js.map +1 -1
  18. package/dist/rule-evaluator/explain.js +2 -2
  19. package/dist/rule-evaluator/explain.js.map +1 -1
  20. package/dist/rule-evaluator/function-descriptions.d.ts +2 -0
  21. package/dist/rule-evaluator/function-descriptions.d.ts.map +1 -1
  22. package/dist/rule-evaluator/function-descriptions.generated.d.ts +131 -15
  23. package/dist/rule-evaluator/function-descriptions.generated.d.ts.map +1 -1
  24. package/dist/rule-evaluator/function-descriptions.generated.js +1173 -341
  25. package/dist/rule-evaluator/function-descriptions.generated.js.map +1 -1
  26. package/dist/rule-evaluator/function-descriptions.js.map +1 -1
  27. package/dist/rule-evaluator/function-signature-validation.d.ts.map +1 -1
  28. package/dist/rule-evaluator/function-signature-validation.js +33 -3
  29. package/dist/rule-evaluator/function-signature-validation.js.map +1 -1
  30. package/dist/rule-evaluator/functions.d.ts.map +1 -1
  31. package/dist/rule-evaluator/functions.js +101 -16
  32. package/dist/rule-evaluator/functions.js.map +1 -1
  33. package/dist/rule-evaluator/minifier.d.ts +9 -0
  34. package/dist/rule-evaluator/minifier.d.ts.map +1 -1
  35. package/dist/rule-evaluator/minifier.js +23 -0
  36. package/dist/rule-evaluator/minifier.js.map +1 -1
  37. package/dist/rule-evaluator/operators.d.ts.map +1 -1
  38. package/dist/rule-evaluator/operators.js +15 -6
  39. package/dist/rule-evaluator/operators.js.map +1 -1
  40. package/dist/rule-evaluator/parse-cache.d.ts +3 -1
  41. package/dist/rule-evaluator/parse-cache.d.ts.map +1 -1
  42. package/dist/rule-evaluator/parse-cache.js +4 -0
  43. package/dist/rule-evaluator/parse-cache.js.map +1 -1
  44. package/dist/rule-evaluator/parser.d.ts +7 -1
  45. package/dist/rule-evaluator/parser.d.ts.map +1 -1
  46. package/dist/rule-evaluator/parser.js +14 -0
  47. package/dist/rule-evaluator/parser.js.map +1 -1
  48. package/dist/rule-evaluator/quantifier.d.ts +2 -0
  49. package/dist/rule-evaluator/quantifier.d.ts.map +1 -1
  50. package/dist/rule-evaluator/quantifier.js +18 -9
  51. package/dist/rule-evaluator/quantifier.js.map +1 -1
  52. package/dist/rule-evaluator/validation.d.ts +1 -0
  53. package/dist/rule-evaluator/validation.d.ts.map +1 -1
  54. package/dist/rule-evaluator/validation.js +103 -19
  55. package/dist/rule-evaluator/validation.js.map +1 -1
  56. package/package.json +1 -1
package/README.md CHANGED
@@ -54,14 +54,14 @@ Analysis:
54
54
 
55
55
  Validation:
56
56
 
57
- - `validateRuleExpressionSyntax`: syntax, length, and field availability validation for Cloudflare URL Rewrite Rule filter expressions by default. Pass an explicit config object for minification, length enforcement, preset, field availability, deprecated-field notices, and list-reference policy. The presets are `url-rewrite-filter`, `url-rewrite-target`, `custom-rule` for the Custom Rules of a zone, and `logging-source-key`. With minification enabled it validates the minified expression against Cloudflare's 4096-character rule limit by default; when minification is disabled, the result omits `minifiedExpression` and `minifiedLength`.
57
+ - `validateRuleExpressionSyntax`: syntax, length, and field availability validation for Cloudflare URL Rewrite Rule filter expressions by default. Pass an explicit config object for minification, length enforcement, preset, field availability, deprecated-field notices, and list-reference policy. The presets are `url-rewrite-filter`, `url-rewrite-target`, which reads the expression as one value rather than a condition, `custom-rule` for the Custom Rules of a zone, and `logging-source-key`. With minification enabled it validates the minified expression against Cloudflare's 4096-character rule limit by default; when minification is disabled, the result omits `minifiedExpression` and `minifiedLength`.
58
58
  - `validateLoggingSourceKeyRuleExpressionSyntax`: runtime-only source-key rule validation using the pre-origin field context, without Custom List references or deployment length enforcement.
59
59
  - `trimRuleExpression`: the expression without the whitespace Cloudflare trims off its ends, which is every character Unicode counts as whitespace: unlike `String.prototype.trim()`, it keeps U+FEFF and trims U+0085. Validation reads the expression trimmed this way, so its diagnostic positions count from the first character that is not whitespace, `source.search(/\P{White_Space}/u)`.
60
60
 
61
61
  Formatting:
62
62
 
63
63
  - `normalizeRuleExpression`: syntax-aware readable formatter that preserves operator notation, grouping, and string literal spelling while canonicalizing grammar whitespace.
64
- - `minifyRuleExpression`: syntax-aware minifier for Cloudflare Rules expressions before Rewrite Rule deployment. It uses C-like operators, removes precedence-redundant grouping, and preserves string literal spelling. Syntax-invalid source is returned unchanged with diagnostics.
64
+ - `minifyRuleExpression`: syntax-aware minifier for Cloudflare Rules expressions before Rewrite Rule deployment. It uses C-like operators, removes precedence-redundant grouping, and preserves string literal spelling. Syntax-invalid source is returned unchanged with diagnostics. It reads the expression as a condition; `validateRuleExpressionSyntax` with the `url-rewrite-target` preset gives a rewrite target's `minifiedExpression`.
65
65
 
66
66
  String literals:
67
67
 
@@ -128,7 +128,7 @@ documented fields and the observed differences apart, and `fieldAvailability`
128
128
  can still allow a field the engine was observed to reject. Cloudflare documents
129
129
  no field list for Custom Rules, so theirs is the observed one. The catalog also
130
130
  has fields and functions that Cloudflare's references lack and dry runs accepted,
131
- such as `cf.zone.plan`, `encode_hex()` and `filter()`. Source-key rules run in
131
+ such as `cf.zone.plan` and `filter()`. Source-key rules run in
132
132
  the Worker rather than in a Cloudflare phase, so the URL rewrite phase's
133
133
  observed differences do not apply to them.
134
134
 
@@ -178,12 +178,24 @@ results that large round, and so do the comparisons and `to_string()` output
178
178
  that use them. An integer `hash_in_range()` seed that large gives an unknown
179
179
  result instead, since a rounded seed hashes into an unrelated bucket.
180
180
 
181
+ A rewrite target is one field, with or without access, such as
182
+ `http.request.headers["x"][0]`, or one function call, and it must give a
183
+ String, as Cloudflare reads it. A literal gets
184
+ `syntax.literal_instead_of_field_or_call`. A target in parentheses, or a
185
+ condition, gets `syntax.condition_instead_of_value`, with no other checks of
186
+ what it holds. A field or call of another type, such as `ssl`, `len(...)` or
187
+ `http.request.headers.names[*]`, gets `rule_expression.result_type_mismatch`,
188
+ whose `expectedType` is `String`. A target gets no
189
+ `field.header_index_requires_guard`, since its `has_key()` guard can go only
190
+ in the rule's filter.
191
+
181
192
  URL rewrite filters and rewrite targets also reject the functions the URL
182
193
  rewrite phase does not accept, such as `split()` in either and `to_string()`
183
- in filters, with `function.unavailable`. Rewrite targets reject operators,
184
- quantifiers, and conditions used as function arguments, such as `eq`, `any()`,
185
- and `to_string((ssl))`, with `operator.unavailable`. In both, `concat()` can
186
- appear only once.
194
+ and `format_date()` in filters, with `function.unavailable`. Rewrite targets
195
+ reject operators and quantifiers, as in `to_string(http.host eq "x")` and
196
+ `any(...)`, and conditions used as function arguments, as in
197
+ `to_string((ssl))`, with `operator.unavailable`.
198
+ `concat()` can appear only once in filters, and three times in rewrite targets.
187
199
 
188
200
  Custom Rules also reject some functions with `function.unavailable`, such as
189
201
  `split()`, or `join()` and `wildcard_replace()`, which URL rewrite filters
@@ -262,9 +274,10 @@ values are converted to that type, so a numeric `request.cf` value that
262
274
  arrives as decimal text still compares as a number. Strings are ordered by code
263
275
  point, which matches Cloudflare's byte order, with bytes that are not UTF-8
264
276
  ordered as bytes, and IP addresses are compared as addresses rather than as
265
- text. A field value that does not represent its declared type, such as other
266
- text for a Number field or a number for a String field, is unknown, with a
267
- warning.
277
+ text. IP addresses are ordered within one IP version: an IPv4 and an IPv6
278
+ address are unordered, so `lt`, `le`, `gt` and `ge` never match them. A
279
+ field value that does not represent its declared type, such as other text for
280
+ a Number field or a number for a String field, is unknown, with a warning.
268
281
 
269
282
  ### Literals and Inline Lists
270
283
 
@@ -678,8 +691,9 @@ Values the evaluator cannot resolve are unknown rather than nil. These include
678
691
  `raw.*` URI fields in Worker context, request metadata missing from the
679
692
  request, such as `request.cf` properties or the `cf-connecting-ip` header behind
680
693
  `ip.src`, which the Remove visitor IP headers Managed Transform removes, and
681
- results of functions it cannot reproduce, such as `hmac_sha256()`, the hash
682
- functions `md5()`, `sha1()`, `sha256()` and `sha512()`, and `is_jwt_valid()`,
694
+ results of functions it cannot reproduce, such as the HMAC functions and
695
+ `sign_sigv4_hmac_sha256()`, the hash functions `md5()`, `sha1()`, `sha256()`
696
+ and `sha512()`, and `is_jwt_valid()`,
683
697
  or whose result holds more than 524,288 characters, counting each array element
684
698
  as at least 8, or just 8 in `concat()` of arrays; the elements of an array that
685
699
  fit stay known. An unknown value makes the functions and comparisons that use it
@@ -1,5 +1,5 @@
1
1
  export declare const RULE_EXPRESSION_OPERATORS: readonly ["eq", "ne", "lt", "le", "gt", "ge", "contains", "matches", "wildcard", "in", "and", "or", "xor", "not", "strict"];
2
- export declare const RULE_EXPRESSION_FUNCTIONS: readonly ["all", "any", "bit_slice", "cidr", "cidr6", "coalesce", "concat", "decode_base64", "encode_base64", "encode_hex", "ends_with", "filter", "has_key", "has_value", "hash_in_range", "hmac_sha256", "is_jwt_present", "is_jwt_valid", "is_timed_hmac_valid_v0", "join", "len", "lookup_json_integer", "lookup_json_string", "lower", "md5", "regex_replace", "remove_bytes", "remove_query_args", "sha1", "sha256", "sha512", "split", "starts_with", "substring", "to_string", "trim", "trim_end", "trim_start", "upper", "url_decode", "uuidv4", "wildcard_replace"];
2
+ export declare const RULE_EXPRESSION_FUNCTIONS: readonly ["all", "any", "bit_slice", "cidr", "cidr6", "coalesce", "concat", "decode_base64", "encode_base64", "encode_hex", "ends_with", "filter", "format_date", "has_key", "has_value", "hash_in_range", "hmac_md5", "hmac_sha1", "hmac_sha256", "hmac_sha512", "is_jwt_present", "is_jwt_valid", "is_timed_hmac_valid_v0", "join", "len", "lookup_json_integer", "lookup_json_string", "lower", "md5", "regex_replace", "remove_bytes", "remove_query_args", "sha1", "sha256", "sha512", "sign_sigv4_hmac_sha256", "split", "starts_with", "substring", "to_string", "trim", "trim_end", "trim_start", "upper", "url_decode", "uuidv4", "wildcard_replace"];
3
3
  /**
4
4
  * The only place Cloudflare accepts `true`: as an entire expression, which
5
5
  * matches every request. The rules language has no Boolean literals, so
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/rule-evaluator/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,6HAI5B,CAAC;AAEX,eAAO,MAAM,yBAAyB,+iBA2C5B,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,oCAAoC,SAAS,CAAC;AAE3D,MAAM,MAAM,sBAAsB,GAAG,OAAO,yBAAyB,CAAC,MAAM,CAAC,CAAC;AAC9E,MAAM,MAAM,sBAAsB,GAAG,OAAO,yBAAyB,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/rule-evaluator/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,6HAI5B,CAAC;AAEX,eAAO,MAAM,yBAAyB,goBAgD5B,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,oCAAoC,SAAS,CAAC;AAE3D,MAAM,MAAM,sBAAsB,GAAG,OAAO,yBAAyB,CAAC,MAAM,CAAC,CAAC;AAC9E,MAAM,MAAM,sBAAsB,GAAG,OAAO,yBAAyB,CAAC,MAAM,CAAC,CAAC"}
@@ -16,10 +16,14 @@ export const RULE_EXPRESSION_FUNCTIONS = [
16
16
  'encode_hex',
17
17
  'ends_with',
18
18
  'filter',
19
+ 'format_date',
19
20
  'has_key',
20
21
  'has_value',
21
22
  'hash_in_range',
23
+ 'hmac_md5',
24
+ 'hmac_sha1',
22
25
  'hmac_sha256',
26
+ 'hmac_sha512',
23
27
  'is_jwt_present',
24
28
  'is_jwt_valid',
25
29
  'is_timed_hmac_valid_v0',
@@ -35,6 +39,7 @@ export const RULE_EXPRESSION_FUNCTIONS = [
35
39
  'sha1',
36
40
  'sha256',
37
41
  'sha512',
42
+ 'sign_sigv4_hmac_sha256',
38
43
  'split',
39
44
  'starts_with',
40
45
  'substring',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/rule-evaluator/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACxC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;IAClC,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI;IACvC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ;CAC1B,CAAC;AAEX,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACxC,KAAK;IACL,KAAK;IACL,WAAW;IACX,MAAM;IACN,OAAO;IACP,UAAU;IACV,QAAQ;IACR,eAAe;IACf,eAAe;IACf,YAAY;IACZ,WAAW;IACX,QAAQ;IACR,SAAS;IACT,WAAW;IACX,eAAe;IACf,aAAa;IACb,gBAAgB;IAChB,cAAc;IACd,wBAAwB;IACxB,MAAM;IACN,KAAK;IACL,qBAAqB;IACrB,oBAAoB;IACpB,OAAO;IACP,KAAK;IACL,eAAe;IACf,cAAc;IACd,mBAAmB;IACnB,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,aAAa;IACb,WAAW;IACX,WAAW;IACX,MAAM;IACN,UAAU;IACV,YAAY;IACZ,OAAO;IACP,YAAY;IACZ,QAAQ;IACR,kBAAkB;CACT,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/rule-evaluator/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACxC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;IAClC,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI;IACvC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ;CAC1B,CAAC;AAEX,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACxC,KAAK;IACL,KAAK;IACL,WAAW;IACX,MAAM;IACN,OAAO;IACP,UAAU;IACV,QAAQ;IACR,eAAe;IACf,eAAe;IACf,YAAY;IACZ,WAAW;IACX,QAAQ;IACR,aAAa;IACb,SAAS;IACT,WAAW;IACX,eAAe;IACf,UAAU;IACV,WAAW;IACX,aAAa;IACb,aAAa;IACb,gBAAgB;IAChB,cAAc;IACd,wBAAwB;IACxB,MAAM;IACN,KAAK;IACL,qBAAqB;IACrB,oBAAoB;IACpB,OAAO;IACP,KAAK;IACL,eAAe;IACf,cAAc;IACd,mBAAmB;IACnB,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,wBAAwB;IACxB,OAAO;IACP,aAAa;IACb,WAAW;IACX,WAAW;IACX,MAAM;IACN,UAAU;IACV,YAAY;IACZ,OAAO;IACP,YAAY;IACZ,QAAQ;IACR,kBAAkB;CACT,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,MAAM,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Generated by `npm run build:country-codes`. Do not edit manually.
3
3
  *
4
- * Source: @cloudflare/workers-types 5.20261125.1, Iso3166Alpha2Code.
4
+ * Source: @cloudflare/workers-types 5.20261127.1, Iso3166Alpha2Code.
5
5
  * License: MIT OR Apache-2.0.
6
6
  */
7
7
  /** ISO 3166-1 alpha-2 codes exposed by the pinned Cloudflare Workers types. */
@@ -1,6 +1,6 @@
1
1
  export type RuleExpressionDiagnosticSeverity = 'error' | 'warning' | 'notice';
2
2
  export type RuleExpressionDiagnosticSource = 'expression' | 'minifiedExpression';
3
- export declare const RULE_EXPRESSION_DIAGNOSTIC_IDS: readonly ["access.type_mismatch", "access.uppercase_map_key", "array_expansion.direct_comparison", "array_expansion.function_first_argument_only", "array_expansion.unaligned_arrays", "config.custom_lists.invalid_ip_item", "config.custom_lists.invalid_items_type", "config.custom_lists.invalid_list_type", "config.custom_lists.invalid_name", "config.custom_lists.invalid_type", "config.custom_lists.unsupported_kind", "config.field_availability.unknown_field", "config.field_availability.unknown_prefix", "field.deprecated", "field.header_dropped_on_challenge_solve", "field.header_index_requires_guard", "field.header_order_unreliable", "field.predicate_type_mismatch", "field.unavailable", "field.unknown", "field.value.invalid_country_code", "function.call_limit", "function.coalesce.never_nil_argument", "function.nested_replacement", "function.parameter.collection_element_type_mismatch", "function.parameter.comparison_type_mismatch", "function.parameter.greater_than_previous", "function.parameter.max_offset_from_previous", "function.parameter.may_be_nil", "function.parameter.rejects_literal", "function.parameter.required", "function.parameter.requires_allowed_field", "function.parameter.requires_array_expansion", "function.parameter.requires_array_collection", "function.parameter.requires_array_comparison", "function.parameter.requires_collection", "function.parameter.requires_distinct_bytes", "function.parameter.requires_field", "function.parameter.requires_field_usage_kind", "function.parameter.requires_integer_literal", "function.parameter.requires_integer_literal_range", "function.parameter.requires_literal", "function.parameter.requires_literal_comparison_value", "function.parameter.requires_map", "function.parameter.requires_non_empty_string_literal", "function.parameter.requires_number_literal", "function.parameter.requires_number_literal_range", "function.parameter.requires_scalar_map", "function.parameter.requires_string_literal", "function.parameter.requires_typed_field", "function.parameter.requires_typed_value", "function.parameter.type_mismatch", "function.result_type_mismatch", "function.single_use", "function.too_many_arguments", "function.unavailable", "function.unreliable", "inline_list.mixed_element_types", "inline_list.requires_in_operator", "inline_list.short_ipv4_address", "list.invalid_name", "list.reference_not_allowed", "list.reference_not_configured", "list.reference_requires_in_operator", "list.reference_type_mismatch", "logical.operand_type_mismatch", "operator.in_requires_list", "operator.requires_literal_value", "operator.requires_type", "operator.type_mismatch", "operator.unavailable", "operator.unsupported_type", "replacement.invalid_reference", "replacement.too_many_references", "replacement.unknown_capture", "rule_expression.boolean_literal", "rule_expression.required", "rule_expression.too_long", "syntax.cidr_host_bits", "syntax.condition_instead_of_value", "syntax.field_access_without_comparison", "syntax.hex_integer_argument", "syntax.integer_literal_out_of_range", "syntax.invalid_access_value", "syntax.invalid_array_index", "syntax.invalid_cidr_prefix", "syntax.invalid_integer_literal", "syntax.invalid_ip_address", "syntax.invalid_octal_literal", "syntax.invalid_string_escape", "syntax.ip_range_requires_list", "syntax.missing_closing_block_comment", "syntax.missing_closing_bracket", "syntax.missing_closing_brace", "syntax.missing_closing_parenthesis", "syntax.missing_closing_raw_string", "syntax.missing_closing_string_quote", "syntax.missing_function_argument", "syntax.missing_function_argument_comma", "syntax.missing_function_closing_parenthesis", "syntax.missing_function_opening_parenthesis", "syntax.missing_operator_value", "syntax.mixed_ip_range", "syntax.multiline_string_literal", "syntax.non_utf8_map_key", "syntax.raw_string_map_key", "syntax.reversed_range", "syntax.space_before_access", "syntax.unexpected_char", "syntax.unexpected_token", "syntax.unexpected_token_in_set_literal", "syntax.unexpected_tokens_after_expression_end", "syntax.unparenthesized_logical_argument", "syntax.unquoted_string_literal", "syntax.unsupported_hex_bytes_literal", "syntax.unsupported_whitespace", "wildcard.consecutive_wildcards", "wildcard.incomplete_escape", "wildcard.invalid_escape", "wildcard.too_many_wildcards"];
3
+ export declare const RULE_EXPRESSION_DIAGNOSTIC_IDS: readonly ["access.type_mismatch", "access.uppercase_map_key", "array_expansion.direct_comparison", "array_expansion.function_first_argument_only", "array_expansion.unaligned_arrays", "config.custom_lists.invalid_ip_item", "config.custom_lists.invalid_items_type", "config.custom_lists.invalid_list_type", "config.custom_lists.invalid_name", "config.custom_lists.invalid_type", "config.custom_lists.unsupported_kind", "config.field_availability.unknown_field", "config.field_availability.unknown_prefix", "field.deprecated", "field.header_dropped_on_challenge_solve", "field.header_index_requires_guard", "field.header_order_unreliable", "field.predicate_type_mismatch", "field.unavailable", "field.unknown", "field.value.invalid_country_code", "function.call_limit", "function.coalesce.never_nil_argument", "function.nested_replacement", "function.parameter.collection_element_type_mismatch", "function.parameter.comparison_type_mismatch", "function.parameter.greater_than_previous", "function.parameter.max_offset_from_previous", "function.parameter.may_be_nil", "function.parameter.rejects_empty_string_literal", "function.parameter.rejects_literal", "function.parameter.required", "function.parameter.requires_allowed_field", "function.parameter.requires_array_expansion", "function.parameter.requires_array_collection", "function.parameter.requires_array_comparison", "function.parameter.requires_collection", "function.parameter.requires_distinct_bytes", "function.parameter.requires_field", "function.parameter.requires_field_usage_kind", "function.parameter.requires_integer_literal", "function.parameter.requires_integer_literal_range", "function.parameter.requires_literal", "function.parameter.requires_literal_comparison_value", "function.parameter.requires_map", "function.parameter.requires_non_empty_string_literal", "function.parameter.requires_number_literal", "function.parameter.requires_number_literal_range", "function.parameter.requires_scalar_map", "function.parameter.requires_string_literal", "function.parameter.requires_typed_field", "function.parameter.requires_typed_value", "function.parameter.requires_utf8_string_literal", "function.parameter.type_mismatch", "function.parameter.unsupported_date_directive", "function.result_type_mismatch", "function.single_use", "function.too_many_arguments", "function.unavailable", "function.unreliable", "inline_list.mixed_element_types", "inline_list.requires_in_operator", "inline_list.short_ipv4_address", "list.invalid_name", "list.reference_not_allowed", "list.reference_not_configured", "list.reference_requires_in_operator", "list.reference_type_mismatch", "logical.operand_type_mismatch", "operator.in_requires_list", "operator.requires_literal_value", "operator.requires_type", "operator.type_mismatch", "operator.unavailable", "operator.unsupported_type", "replacement.invalid_reference", "replacement.too_many_references", "replacement.unknown_capture", "rule_expression.boolean_literal", "rule_expression.required", "rule_expression.result_type_mismatch", "rule_expression.too_long", "syntax.cidr_host_bits", "syntax.condition_instead_of_value", "syntax.field_access_without_comparison", "syntax.hex_integer_argument", "syntax.integer_literal_out_of_range", "syntax.invalid_access_value", "syntax.invalid_array_index", "syntax.invalid_cidr_prefix", "syntax.invalid_integer_literal", "syntax.invalid_ip_address", "syntax.invalid_octal_literal", "syntax.invalid_string_escape", "syntax.ip_range_requires_list", "syntax.literal_instead_of_field_or_call", "syntax.missing_closing_block_comment", "syntax.missing_closing_bracket", "syntax.missing_closing_brace", "syntax.missing_closing_parenthesis", "syntax.missing_closing_raw_string", "syntax.missing_closing_string_quote", "syntax.missing_function_argument", "syntax.missing_function_argument_comma", "syntax.missing_function_closing_parenthesis", "syntax.missing_function_opening_parenthesis", "syntax.missing_operator_value", "syntax.mixed_ip_range", "syntax.multiline_string_literal", "syntax.non_utf8_map_key", "syntax.raw_string_map_key", "syntax.reversed_range", "syntax.space_before_access", "syntax.unexpected_char", "syntax.unexpected_token", "syntax.unexpected_token_in_set_literal", "syntax.unexpected_tokens_after_expression_end", "syntax.unparenthesized_logical_argument", "syntax.unquoted_string_literal", "syntax.unsupported_hex_bytes_literal", "syntax.unsupported_whitespace", "wildcard.consecutive_wildcards", "wildcard.incomplete_escape", "wildcard.invalid_escape", "wildcard.too_many_wildcards"];
4
4
  export type RuleExpressionKnownDiagnosticId = typeof RULE_EXPRESSION_DIAGNOSTIC_IDS[number];
5
5
  export type RuleExpressionDiagnosticId = RuleExpressionKnownDiagnosticId | (string & {});
6
6
  export type RuleExpressionDiagnosticParamPrimitive = string | number | boolean | null;
@@ -1 +1 @@
1
- {"version":3,"file":"diagnostics.d.ts","sourceRoot":"","sources":["../../src/rule-evaluator/diagnostics.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gCAAgC,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC9E,MAAM,MAAM,8BAA8B,GAAG,YAAY,GAAG,oBAAoB,CAAC;AAEjF,eAAO,MAAM,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EAAE,8BAA8B,GACxC,sCAAsC,CAQxC;AAED,kFAAkF;AAClF,wBAAgB,wBAAwB,CACvC,UAAU,EAAE,8BAA8B,EAC1C,MAAM,EAAE,8BAA8B,GACpC,wBAAwB,CAK1B"}
@@ -28,6 +28,7 @@ export const RULE_EXPRESSION_DIAGNOSTIC_IDS = [
28
28
  'function.parameter.greater_than_previous',
29
29
  'function.parameter.max_offset_from_previous',
30
30
  'function.parameter.may_be_nil',
31
+ 'function.parameter.rejects_empty_string_literal',
31
32
  'function.parameter.rejects_literal',
32
33
  'function.parameter.required',
33
34
  'function.parameter.requires_allowed_field',
@@ -50,7 +51,9 @@ export const RULE_EXPRESSION_DIAGNOSTIC_IDS = [
50
51
  'function.parameter.requires_string_literal',
51
52
  'function.parameter.requires_typed_field',
52
53
  'function.parameter.requires_typed_value',
54
+ 'function.parameter.requires_utf8_string_literal',
53
55
  'function.parameter.type_mismatch',
56
+ 'function.parameter.unsupported_date_directive',
54
57
  'function.result_type_mismatch',
55
58
  'function.single_use',
56
59
  'function.too_many_arguments',
@@ -76,6 +79,7 @@ export const RULE_EXPRESSION_DIAGNOSTIC_IDS = [
76
79
  'replacement.unknown_capture',
77
80
  'rule_expression.boolean_literal',
78
81
  'rule_expression.required',
82
+ 'rule_expression.result_type_mismatch',
79
83
  'rule_expression.too_long',
80
84
  'syntax.cidr_host_bits',
81
85
  'syntax.condition_instead_of_value',
@@ -90,6 +94,7 @@ export const RULE_EXPRESSION_DIAGNOSTIC_IDS = [
90
94
  'syntax.invalid_octal_literal',
91
95
  'syntax.invalid_string_escape',
92
96
  'syntax.ip_range_requires_list',
97
+ 'syntax.literal_instead_of_field_or_call',
93
98
  'syntax.missing_closing_block_comment',
94
99
  'syntax.missing_closing_bracket',
95
100
  'syntax.missing_closing_brace',
@@ -1 +1 @@
1
- {"version":3,"file":"diagnostics.js","sourceRoot":"","sources":["../../src/rule-evaluator/diagnostics.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,8BAA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field-gaps.ts"],"names":[],"mappings":"AACA,OAAO,EAA8C,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAKrG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAkDjD,CAAC;AAEH,iFAAiF;AACjF,eAAO,MAAM,2BAA2B,EAAE,WAAW,CAAC,MAAM,CAG1D,CAAC;AAsBH,MAAM,WAAW,6BAA8B,SAAQ,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC;IACvF,0GAA0G;IAC1G,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,sEAAsE;IACtE,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,6FAA6F;AAC7F,MAAM,WAAW,uBAAuB;IACvC;;;;;;;;OAQG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,qFAAqF;IACrF,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,sIAAsI;IACtI,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,+EAA+E;IAC/E,OAAO,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,GAAE,6BAAkC,GAAG,uBAAuB,CA8HhI"}
1
+ {"version":3,"file":"edge-field-gaps.d.ts","sourceRoot":"","sources":["../../src/rule-evaluator/edge-field-gaps.ts"],"names":[],"mappings":"AACA,OAAO,EAA8C,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAKrG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAkDjD,CAAC;AAEH,iFAAiF;AACjF,eAAO,MAAM,2BAA2B,EAAE,WAAW,CAAC,MAAM,CAG1D,CAAC;AAsBH,MAAM,WAAW,6BAA8B,SAAQ,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC;IACvF,0GAA0G;IAC1G,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,sEAAsE;IACtE,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,6FAA6F;AAC7F,MAAM,WAAW,uBAAuB;IACvC;;;;;;;;OAQG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,qFAAqF;IACrF,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,sIAAsI;IACtI,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,+EAA+E;IAC/E,OAAO,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,GAAE,6BAAkC,GAAG,uBAAuB,CA4IhI"}
@@ -1,7 +1,7 @@
1
1
  import { isBooleanLiteralName } from './ast.js';
2
2
  import { STANDARD_HEADERS, UNLOGGED_REQUEST_HEADERS } from './edge-record.js';
3
3
  import { parseExpression } from './parse-cache.js';
4
- import { isNeverNil } from './quantifier.js';
4
+ import { givesEveryElementResult, isNeverNil } from './quantifier.js';
5
5
  import { inferFunctionInvocation } from './rule-language-types.js';
6
6
  import { renderRuleExpressionStringLiteral } from './string-literals.js';
7
7
  /**
@@ -152,9 +152,11 @@ export function edgeExpressionFieldGaps(expression, options = {}) {
152
152
  * Reads a value with `after` applied after its own accesses, and whether
153
153
  * the read takes what they give, or only whether it is there or how many,
154
154
  * as has_key() and len() do: a field, coalesce(), which gives its first
155
- * operand that is not nil, or the count of the arrays concat() joins, when
156
- * it joins them once rather than for each element of one. Through any
157
- * other call, and a comparison, a read takes the values.
155
+ * operand that is not nil, the count of the arrays concat() joins, when it
156
+ * joins them once rather than for each element of one, or the count of a
157
+ * call that maps over an array and gives each element a result, which is
158
+ * the array's. Through any other call, and a comparison, a read takes the
159
+ * values.
158
160
  */
159
161
  const readAccessed = (node, after, takesValues) => {
160
162
  if (node?.kind === 'Field') {
@@ -181,10 +183,23 @@ export function edgeExpressionFieldGaps(expression, options = {}) {
181
183
  for (const operand of node.args)
182
184
  readAccessed(operand, [], false);
183
185
  }
186
+ else if (node?.kind === 'Func' && !takesValues && after.length === 0 && node.accessPath.length === 0 && isMappedCall(node) && givesEveryElementResult(node.name)) {
187
+ // Its other operands do not change how many results it gives.
188
+ readElementCount(node.args[0]);
189
+ }
184
190
  else {
185
191
  visit(node);
186
192
  }
187
193
  };
194
+ /** Reads how many elements an operand's `[*]` gives: as many as the array before it holds. */
195
+ const readElementCount = (operand) => {
196
+ if ((operand?.kind === 'Field' || operand?.kind === 'Func') && isLastExpansion(operand.accessPath)) {
197
+ readAccessed({ ...operand, accessPath: operand.accessPath.slice(0, -1) }, [], false);
198
+ }
199
+ else {
200
+ visit(operand);
201
+ }
202
+ };
188
203
  const visit = (node) => {
189
204
  if (Array.isArray(node)) {
190
205
  for (const child of node)
@@ -245,6 +260,14 @@ export function edgeExpressionFieldGaps(expression, options = {}) {
245
260
  const sorted = (values) => [...values].sort();
246
261
  return { fields: sorted(fields), tlsHashes: sorted(tlsHashes), headers: sorted(headers), cookies: sorted(cookies) };
247
262
  }
263
+ /** Whether an access path expands an array only at its end. */
264
+ function isLastExpansion(path) {
265
+ return path.length > 0 && path.findIndex(access => access.kind === 'ArrayWildcardAccess') === path.length - 1;
266
+ }
267
+ /** Whether a call runs for each element of its first operand. */
268
+ function isMappedCall(node) {
269
+ return inferFunctionInvocation(node).mapping === 'mapped';
270
+ }
248
271
  /** Whether a call runs once, rather than for each element of an operand, which may have none. */
249
272
  function isDirectCall(node) {
250
273
  return inferFunctionInvocation(node).mapping === 'direct';
@@ -1 +1 @@
1
- {"version":3,"file":"edge-field-gaps.js","sourceRoot":"","sources":["../../src/rule-evaluator/edge-field-gaps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAsE,MAAM,UAAU,CAAC;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E_OBSERVATIONS: {
2
- readonly observedAt: "2026-11-25";
2
+ readonly observedAt: "2026-11-27";
3
3
  readonly plan: "free";
4
4
  readonly phases: {
5
5
  readonly filter: "http_request_transform";
@@ -1214,6 +1214,11 @@ export declare const RULE_EXPRESSION_ENGINE_OBSERVATIONS: {
1214
1214
  readonly target: "accepted";
1215
1215
  readonly "custom-rule": "accepted";
1216
1216
  };
1217
+ readonly format_date: {
1218
+ readonly filter: "rejected";
1219
+ readonly target: "accepted";
1220
+ readonly "custom-rule": "rejected";
1221
+ };
1217
1222
  readonly has_key: {
1218
1223
  readonly filter: "accepted";
1219
1224
  readonly target: "accepted";
@@ -1229,11 +1234,26 @@ export declare const RULE_EXPRESSION_ENGINE_OBSERVATIONS: {
1229
1234
  readonly target: "accepted";
1230
1235
  readonly "custom-rule": "accepted";
1231
1236
  };
1237
+ readonly hmac_md5: {
1238
+ readonly filter: "plan-gated";
1239
+ readonly target: "plan-gated";
1240
+ readonly "custom-rule": "plan-gated";
1241
+ };
1242
+ readonly hmac_sha1: {
1243
+ readonly filter: "plan-gated";
1244
+ readonly target: "plan-gated";
1245
+ readonly "custom-rule": "plan-gated";
1246
+ };
1232
1247
  readonly hmac_sha256: {
1233
1248
  readonly filter: "plan-gated";
1234
1249
  readonly target: "plan-gated";
1235
1250
  readonly "custom-rule": "plan-gated";
1236
1251
  };
1252
+ readonly hmac_sha512: {
1253
+ readonly filter: "plan-gated";
1254
+ readonly target: "plan-gated";
1255
+ readonly "custom-rule": "plan-gated";
1256
+ };
1237
1257
  readonly is_jwt_present: {
1238
1258
  readonly filter: "unknown";
1239
1259
  readonly target: "unknown";
@@ -1309,6 +1329,11 @@ export declare const RULE_EXPRESSION_ENGINE_OBSERVATIONS: {
1309
1329
  readonly target: "plan-gated";
1310
1330
  readonly "custom-rule": "plan-gated";
1311
1331
  };
1332
+ readonly sign_sigv4_hmac_sha256: {
1333
+ readonly filter: "plan-gated";
1334
+ readonly target: "plan-gated";
1335
+ readonly "custom-rule": "plan-gated";
1336
+ };
1312
1337
  readonly split: {
1313
1338
  readonly filter: "rejected";
1314
1339
  readonly target: "rejected";
@@ -1502,9 +1527,18 @@ export declare const RULE_EXPRESSION_ENGINE_OBSERVATIONS: {
1502
1527
  readonly "field:filter:ip.src.subdivision_2_iso_code": "at least a Business plan is required";
1503
1528
  readonly "field:target:ip.src.subdivision_2_iso_code": "at least a Business plan is required";
1504
1529
  readonly "field:custom-rule:ip.src.subdivision_2_iso_code": "at least a Business plan is required";
1530
+ readonly "function:filter:hmac_md5": "a Pro plan or a WAF Advanced plan is required";
1531
+ readonly "function:target:hmac_md5": "a Pro plan or a WAF Advanced plan is required";
1532
+ readonly "function:custom-rule:hmac_md5": "a Pro plan or a WAF Advanced plan is required";
1533
+ readonly "function:filter:hmac_sha1": "a Pro plan or a WAF Advanced plan is required";
1534
+ readonly "function:target:hmac_sha1": "a Pro plan or a WAF Advanced plan is required";
1535
+ readonly "function:custom-rule:hmac_sha1": "a Pro plan or a WAF Advanced plan is required";
1505
1536
  readonly "function:filter:hmac_sha256": "a Pro plan or a WAF Advanced plan is required";
1506
1537
  readonly "function:target:hmac_sha256": "a Pro plan or a WAF Advanced plan is required";
1507
1538
  readonly "function:custom-rule:hmac_sha256": "a Pro plan or a WAF Advanced plan is required";
1539
+ readonly "function:filter:hmac_sha512": "a Pro plan or a WAF Advanced plan is required";
1540
+ readonly "function:target:hmac_sha512": "a Pro plan or a WAF Advanced plan is required";
1541
+ readonly "function:custom-rule:hmac_sha512": "a Pro plan or a WAF Advanced plan is required";
1508
1542
  readonly "function:filter:is_timed_hmac_valid_v0": "a Pro plan or a WAF Advanced plan is required";
1509
1543
  readonly "function:target:is_timed_hmac_valid_v0": "a Pro plan or a WAF Advanced plan is required";
1510
1544
  readonly "function:custom-rule:is_timed_hmac_valid_v0": "a Pro plan or a WAF Advanced plan is required";
@@ -1521,6 +1555,9 @@ export declare const RULE_EXPRESSION_ENGINE_OBSERVATIONS: {
1521
1555
  readonly "function:filter:sha512": "a Pro plan or a WAF Advanced plan is required";
1522
1556
  readonly "function:target:sha512": "a Pro plan or a WAF Advanced plan is required";
1523
1557
  readonly "function:custom-rule:sha512": "a Pro plan or a WAF Advanced plan is required";
1558
+ readonly "function:filter:sign_sigv4_hmac_sha256": "a Pro plan or a WAF Advanced plan is required";
1559
+ readonly "function:target:sign_sigv4_hmac_sha256": "a Pro plan or a WAF Advanced plan is required";
1560
+ readonly "function:custom-rule:sign_sigv4_hmac_sha256": "a Pro plan or a WAF Advanced plan is required";
1524
1561
  };
1525
1562
  };
1526
1563
  //# sourceMappingURL=engine-observations.generated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"engine-observations.generated.d.ts","sourceRoot":"","sources":["../../src/rule-evaluator/engine-observations.generated.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAycK,CAAC"}
@@ -2,10 +2,10 @@
2
2
  * Generated by `npm run probe:rules-engine`. Do not edit manually.
3
3
  *
4
4
  * Source: dry-run rule validation by Cloudflare's ruleset engine in the ruleset phases listed below,
5
- * on a free plan zone, on 2026-11-25.
5
+ * on a free plan zone, on 2026-11-27.
6
6
  */
7
7
  export const RULE_EXPRESSION_ENGINE_OBSERVATIONS = {
8
- "observedAt": "2026-11-25",
8
+ "observedAt": "2026-11-27",
9
9
  "plan": "free",
10
10
  "phases": {
11
11
  "filter": "http_request_transform",
@@ -256,10 +256,14 @@ export const RULE_EXPRESSION_ENGINE_OBSERVATIONS = {
256
256
  "encode_hex": { "filter": "accepted", "target": "accepted", "custom-rule": "accepted" },
257
257
  "ends_with": { "filter": "accepted", "target": "accepted", "custom-rule": "accepted" },
258
258
  "filter": { "filter": "accepted", "target": "accepted", "custom-rule": "accepted" },
259
+ "format_date": { "filter": "rejected", "target": "accepted", "custom-rule": "rejected" },
259
260
  "has_key": { "filter": "accepted", "target": "accepted", "custom-rule": "accepted" },
260
261
  "has_value": { "filter": "accepted", "target": "accepted", "custom-rule": "accepted" },
261
262
  "hash_in_range": { "filter": "accepted", "target": "accepted", "custom-rule": "accepted" },
263
+ "hmac_md5": { "filter": "plan-gated", "target": "plan-gated", "custom-rule": "plan-gated" },
264
+ "hmac_sha1": { "filter": "plan-gated", "target": "plan-gated", "custom-rule": "plan-gated" },
262
265
  "hmac_sha256": { "filter": "plan-gated", "target": "plan-gated", "custom-rule": "plan-gated" },
266
+ "hmac_sha512": { "filter": "plan-gated", "target": "plan-gated", "custom-rule": "plan-gated" },
263
267
  "is_jwt_present": { "filter": "unknown", "target": "unknown", "custom-rule": "unknown" },
264
268
  "is_jwt_valid": { "filter": "unknown", "target": "unknown", "custom-rule": "unknown" },
265
269
  "is_timed_hmac_valid_v0": { "filter": "plan-gated", "target": "plan-gated", "custom-rule": "plan-gated" },
@@ -275,6 +279,7 @@ export const RULE_EXPRESSION_ENGINE_OBSERVATIONS = {
275
279
  "sha1": { "filter": "plan-gated", "target": "plan-gated", "custom-rule": "plan-gated" },
276
280
  "sha256": { "filter": "plan-gated", "target": "plan-gated", "custom-rule": "plan-gated" },
277
281
  "sha512": { "filter": "plan-gated", "target": "plan-gated", "custom-rule": "plan-gated" },
282
+ "sign_sigv4_hmac_sha256": { "filter": "plan-gated", "target": "plan-gated", "custom-rule": "plan-gated" },
278
283
  "split": { "filter": "rejected", "target": "rejected", "custom-rule": "rejected" },
279
284
  "starts_with": { "filter": "accepted", "target": "accepted", "custom-rule": "accepted" },
280
285
  "substring": { "filter": "accepted", "target": "accepted", "custom-rule": "accepted" },
@@ -424,9 +429,18 @@ export const RULE_EXPRESSION_ENGINE_OBSERVATIONS = {
424
429
  "field:filter:ip.src.subdivision_2_iso_code": "at least a Business plan is required",
425
430
  "field:target:ip.src.subdivision_2_iso_code": "at least a Business plan is required",
426
431
  "field:custom-rule:ip.src.subdivision_2_iso_code": "at least a Business plan is required",
432
+ "function:filter:hmac_md5": "a Pro plan or a WAF Advanced plan is required",
433
+ "function:target:hmac_md5": "a Pro plan or a WAF Advanced plan is required",
434
+ "function:custom-rule:hmac_md5": "a Pro plan or a WAF Advanced plan is required",
435
+ "function:filter:hmac_sha1": "a Pro plan or a WAF Advanced plan is required",
436
+ "function:target:hmac_sha1": "a Pro plan or a WAF Advanced plan is required",
437
+ "function:custom-rule:hmac_sha1": "a Pro plan or a WAF Advanced plan is required",
427
438
  "function:filter:hmac_sha256": "a Pro plan or a WAF Advanced plan is required",
428
439
  "function:target:hmac_sha256": "a Pro plan or a WAF Advanced plan is required",
429
440
  "function:custom-rule:hmac_sha256": "a Pro plan or a WAF Advanced plan is required",
441
+ "function:filter:hmac_sha512": "a Pro plan or a WAF Advanced plan is required",
442
+ "function:target:hmac_sha512": "a Pro plan or a WAF Advanced plan is required",
443
+ "function:custom-rule:hmac_sha512": "a Pro plan or a WAF Advanced plan is required",
430
444
  "function:filter:is_timed_hmac_valid_v0": "a Pro plan or a WAF Advanced plan is required",
431
445
  "function:target:is_timed_hmac_valid_v0": "a Pro plan or a WAF Advanced plan is required",
432
446
  "function:custom-rule:is_timed_hmac_valid_v0": "a Pro plan or a WAF Advanced plan is required",
@@ -443,6 +457,9 @@ export const RULE_EXPRESSION_ENGINE_OBSERVATIONS = {
443
457
  "function:filter:sha512": "a Pro plan or a WAF Advanced plan is required",
444
458
  "function:target:sha512": "a Pro plan or a WAF Advanced plan is required",
445
459
  "function:custom-rule:sha512": "a Pro plan or a WAF Advanced plan is required",
460
+ "function:filter:sign_sigv4_hmac_sha256": "a Pro plan or a WAF Advanced plan is required",
461
+ "function:target:sign_sigv4_hmac_sha256": "a Pro plan or a WAF Advanced plan is required",
462
+ "function:custom-rule:sign_sigv4_hmac_sha256": "a Pro plan or a WAF Advanced plan is required",
446
463
  },
447
464
  };
448
465
  //# sourceMappingURL=engine-observations.generated.js.map