dexie-cloud-addon 4.3.3 → 4.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { DexieCloudOptions } from './DexieCloudOptions';
2
- import { DBRealmRole, DexieCloudSchema } from 'dexie-cloud-common';
2
+ import { DBRealmRole, DexieCloudSchema, AuthProvidersResponse } from 'dexie-cloud-common';
3
3
  import { UserLogin } from './db/entities/UserLogin';
4
4
  import { PersistedSyncState } from './db/entities/PersistedSyncState';
5
5
  import { SyncState } from './types/SyncState';
@@ -76,4 +76,15 @@ export interface DexieCloudAPI {
76
76
  * @param table Table name that the object was retrieved from
77
77
  */
78
78
  permissions<T>(obj: T, table: string): Observable<PermissionChecker<T, string>>;
79
+ /** Query available authentication providers from the server.
80
+ *
81
+ * Returns information about which OAuth providers are configured
82
+ * and whether OTP (email) authentication is enabled.
83
+ *
84
+ * Useful for apps that want to build their own login UI and show
85
+ * provider-specific buttons.
86
+ *
87
+ * @returns Promise resolving to available auth providers
88
+ */
89
+ getAuthProviders(): Promise<AuthProvidersResponse>;
79
90
  }
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * ==========================================================================
10
10
  *
11
- * Version 4.3.3, Thu Jan 22 2026
11
+ * Version 4.3.4, Fri Jan 23 2026
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -6915,7 +6915,7 @@ function dexieCloud(dexie) {
6915
6915
  const syncComplete = new Subject();
6916
6916
  dexie.cloud = {
6917
6917
  // @ts-ignore
6918
- version: "4.3.3",
6918
+ version: "4.3.4",
6919
6919
  options: Object.assign({}, DEFAULT_OPTIONS),
6920
6920
  schema: null,
6921
6921
  get currentUserId() {
@@ -6983,6 +6983,16 @@ function dexieCloud(dexie) {
6983
6983
  : yield logout(DexieCloudDB(dexie));
6984
6984
  });
6985
6985
  },
6986
+ getAuthProviders() {
6987
+ return __awaiter(this, void 0, void 0, function* () {
6988
+ const options = dexie.cloud.options;
6989
+ if (!(options === null || options === void 0 ? void 0 : options.databaseUrl)) {
6990
+ throw new Error('Dexie Cloud not configured. Call db.cloud.configure() first.');
6991
+ }
6992
+ const socialAuthEnabled = options.socialAuth !== false;
6993
+ return fetchAuthProviders(options.databaseUrl, socialAuthEnabled);
6994
+ });
6995
+ },
6986
6996
  sync() {
6987
6997
  return __awaiter(this, arguments, void 0, function* ({ wait, purpose } = { wait: true, purpose: 'push' }) {
6988
6998
  var _a;
@@ -7284,7 +7294,7 @@ function dexieCloud(dexie) {
7284
7294
  }
7285
7295
  }
7286
7296
  // @ts-ignore
7287
- dexieCloud.version = "4.3.3";
7297
+ dexieCloud.version = "4.3.4";
7288
7298
  Dexie.Cloud = dexieCloud;
7289
7299
 
7290
7300
  export { dexieCloud as default, defineYDocTrigger, dexieCloud, getTiedObjectId, getTiedRealmId, resolveText };