-
Notifications
You must be signed in to change notification settings - Fork 221
/
suggest.udl
50 lines (39 loc) · 990 Bytes
/
suggest.udl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[External="remote_settings"]
typedef extern RemoteSettingsConfig;
namespace suggest {
};
[Error]
interface SuggestApiError {
Other(string reason);
};
dictionary IngestLimits {
u64? records;
};
dictionary Suggestion {
i64 block_id;
string advertiser;
string iab_category;
boolean is_sponsored;
string full_keyword;
string title;
string url;
sequence<u8>? icon;
string? impression_url;
string? click_url;
};
dictionary SuggestionQuery {
string keyword = "";
boolean include_sponsored = false;
boolean include_non_sponsored = false;
};
interface SuggestStore {
[Throws=SuggestApiError]
constructor([ByRef] string path, optional RemoteSettingsConfig? settings_config = null);
[Throws=SuggestApiError]
sequence<Suggestion> query([ByRef] SuggestionQuery query);
void interrupt();
[Throws=SuggestApiError]
void ingest([ByRef] IngestLimits limits);
[Throws=SuggestApiError]
void clear();
};