@libreflare/worker-runtime 0.4.7 → 0.4.9

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 (33) hide show
  1. package/README.md +4 -0
  2. package/dist/rule-evaluator/field-availability.d.ts +39 -0
  3. package/dist/rule-evaluator/field-availability.d.ts.map +1 -0
  4. package/dist/rule-evaluator/field-availability.js +148 -0
  5. package/dist/rule-evaluator/field-availability.js.map +1 -0
  6. package/dist/rule-evaluator/field-descriptions.d.ts +86 -0
  7. package/dist/rule-evaluator/field-descriptions.d.ts.map +1 -0
  8. package/dist/rule-evaluator/field-descriptions.generated.d.ts +1193 -0
  9. package/dist/rule-evaluator/field-descriptions.generated.d.ts.map +1 -0
  10. package/dist/rule-evaluator/field-descriptions.generated.js +2841 -0
  11. package/dist/rule-evaluator/field-descriptions.generated.js.map +1 -0
  12. package/dist/rule-evaluator/field-descriptions.js +107 -0
  13. package/dist/rule-evaluator/field-descriptions.js.map +1 -0
  14. package/dist/rule-evaluator/fields.d.ts.map +1 -1
  15. package/dist/rule-evaluator/fields.js +1 -3
  16. package/dist/rule-evaluator/fields.js.map +1 -1
  17. package/dist/rule-evaluator/function-descriptions.d.ts +75 -0
  18. package/dist/rule-evaluator/function-descriptions.d.ts.map +1 -0
  19. package/dist/rule-evaluator/function-descriptions.generated.d.ts +498 -0
  20. package/dist/rule-evaluator/function-descriptions.generated.d.ts.map +1 -0
  21. package/dist/rule-evaluator/function-descriptions.generated.js +866 -0
  22. package/dist/rule-evaluator/function-descriptions.generated.js.map +1 -0
  23. package/dist/rule-evaluator/function-descriptions.js +25 -0
  24. package/dist/rule-evaluator/function-descriptions.js.map +1 -0
  25. package/dist/rule-evaluator/validation.d.ts +2 -6
  26. package/dist/rule-evaluator/validation.d.ts.map +1 -1
  27. package/dist/rule-evaluator/validation.js +12 -141
  28. package/dist/rule-evaluator/validation.js.map +1 -1
  29. package/dist/rule-evaluator.d.ts +4 -0
  30. package/dist/rule-evaluator.d.ts.map +1 -1
  31. package/dist/rule-evaluator.js +2 -0
  32. package/dist/rule-evaluator.js.map +1 -1
  33. package/package.json +7 -1
