From bec09f89ebc9dc52596375cbf20451429ed9fe89 Mon Sep 17 00:00:00 2001 From: Kenneth Geisshirt Date: Fri, 26 Apr 2024 10:19:27 +0200 Subject: [PATCH] [bindgen] follow up to #7300 (#7623) --- bindgen/spec.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/bindgen/spec.yml b/bindgen/spec.yml index 76284e08fa7..d874d6a9929 100644 --- a/bindgen/spec.yml +++ b/bindgen/spec.yml @@ -19,6 +19,7 @@ headers: - "realm/object-store/sync/app.hpp" - "realm/object-store/sync/sync_manager.hpp" - "realm/object-store/sync/sync_session.hpp" + - "realm/object-store/sync/app_user.hpp" - "realm/object-store/sync/sync_user.hpp" - "realm/object-store/sync/mongo_collection.hpp" - "realm/util/bson/bson.hpp" @@ -231,7 +232,7 @@ enums: values: - NoEncryption - Encryption - - NoMetadata + - InMemory LoggerLevel: cppName: util::Logger::Level @@ -301,7 +302,7 @@ enums: - download SyncUserState: - cppName: UserState + cppName: SyncUser::State values: - LoggedOut - LoggedIn @@ -1215,12 +1216,12 @@ classes: state: SyncUserState sync_manager: SharedSyncManager methods: - access_token_refresh_required: bool - request_log_out: '(cb: AsyncCallback<(err: std::optional)>&&)' + access_token_refresh_required: '() -> bool' +# request_log_out: '(cb: AsyncCallback<(err: std::optional)>&&)' request_refresh_user: '(cb: AsyncCallback<(err: std::optional)>&&)' request_refresh_location: '(cb: AsyncCallback<(err: std::optional)>&&)' request_access_token: '(cb: AsyncCallback<(err: std::optional)>&&)' - track_realm: '(std::string_view)' + track_realm: '(path: std::string_view)' create_file_action: '(action: SyncFileAction, original_path: std::string_view, requested_recovery_dir: std::optional, partition_value: std::string_view) -> std::string' User: @@ -1238,8 +1239,9 @@ classes: app: SharedApp methods: log_out: () - subscribe: '(observer: (user: IgnoreArgument)) -> UserSubscriptionToken' + subscribe: '(observer: (user: IgnoreArgument)) -> UserSubscriptionToken' unsubscribe: '(token: UserSubscriptionToken)' + path_for_realm: '(config: SyncConfig&, custom_file_name: std::optional&) -> std::string' UserProfile: cppName: app::UserProfile @@ -1297,6 +1299,7 @@ classes: make_streaming_request: '(user: SharedUser, name: std::string, args: bson::BsonArray, service_name: std::optional) -> Request' update_base_url: '(base_url: std::optional, cb: AsyncCallback<(err: std::optional)>&&)' get_base_url: '() const -> std::string' + immediately_run_file_actions: '(realm_path: std::string) -> bool' WatchStream: cppName: app::WatchStream @@ -1357,7 +1360,7 @@ classes: set_timeouts: '(timeouts: SyncClientTimeouts)' reconnect: () wait_for_sessions_to_terminate: () - get_existing_active_session: '(path: const std::string&) -> SharedSyncSession' + get_existing_active_session: '(path: const std::string&) -> Nullable' get_all_sessions_for: '(user: const SyncUser&) -> std::vector' ThreadSafeReference: {}