summaryrefslogtreecommitdiffstats
path: root/third_party/rust/suggest/src/suggest.udl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
commit8dd16259287f58f9273002717ec4d27e97127719 (patch)
tree3863e62a53829a84037444beab3abd4ed9dfc7d0 /third_party/rust/suggest/src/suggest.udl
parentReleasing progress-linux version 126.0.1-1~progress7.99u1. (diff)
downloadfirefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz
firefox-8dd16259287f58f9273002717ec4d27e97127719.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/rust/suggest/src/suggest.udl')
-rw-r--r--third_party/rust/suggest/src/suggest.udl15
1 files changed, 15 insertions, 0 deletions
diff --git a/third_party/rust/suggest/src/suggest.udl b/third_party/rust/suggest/src/suggest.udl
index 4a4e3fe9a0..0c4781b951 100644
--- a/third_party/rust/suggest/src/suggest.udl
+++ b/third_party/rust/suggest/src/suggest.udl
@@ -6,6 +6,9 @@
[External="remote_settings"]
typedef extern RemoteSettingsConfig;
+[External="remote_settings"]
+typedef extern RemoteSettingsServer;
+
namespace suggest {
boolean raw_suggestion_url_matches([ByRef] string raw_url, [ByRef] string url);
@@ -103,6 +106,14 @@ dictionary SuggestionQuery {
dictionary SuggestIngestionConstraints {
u64? max_suggestions = null;
sequence<SuggestionProvider>? providers = null;
+ // Only ingest if the table `suggestions` is empty.
+ //
+ // This is indented to handle periodic updates. Consumers can schedule an ingest with
+ // `empty_only=true` on startup and a regular ingest with `empty_only=false` to run on a long periodic schedule (maybe
+ // once a day). This allows ingestion to normally be run at a slow, periodic rate. However, if
+ // there is a schema upgrade that causes the database to be thrown away, then the
+ // `empty_only=true` ingestion that runs on startup will repopulate it.
+ boolean empty_only = false;
};
dictionary SuggestGlobalConfig {
@@ -155,6 +166,10 @@ interface SuggestStoreBuilder {
SuggestStoreBuilder cache_path(string path);
[Self=ByArc]
+ SuggestStoreBuilder remote_settings_server(RemoteSettingsServer server);
+
+ // Deprecated: Use `remote_settings_server()` instead.
+ [Self=ByArc]
SuggestStoreBuilder remote_settings_config(RemoteSettingsConfig config);
[Throws=SuggestApiError]