Skip to content

Commit 5320fac

Browse files
committed
Update types from RemoteSettings.
1 parent 65fd7b1 commit 5320fac

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed
Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
// This file is auto-generated. Do not edit manually.
22

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+
38
/**
49
* Represents an entry in the URL classifier exception list
510
*/
@@ -17,32 +22,29 @@ export interface URLClassifierExceptionListEntry {
1722
/**
1823
* The category of the exception entry.
1924
*/
20-
category: "baseline" | "convenience";
25+
category: 'baseline' | 'convenience';
2126
/**
2227
* 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.
2328
*/
2429
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;
2931
/**
3032
* The list of url classifier features to apply this exception to.
3133
*/
3234
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'
4648
)[];
4749
/**
4850
* 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 {
5557
/**
5658
* Optional array of content blocking categories to filter for this exception. If not set the exception applies to all content blocking categories.
5759
*/
58-
filterContentBlockingCategories?: ("standard" | "strict" | "custom")[];
60+
filterContentBlockingCategories?: ('standard' | 'strict' | 'custom')[];
5961
[k: string]: unknown;
6062
}

0 commit comments

Comments
 (0)