typedef UserActionCallback<T> = void Function(T session, int userId, [Map<String, String>? userInfo]);