From 092ca8639f558c257ed8c26a644967d32039c32c Mon Sep 17 00:00:00 2001 From: jebibot <83044352+jebibot@users.noreply.github.com> Date: Fri, 8 May 2026 17:59:16 +0900 Subject: [PATCH] fix(backend): add missing UserCountParams --- .changeset/fluffy-fans-press.md | 5 +++++ packages/backend/src/api/endpoints/UserApi.ts | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .changeset/fluffy-fans-press.md diff --git a/.changeset/fluffy-fans-press.md b/.changeset/fluffy-fans-press.md new file mode 100644 index 00000000000..d4e18b422b6 --- /dev/null +++ b/.changeset/fluffy-fans-press.md @@ -0,0 +1,5 @@ +--- +'@clerk/backend': patch +--- + +Add missing UserCountParams and UserListParams diff --git a/packages/backend/src/api/endpoints/UserApi.ts b/packages/backend/src/api/endpoints/UserApi.ts index 1124da452ea..5087818ea09 100644 --- a/packages/backend/src/api/endpoints/UserApi.ts +++ b/packages/backend/src/api/endpoints/UserApi.ts @@ -16,6 +16,10 @@ import type { WithSign } from './util-types'; const basePath = '/users'; +type ExternalAccountFilter = + | { provider: string; providerUserId: string[] } + | { provider?: undefined; providerUserId?: undefined }; + type UserCountParams = { emailAddress?: string[]; phoneNumber?: string[]; @@ -24,7 +28,12 @@ type UserCountParams = { query?: string; userId?: string[]; externalId?: string[]; -}; + emailAddressQuery?: string; + phoneNumberQuery?: string; + usernameQuery?: string; + nameQuery?: string; + banned?: boolean; +} & ExternalAccountFilter; type UserListParams = ClerkPaginationRequest< UserCountParams & {