diff --git a/frontend/src/queries/schema.json b/frontend/src/queries/schema.json index d766c423a4199..f0eb9da24390f 100644 --- a/frontend/src/queries/schema.json +++ b/frontend/src/queries/schema.json @@ -58,6 +58,9 @@ "description": "Currently only person filters supported (including via HogQL), See `filter_conditions()` in actor_strategies.py.", "items": { "anyOf": [ + { + "$ref": "#/definitions/CohortPropertyFilter" + }, { "$ref": "#/definitions/PersonPropertyFilter" }, @@ -92,6 +95,9 @@ "description": "Currently only person filters supported (including via HogQL). see `filter_conditions()` in actor_strategies.py.", "items": { "anyOf": [ + { + "$ref": "#/definitions/CohortPropertyFilter" + }, { "$ref": "#/definitions/PersonPropertyFilter" }, diff --git a/frontend/src/queries/schema.ts b/frontend/src/queries/schema.ts index f0f59f042aed6..8df583618558f 100644 --- a/frontend/src/queries/schema.ts +++ b/frontend/src/queries/schema.ts @@ -6,6 +6,7 @@ import { BreakdownType, ChartDisplayCategory, ChartDisplayType, + CohortPropertyFilter, CountPerActorMathType, EventPropertyFilter, EventType, @@ -991,9 +992,9 @@ export interface ActorsQuery extends DataNode { select?: HogQLExpression[] search?: string /** Currently only person filters supported (including via HogQL). see `filter_conditions()` in actor_strategies.py. */ - properties?: (PersonPropertyFilter | HogQLPropertyFilter)[] + properties?: (CohortPropertyFilter | PersonPropertyFilter | HogQLPropertyFilter)[] /** Currently only person filters supported (including via HogQL), See `filter_conditions()` in actor_strategies.py. */ - fixedProperties?: (PersonPropertyFilter | HogQLPropertyFilter)[] + fixedProperties?: (CohortPropertyFilter | PersonPropertyFilter | HogQLPropertyFilter)[] orderBy?: string[] limit?: integer offset?: integer diff --git a/posthog/schema.py b/posthog/schema.py index a92e64f794c6a..ed3596cf8c8ca 100644 --- a/posthog/schema.py +++ b/posthog/schema.py @@ -4134,7 +4134,7 @@ class ActorsQuery(BaseModel): model_config = ConfigDict( extra="forbid", ) - fixedProperties: Optional[list[Union[PersonPropertyFilter, HogQLPropertyFilter]]] = Field( + fixedProperties: Optional[list[Union[CohortPropertyFilter, PersonPropertyFilter, HogQLPropertyFilter]]] = Field( default=None, description="Currently only person filters supported (including via HogQL), See `filter_conditions()` in actor_strategies.py.", ) @@ -4145,7 +4145,7 @@ class ActorsQuery(BaseModel): ) offset: Optional[int] = None orderBy: Optional[list[str]] = None - properties: Optional[list[Union[PersonPropertyFilter, HogQLPropertyFilter]]] = Field( + properties: Optional[list[Union[CohortPropertyFilter, PersonPropertyFilter, HogQLPropertyFilter]]] = Field( default=None, description="Currently only person filters supported (including via HogQL). see `filter_conditions()` in actor_strategies.py.", )