1
1
// This file is auto-generated. Do not edit manually.
2
2
3
+ /**
4
+ * A JEXL to filter records. See https://remote-settings.readthedocs.io/en/latest/target-filters.html#how
5
+ */
6
+ export type FilterExpression = string ;
7
+
3
8
/**
4
9
* Represents an entry in the URL classifier exception list
5
10
*/
@@ -17,32 +22,29 @@ export interface URLClassifierExceptionListEntry {
17
22
/**
18
23
* The category of the exception entry.
19
24
*/
20
- category : " baseline" | " convenience" ;
25
+ category : ' baseline' | ' convenience' ;
21
26
/**
22
27
* The urlPattern for the url to be loaded. See https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns for more info.
23
28
*/
24
29
urlPattern : string ;
25
- /**
26
- * Optional Remote Settings target filter. See https://remote-settings.readthedocs.io/en/latest/target-filters.html#how
27
- */
28
- filter_expression ?: string ;
30
+ filter_expression ?: FilterExpression ;
29
31
/**
30
32
* The list of url classifier features to apply this exception to.
31
33
*/
32
34
classifierFeatures : (
33
- | " blockedURIs"
34
- | " cryptomining-annotation"
35
- | " cryptomining-protection"
36
- | " emailtracking-protection"
37
- | " emailtracking-data-collection"
38
- | " fingerprinting-annotation"
39
- | " fingerprinting-protection"
40
- | " malware"
41
- | " phishing"
42
- | " socialtracking-annotation"
43
- | " socialtracking-protection"
44
- | " tracking-annotation"
45
- | " tracking-protection"
35
+ | ' blockedURIs'
36
+ | ' cryptomining-annotation'
37
+ | ' cryptomining-protection'
38
+ | ' emailtracking-protection'
39
+ | ' emailtracking-data-collection'
40
+ | ' fingerprinting-annotation'
41
+ | ' fingerprinting-protection'
42
+ | ' malware'
43
+ | ' phishing'
44
+ | ' socialtracking-annotation'
45
+ | ' socialtracking-protection'
46
+ | ' tracking-annotation'
47
+ | ' tracking-protection'
46
48
) [ ] ;
47
49
/**
48
50
* Optional top-level url pattern to filter for this exception. If not set the exception applies to all top level sites.
@@ -55,6 +57,6 @@ export interface URLClassifierExceptionListEntry {
55
57
/**
56
58
* Optional array of content blocking categories to filter for this exception. If not set the exception applies to all content blocking categories.
57
59
*/
58
- filterContentBlockingCategories ?: ( " standard" | " strict" | " custom" ) [ ] ;
60
+ filterContentBlockingCategories ?: ( ' standard' | ' strict' | ' custom' ) [ ] ;
59
61
[ k : string ] : unknown ;
60
62
}
0 commit comments