fix: add array of numbers support to list filter value types

This commit is contained in:
Taesu
2026-02-08 23:12:17 +09:00
parent 59e3f20760
commit 69dd012543
4 changed files with 4 additions and 2 deletions

View File

@@ -153,7 +153,7 @@ type listUsers = {
/**
* The value to filter by.
*/
filterValue?: string | number | boolean | string[] = "hello@example.com"
filterValue?: string | number | boolean | string[] | number[] = "hello@example.com"
/**
* The operator to use for the filter.
*/

View File

@@ -1094,7 +1094,7 @@ type listMembers = {
/**
* The value to filter by.
*/
filterValue?: string | number | boolean | string[] = "value"
filterValue?: string | number | boolean | string[] | number[] = "value"
}
```
</APIMethod>

View File

@@ -576,6 +576,7 @@ const listUsersQuerySchema = z.object({
.or(z.number())
.or(z.boolean())
.or(z.array(z.string()))
.or(z.array(z.number()))
.optional(),
filterOperator: z
.enum(whereOperators)

View File

@@ -881,6 +881,7 @@ export const listMembers = <O extends OrganizationOptions>(options: O) =>
.or(z.number())
.or(z.boolean())
.or(z.array(z.string()))
.or(z.array(z.number()))
.optional(),
filterOperator: z
.enum(whereOperators)