@@ -0,0 +1,866 @@
1
+ /*
2
+ * Generated by `npm run build:function-descriptions`. Do not edit manually.
3
+ *
4
+ * Source: Cloudflare Developer Documentation functions reference.
5
+ * License: CC BY 4.0, https://github.com/cloudflare/cloudflare-docs/blob/production/LICENSE
6
+ */
7
+ export const RULE_EXPRESSION_FUNCTION_REFERENCE_URL = "https://developers.cloudflare.com/ruleset-engine/rules-language/functions/index.md";
8
+ export const RULE_EXPRESSION_FUNCTION_DESCRIPTIONS = {
9
+ "all": {
10
+ "summary": "Returns true when the comparison operator in the argument returns true for all values in the argument array. Returns false otherwise.",
11
+ "signature": "all(Array<Boolean>): Boolean",
12
+ "returnType": "Boolean",
13
+ "parameters": [
14
+ {
15
+ "name": "comparison",
16
+ "types": [
17
+ "Array<Boolean>"
18
+ ],
19
+ "role": "array-comparison"
20
+ }
21
+ ],
22
+ "categories": [
23
+ "Transformation functions"
24
+ ]
25
+ },
26
+ "any": {
27
+ "summary": "Returns true when the comparison operator in the argument returns true for any of the values in the argument array. Returns false otherwise.",
28
+ "signature": "any(Array<Boolean>): Boolean",
29
+ "returnType": "Boolean",
30
+ "parameters": [
31
+ {
32
+ "name": "comparison",
33
+ "types": [
34
+ "Array<Boolean>"
35
+ ],
36
+ "role": "array-comparison"
37
+ }
38
+ ],
39
+ "categories": [
40
+ "Transformation functions"
41
+ ]
42
+ },
43
+ "bit_slice": {
44
+ "summary": "This function looks for matches on a given slice of bits.",
45
+ "signature": "bit_slice(protocol String, offset_start Number, offset_end Number): Number",
46
+ "returnType": "Number",
47
+ "parameters": [
48
+ {
49
+ "name": "protocol",
50
+ "types": [
51
+ "String"
52
+ ],
53
+ "literal": true
54
+ },
55
+ {
56
+ "name": "offset_start",
57
+ "types": [
58
+ "Number"
59
+ ],
60
+ "literal": true,
61
+ "min": 0,
62
+ "max": 2040
63
+ },
64
+ {
65
+ "name": "offset_end",
66
+ "types": [
67
+ "Number"
68
+ ],
69
+ "literal": true,
70
+ "maxOffsetFromPrevious": 32
71
+ }
72
+ ],
73
+ "categories": [
74
+ "Cloudflare Network Firewall Functions"
75
+ ]
76
+ },
77
+ "cidr": {
78
+ "summary": "Returns the network address corresponding to an IP address (IPv4 or IPv6), given the provided IPv4 and IPv6 network bits (which determine the corresponding netmasks).",
79
+ "signature": "cidr(address IP address, ipv4_network_bits Integer, ipv6_network_bits Integer): IP address",
80
+ "returnType": "IP address",
81
+ "parameters": [
82
+ {
83
+ "name": "address",
84
+ "types": [
85
+ "IP address"
86
+ ],
87
+ "field": true,
88
+ "role": "field",
89
+ "acceptsFieldUsageKinds": [
90
+ "scalar"
91
+ ]
92
+ },
93
+ {
94
+ "name": "ipv4_network_bits",
95
+ "types": [
96
+ "Integer"
97
+ ],
98
+ "literal": true,
99
+ "min": 1,
100
+ "max": 32
101
+ },
102
+ {
103
+ "name": "ipv6_network_bits",
104
+ "types": [
105
+ "Integer"
106
+ ],
107
+ "literal": true,
108
+ "min": 1,
109
+ "max": 128
110
+ }
111
+ ],
112
+ "categories": [
113
+ "Transformation functions"
114
+ ]
115
+ },
116
+ "cidr6": {
117
+ "summary": "Returns the IPv6 network address corresponding to an IPv6 address, given the provided network bits (which determine the netmask). If you provide an IPv4 address in the first parameter, it will be returned unchanged.",
118
+ "signature": "cidr6(address IP address, ipv6_network_bits Integer): IP address",
119
+ "returnType": "IP address",
120
+ "parameters": [
121
+ {
122
+ "name": "address",
123
+ "types": [
124
+ "IP address"
125
+ ],
126
+ "field": true,
127
+ "role": "field",
128
+ "acceptsFieldUsageKinds": [
129
+ "scalar"
130
+ ]
131
+ },
132
+ {
133
+ "name": "ipv6_network_bits",
134
+ "types": [
135
+ "Integer"
136
+ ],
137
+ "literal": true,
138
+ "min": 1,
139
+ "max": 128
140
+ }
141
+ ],
142
+ "categories": [
143
+ "Transformation functions"
144
+ ]
145
+ },
146
+ "concat": {
147
+ "summary": "Takes a comma-separated list of values. Concatenates the argument values into a single String or array.",
148
+ "signature": "concat(value String | Bytes | Array, ...): String | Array",
149
+ "returnType": "String | Array",
150
+ "parameters": [
151
+ {
152
+ "name": "value",
153
+ "types": [
154
+ "String",
155
+ "Bytes",
156
+ "Array"
157
+ ],
158
+ "variadic": true,
159
+ "acceptsFieldUsageKinds": [
160
+ "scalar",
161
+ "array",
162
+ "map-array"
163
+ ]
164
+ }
165
+ ],
166
+ "categories": [
167
+ "Transformation functions"
168
+ ]
169
+ },
170
+ "decode_base64": {
171
+ "summary": "Decodes a Base64-encoded String specified in source.",
172
+ "signature": "decode_base64(source String): String",
173
+ "returnType": "String",
174
+ "parameters": [
175
+ {
176
+ "name": "source",
177
+ "types": [
178
+ "String"
179
+ ],
180
+ "field": true,
181
+ "role": "field",
182
+ "acceptsFieldUsageKinds": [
183
+ "scalar",
184
+ "array",
185
+ "map-array"
186
+ ]
187
+ }
188
+ ],
189
+ "categories": [
190
+ "Transformation functions"
191
+ ]
192
+ },
193
+ "encode_base64": {
194
+ "summary": "Encodes an input string or byte array to Base64 format.",
195
+ "signature": "encode_base64(input String | Bytes [, flags String]): String",
196
+ "returnType": "String",
197
+ "parameters": [
198
+ {
199
+ "name": "input",
200
+ "types": [
201
+ "String",
202
+ "Bytes"
203
+ ],
204
+ "acceptsFieldUsageKinds": [
205
+ "scalar",
206
+ "array",
207
+ "map-array"
208
+ ]
209
+ },
210
+ {
211
+ "name": "flags",
212
+ "types": [
213
+ "String"
214
+ ],
215
+ "optional": true,
216
+ "literal": true
217
+ }
218
+ ],
219
+ "categories": [
220
+ "Transformation functions"
221
+ ]
222
+ },
223
+ "ends_with": {
224
+ "summary": "Returns true when the source ends with a given substring. Returns false otherwise. The source cannot be a literal value (like \"foo\").",
225
+ "signature": "ends_with(source String, substring String): Boolean",
226
+ "returnType": "Boolean",
227
+ "parameters": [
228
+ {
229
+ "name": "source",
230
+ "types": [
231
+ "String"
232
+ ],
233
+ "notLiteral": true,
234
+ "acceptsFieldUsageKinds": [
235
+ "scalar"
236
+ ]
237
+ },
238
+ {
239
+ "name": "substring",
240
+ "types": [
241
+ "String"
242
+ ]
243
+ }
244
+ ],
245
+ "categories": [
246
+ "Transformation functions"
247
+ ]
248
+ },
249
+ "has_key": {
250
+ "summary": "Returns true if the key specified in the second argument, which can be a literal or a dynamic string, is an existing key in the map provided as first argument; returns false otherwise.",
251
+ "signature": "has_key(map: Map<T>, key: String): Boolean",
252
+ "returnType": "Boolean",
253
+ "parameters": [
254
+ {
255
+ "name": "map",
256
+ "types": [
257
+ "Map<T>"
258
+ ],
259
+ "role": "map",
260
+ "acceptsFieldUsageKinds": [
261
+ "map",
262
+ "map-array"
263
+ ]
264
+ },
265
+ {
266
+ "name": "key",
267
+ "types": [
268
+ "String"
269
+ ]
270
+ }
271
+ ],
272
+ "categories": [
273
+ "Transformation functions"
274
+ ]
275
+ },
276
+ "has_value": {
277
+ "summary": "Returns true if the value specified in the second argument, which can be a literal or a dynamic value, is found in the collection provided as first argument; returns false otherwise.",
278
+ "signature": "has_value(collection: Map<T> | Array<T>, value: T): Boolean",
279
+ "returnType": "Boolean",
280
+ "parameters": [
281
+ {
282
+ "name": "collection",
283
+ "types": [
284
+ "Map<T>",
285
+ "Array<T>"
286
+ ],
287
+ "role": "collection",
288
+ "acceptsFieldUsageKinds": [
289
+ "array",
290
+ "map",
291
+ "map-array"
292
+ ]
293
+ },
294
+ {
295
+ "name": "value",
296
+ "types": [
297
+ "T"
298
+ ]
299
+ }
300
+ ],
301
+ "categories": [
302
+ "Transformation functions"
303
+ ]
304
+ },
305
+ "is_jwt_present": {
306
+ "summary": "Returns true if the request has a token as configured in the token configuration with the ID token_configuration_id.",
307
+ "signature": "is_jwt_present(token_configuration_id: String): Boolean",
308
+ "returnType": "Boolean",
309
+ "parameters": [
310
+ {
311
+ "name": "token_configuration_id",
312
+ "types": [
313
+ "String"
314
+ ],
315
+ "literal": true
316
+ }
317
+ ],
318
+ "categories": [
319
+ "Transformation functions"
320
+ ]
321
+ },
322
+ "is_jwt_valid": {
323
+ "summary": "Returns true if the request has a valid token according to the token configuration with the ID token_configuration_id.",
324
+ "signature": "is_jwt_valid(token_configuration_id: String): Boolean",
325
+ "returnType": "Boolean",
326
+ "parameters": [
327
+ {
328
+ "name": "token_configuration_id",
329
+ "types": [
330
+ "String"
331
+ ],
332
+ "literal": true
333
+ }
334
+ ],
335
+ "categories": [
336
+ "Transformation functions"
337
+ ]
338
+ },
339
+ "is_timed_hmac_valid_v0": {
340
+ "summary": "Validates hash-based message authentication code (HMAC) tokens in a rule expression.",
341
+ "signature": "is_timed_hmac_valid_v0(Key String literal, MessageMAC String field, ttl Integer literal, currentTimeStamp Integer, lengthOfSeparator Integer literal optional, flags String literal optional): Boolean",
342
+ "returnType": "Boolean",
343
+ "parameters": [
344
+ {
345
+ "name": "Key",
346
+ "types": [
347
+ "String"
348
+ ],
349
+ "literal": true
350
+ },
351
+ {
352
+ "name": "MessageMAC",
353
+ "types": [
354
+ "String"
355
+ ],
356
+ "field": true,
357
+ "acceptsFieldUsageKinds": [
358
+ "scalar"
359
+ ]
360
+ },
361
+ {
362
+ "name": "ttl",
363
+ "types": [
364
+ "Integer"
365
+ ],
366
+ "literal": true
367
+ },
368
+ {
369
+ "name": "currentTimeStamp",
370
+ "types": [
371
+ "Integer"
372
+ ]
373
+ },
374
+ {
375
+ "name": "lengthOfSeparator",
376
+ "types": [
377
+ "Integer"
378
+ ],
379
+ "optional": true,
380
+ "literal": true,
381
+ "defaultValue": 0
382
+ },
383
+ {
384
+ "name": "flags",
385
+ "types": [
386
+ "String"
387
+ ],
388
+ "optional": true,
389
+ "literal": true
390
+ }
391
+ ],
392
+ "categories": [
393
+ "HMAC validation"
394
+ ]
395
+ },
396
+ "join": {
397
+ "summary": "Returns a string which is the concatenation of the strings in items with the separator between each item.",
398
+ "signature": "join(items Array<String>, separator String): String",
399
+ "returnType": "String",
400
+ "parameters": [
401
+ {
402
+ "name": "items",
403
+ "types": [
404
+ "Array<String>"
405
+ ],
406
+ "role": "collection",
407
+ "acceptsFieldUsageKinds": [
408
+ "array"
409
+ ]
410
+ },
411
+ {
412
+ "name": "separator",
413
+ "types": [
414
+ "String"
415
+ ],
416
+ "literal": true
417
+ }
418
+ ],
419
+ "categories": [
420
+ "Transformation functions"
421
+ ]
422
+ },
423
+ "len": {
424
+ "summary": "Returns the byte length of a String or Bytes value, or the number of elements in an array.",
425
+ "signature": "len(String | Bytes | Array): Integer",
426
+ "returnType": "Integer",
427
+ "parameters": [
428
+ {
429
+ "name": "value",
430
+ "types": [
431
+ "String",
432
+ "Bytes",
433
+ "Array"
434
+ ],
435
+ "acceptsFieldUsageKinds": [
436
+ "scalar",
437
+ "array",
438
+ "map-array"
439
+ ]
440
+ }
441
+ ],
442
+ "categories": [
443
+ "Transformation functions"
444
+ ]
445
+ },
446
+ "lookup_json_integer": {
447
+ "summary": "Returns the integer value associated with the supplied key in field.",
448
+ "signature": "lookup_json_integer(field String, key String | Integer, key String | Integer optional, ...): Integer",
449
+ "returnType": "Integer",
450
+ "parameters": [
451
+ {
452
+ "name": "field",
453
+ "types": [
454
+ "String"
455
+ ],
456
+ "acceptsFieldUsageKinds": [
457
+ "scalar"
458
+ ]
459
+ },
460
+ {
461
+ "name": "key",
462
+ "types": [
463
+ "String",
464
+ "Integer"
465
+ ],
466
+ "variadic": true
467
+ }
468
+ ],
469
+ "categories": [
470
+ "Transformation functions"
471
+ ]
472
+ },
473
+ "lookup_json_string": {
474
+ "summary": "Returns the string value associated with the supplied key in field.",
475
+ "signature": "lookup_json_string(field String, key String | Integer, key String | Integer optional, ...): String",
476
+ "returnType": "String",
477
+ "parameters": [
478
+ {
479
+ "name": "field",
480
+ "types": [
481
+ "String"
482
+ ],
483
+ "acceptsFieldUsageKinds": [
484
+ "scalar"
485
+ ]
486
+ },
487
+ {
488
+ "name": "key",
489
+ "types": [
490
+ "String",
491
+ "Integer"
492
+ ],
493
+ "variadic": true
494
+ }
495
+ ],
496
+ "categories": [
497
+ "Transformation functions"
498
+ ]
499
+ },
500
+ "lower": {
501
+ "summary": "Converts a string field to lowercase. Only uppercase ASCII bytes are converted. All other bytes are unaffected.",
502
+ "signature": "lower(String): String",
503
+ "returnType": "String",
504
+ "parameters": [
505
+ {
506
+ "name": "value",
507
+ "types": [
508
+ "String"
509
+ ],
510
+ "acceptsFieldUsageKinds": [
511
+ "scalar",
512
+ "array",
513
+ "map-array"
514
+ ]
515
+ }
516
+ ],
517
+ "categories": [
518
+ "Transformation functions"
519
+ ]
520
+ },
521
+ "regex_replace": {
522
+ "summary": "Replaces a part of a source string matched by a regular expression with a replacement string, returning the result. The replacement string can contain references to regular expression capture groups (for example, ${1} and ${2}), up to eight replacement references.",
523
+ "signature": "regex_replace(source String, regular_expression String, replacement String): String",
524
+ "returnType": "String",
525
+ "parameters": [
526
+ {
527
+ "name": "source",
528
+ "types": [
529
+ "String"
530
+ ],
531
+ "acceptsFieldUsageKinds": [
532
+ "scalar"
533
+ ]
534
+ },
535
+ {
536
+ "name": "regular_expression",
537
+ "types": [
538
+ "String"
539
+ ],
540
+ "literal": true
541
+ },
542
+ {
543
+ "name": "replacement",
544
+ "types": [
545
+ "String"
546
+ ],
547
+ "literal": true
548
+ }
549
+ ],
550
+ "categories": [
551
+ "Transformation functions"
552
+ ]
553
+ },
554
+ "remove_bytes": {
555
+ "summary": "Returns a new byte array with all the occurrences of the given bytes removed.",
556
+ "signature": "remove_bytes(source Bytes, bytes Bytes): Bytes",
557
+ "returnType": "Bytes",
558
+ "parameters": [
559
+ {
560
+ "name": "source",
561
+ "types": [
562
+ "Bytes"
563
+ ],
564
+ "acceptsFieldUsageKinds": [
565
+ "scalar"
566
+ ]
567
+ },
568
+ {
569
+ "name": "bytes",
570
+ "types": [
571
+ "Bytes"
572
+ ],
573
+ "literal": true
574
+ }
575
+ ],
576
+ "categories": [
577
+ "Transformation functions"
578
+ ]
579
+ },
580
+ "remove_query_args": {
581
+ "summary": "Removes one or more query string parameters from a URI query string. Returns a string without the specified parameters.",
582
+ "signature": "remove_query_args(field String, query_param1 String, query_param2 String, ...): String",
583
+ "returnType": "String",
584
+ "parameters": [
585
+ {
586
+ "name": "field",
587
+ "types": [
588
+ "String"
589
+ ],
590
+ "field": true,
591
+ "role": "field",
592
+ "allowedFields": [
593
+ "http.request.uri.query",
594
+ "raw.http.request.uri.query"
595
+ ],
596
+ "acceptsFieldUsageKinds": [
597
+ "scalar"
598
+ ]
599
+ },
600
+ {
601
+ "name": "query_param",
602
+ "types": [
603
+ "String"
604
+ ],
605
+ "variadic": true,
606
+ "literal": true
607
+ }
608
+ ],
609
+ "categories": [
610
+ "Transformation functions"
611
+ ]
612
+ },
613
+ "sha256": {
614
+ "summary": "Computes the SHA-256 cryptographic hash of the input string or byte array. Returns a 32-byte hash value.",
615
+ "signature": "sha256(input String | Bytes): Bytes",
616
+ "returnType": "Bytes",
617
+ "parameters": [
618
+ {
619
+ "name": "input",
620
+ "types": [
621
+ "String",
622
+ "Bytes"
623
+ ],
624
+ "acceptsFieldUsageKinds": [
625
+ "scalar",
626
+ "array",
627
+ "map-array"
628
+ ]
629
+ }
630
+ ],
631
+ "categories": [
632
+ "Transformation functions"
633
+ ]
634
+ },
635
+ "split": {
636
+ "summary": "Splits the input string into an array of strings by breaking the initial string at every occurrence of the separator string. The returned array will contain at most limit number of elements.",
637
+ "signature": "split(input String, separator String, limit Integer): Array<String>",
638
+ "returnType": "Array<String>",
639
+ "parameters": [
640
+ {
641
+ "name": "input",
642
+ "types": [
643
+ "String"
644
+ ],
645
+ "acceptsFieldUsageKinds": [
646
+ "scalar"
647
+ ]
648
+ },
649
+ {
650
+ "name": "separator",
651
+ "types": [
652
+ "String"
653
+ ],
654
+ "literal": true,
655
+ "nonEmpty": true
656
+ },
657
+ {
658
+ "name": "limit",
659
+ "types": [
660
+ "Integer"
661
+ ],
662
+ "literal": true,
663
+ "min": 1,
664
+ "max": 128
665
+ }
666
+ ],
667
+ "categories": [
668
+ "Transformation functions"
669
+ ]
670
+ },
671
+ "starts_with": {
672
+ "summary": "Returns true when the source starts with a given substring. Returns false otherwise. The source cannot be a literal value (like \"foo\").",
673
+ "signature": "starts_with(source String, substring String): Boolean",
674
+ "returnType": "Boolean",
675
+ "parameters": [
676
+ {
677
+ "name": "source",
678
+ "types": [
679
+ "String"
680
+ ],
681
+ "notLiteral": true,
682
+ "acceptsFieldUsageKinds": [
683
+ "scalar"
684
+ ]
685
+ },
686
+ {
687
+ "name": "substring",
688
+ "types": [
689
+ "String"
690
+ ]
691
+ }
692
+ ],
693
+ "categories": [
694
+ "Transformation functions"
695
+ ]
696
+ },
697
+ "substring": {
698
+ "summary": "Returns part of the field value (the value of a String or Bytes field) from the start byte index up to (but excluding) the end byte index. The first byte in field has index 0. If you do not provide the optional end index, the function returns the part of the string from start index to the end of the string.",
699
+ "signature": "substring(field String | Bytes, start Integer, end Integer optional): String",
700
+ "returnType": "String",
701
+ "parameters": [
702
+ {
703
+ "name": "field",
704
+ "types": [
705
+ "String",
706
+ "Bytes"
707
+ ],
708
+ "acceptsFieldUsageKinds": [
709
+ "scalar"
710
+ ]
711
+ },
712
+ {
713
+ "name": "start",
714
+ "types": [
715
+ "Integer"
716
+ ]
717
+ },
718
+ {
719
+ "name": "end",
720
+ "types": [
721
+ "Integer"
722
+ ],
723
+ "optional": true
724
+ }
725
+ ],
726
+ "categories": [
727
+ "Transformation functions"
728
+ ]
729
+ },
730
+ "to_string": {
731
+ "summary": "Returns the string representation of an Integer, Boolean, or IP address value.",
732
+ "signature": "to_string(Integer | Boolean | IP address): String",
733
+ "returnType": "String",
734
+ "parameters": [
735
+ {
736
+ "name": "value",
737
+ "types": [
738
+ "Integer",
739
+ "Boolean",
740
+ "IP address"
741
+ ],
742
+ "acceptsFieldUsageKinds": [
743
+ "scalar"
744
+ ]
745
+ }
746
+ ],
747
+ "categories": [
748
+ "Transformation functions"
749
+ ]
750
+ },
751
+ "upper": {
752
+ "summary": "Converts a string field to uppercase. Only lowercase ASCII bytes are converted. All other bytes are unaffected.",
753
+ "signature": "upper(String): String",
754
+ "returnType": "String",
755
+ "parameters": [
756
+ {
757
+ "name": "value",
758
+ "types": [
759
+ "String"
760
+ ],
761
+ "acceptsFieldUsageKinds": [
762
+ "scalar",
763
+ "array",
764
+ "map-array"
765
+ ]
766
+ }
767
+ ],
768
+ "categories": [
769
+ "Transformation functions"
770
+ ]
771
+ },
772
+ "url_decode": {
773
+ "summary": "Decodes a URL-formatted string.",
774
+ "signature": "url_decode(source String, options String optional): String",
775
+ "returnType": "String",
776
+ "parameters": [
777
+ {
778
+ "name": "source",
779
+ "types": [
780
+ "String"
781
+ ],
782
+ "field": true,
783
+ "role": "field",
784
+ "acceptsFieldUsageKinds": [
785
+ "scalar",
786
+ "array",
787
+ "map-array"
788
+ ]
789
+ },
790
+ {
791
+ "name": "options",
792
+ "types": [
793
+ "String"
794
+ ],
795
+ "optional": true,
796
+ "literal": true
797
+ }
798
+ ],
799
+ "categories": [
800
+ "Transformation functions"
801
+ ]
802
+ },
803
+ "uuidv4": {
804
+ "summary": "Generates a random UUIDv4 (Universally Unique Identifier, version 4) based on the given argument (a source of randomness). To obtain an array of random bytes, use the cf.random_seed field.",
805
+ "signature": "uuidv4(source Bytes): String",
806
+ "returnType": "String",
807
+ "parameters": [
808
+ {
809
+ "name": "source",
810
+ "types": [
811
+ "Bytes"
812
+ ],
813
+ "acceptsFieldUsageKinds": [
814
+ "scalar"
815
+ ]
816
+ }
817
+ ],
818
+ "categories": [
819
+ "Transformation functions"
820
+ ]
821
+ },
822
+ "wildcard_replace": {
823
+ "summary": "Replaces a source string, matched by a literal with zero or more wildcard metacharacters, with a replacement string, returning the result. The replacement string can contain references to wildcard capture groups (for example, ${1} and ${2}), up to eight replacement references.",
824
+ "signature": "wildcard_replace(source Bytes, wildcard_pattern Bytes, replacement Bytes, flags Bytes optional): String",
825
+ "returnType": "String",
826
+ "parameters": [
827
+ {
828
+ "name": "source",
829
+ "types": [
830
+ "Bytes"
831
+ ],
832
+ "field": true,
833
+ "role": "field",
834
+ "acceptsFieldUsageKinds": [
835
+ "scalar"
836
+ ]
837
+ },
838
+ {
839
+ "name": "wildcard_pattern",
840
+ "types": [
841
+ "Bytes"
842
+ ],
843
+ "literal": true
844
+ },
845
+ {
846
+ "name": "replacement",
847
+ "types": [
848
+ "Bytes"
849
+ ],
850
+ "literal": true
851
+ },
852
+ {
853
+ "name": "flags",
854
+ "types": [
855
+ "Bytes"
856
+ ],
857
+ "optional": true,
858
+ "literal": true
859
+ }
860
+ ],
861
+ "categories": [
862
+ "Transformation functions"
863
+ ]
864
+ }
865
+ };
866
+ //# sourceMappingURL=function-descriptions.generated.js.map