@rebasepro/types 0.35.0 → 0.36.0
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.
- package/dist/controllers/client.d.ts +6 -3
- package/dist/index.es.js +57 -2494
- package/dist/index.es.js.map +1 -1
- package/dist/types/backend.d.ts +31 -0
- package/dist/users/import.d.ts +42 -3
- package/package.json +6 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ImportUserInput, ImportUsersResult, User } from "../users/index.js";
|
|
1
|
+
import type { ImportedPasswordHashAlgorithm, ImportUserInput, ImportUsersResult, User } from "../users/index.js";
|
|
2
2
|
import type { ResourceRef } from "../types/resources.js";
|
|
3
3
|
import type { RebaseSdkData } from "./data.js";
|
|
4
4
|
import type { EmailService } from "./email.js";
|
|
@@ -258,12 +258,15 @@ export interface AdminAPI {
|
|
|
258
258
|
emailDeliveryFailed?: boolean;
|
|
259
259
|
}>;
|
|
260
260
|
/**
|
|
261
|
-
* Accounts from another system, keeping their ids; no
|
|
262
|
-
*
|
|
261
|
+
* Accounts from another system, keeping their ids; no email. No password
|
|
262
|
+
* either, unless each carries the other system's hash as `passwordHash`
|
|
263
|
+
* and `passwordHashAlgorithm` names its format (`"bcrypt"`). An id or
|
|
264
|
+
* email already taken is `skipped`, never updated. At most
|
|
263
265
|
* `MAX_USERS_PER_IMPORT` (100) per call.
|
|
264
266
|
*/
|
|
265
267
|
importUsers(users: ImportUserInput[], options?: {
|
|
266
268
|
dryRun?: boolean;
|
|
269
|
+
passwordHashAlgorithm?: ImportedPasswordHashAlgorithm;
|
|
267
270
|
}): Promise<ImportUsersResult>;
|
|
268
271
|
updateUser(uid: string, data: {
|
|
269
272
|
email?: string;
|