Add role parameter to users.list endpoint (#6754)

This commit is contained in:
Tom Moor
2024-04-02 06:00:12 -06:00
committed by GitHub
parent d2d3adefe6
commit 365f4c4b1f
3 changed files with 39 additions and 1 deletions

View File

@@ -29,6 +29,16 @@ export const UsersListSchema = z.object({
query: z.string().optional(),
/** The user's role */
role: z.nativeEnum(UserRole).optional(),
/**
* Filter the users by their status passing a user role is deprecated here, instead use the
* `role` parameter, which will allow filtering by role and status, eg invited members, or
* suspended admins.
*
* @deprecated
*/
filter: z
.enum([
"invited",