Skip to content

Commit ebdf66d

Browse files
authored
feat(types): update idp types for optional password and clearPassword support (#130)
1 parent 8334d65 commit ebdf66d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

packages/types/tailor.d.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,8 @@ declare namespace tailor.idp {
333333
interface CreateUserInput {
334334
/** The user's name (typically email) */
335335
name: string;
336-
/** The user's password */
337-
password: string;
336+
/** The user's password. If omitted, the user is created without a password (cannot log in with any password). */
337+
password?: string;
338338
/** Whether the user is disabled */
339339
disabled?: boolean;
340340
}
@@ -347,8 +347,10 @@ declare namespace tailor.idp {
347347
id: string;
348348
/** New name for the user */
349349
name?: string;
350-
/** New password for the user */
350+
/** New password for the user. Cannot be used with clearPassword. */
351351
password?: string;
352+
/** If true, remove the user's password. Cannot be used with password. */
353+
clearPassword?: boolean;
352354
/** New disabled status for the user */
353355
disabled?: boolean;
354356
}

0 commit comments

Comments
 (0)