Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(cohorts): filter cohorts and flags on person.created_at (#62230)

ruby childsa582d9556184
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 719fee1c3e6f..42b0a3008624 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -4845,9 +4845,9 @@ snapshots:
scenes-app-customer-analytics-accounts--row-expanded-empty--light:
hash: v1.k794b7964.904bd5b939f99d43408ae3a8a814a3c299bd57bf13a0fd1d98ff6033fd66e343.K1Z16ICEF6-O9kIej8kGnYyarloq2oZH5rdtmx-8Hu0
scenes-app-customer-analytics-accounts--row-expanded-links-disabled--dark:
- hash: v1.k794b7964.dbe806f797399ea2451bdf08b2a0bc1a413ea4d65e1a244e859a6f17a330005d.i8IfnQ9ONhYyodW5HPR_2GSN7q1dcVA3cPUtXyNi_ro
+ hash: v1.k794b7964.d2efe33a50fa0f2e076fdc40334333e45ec2344b58b9c4d3df6cc5cc0bb073f0.LRIIMBC3WY2eC_ZVjlb4n7UfX_XbsMH1lCn4pWnUOJE
scenes-app-customer-analytics-accounts--row-expanded-links-disabled--light:
- hash: v1.k794b7964.f82e5d3d3f153d31ba1ef5b668ebb5ab8aab000fe4acb42252f89e9f56a838bc.GkNSIp0tMmvNDlRasel6bRQBgice_VcLKHISDWHGnnU
+ hash: v1.k794b7964.5eb51441627289ebe42cecd9311d5a1f5b625a1d37ddd8daa3138e24f46ee90f.2YABFnnFmj-6o1atsqYxtPAru8WdKTRJZ8ubbnNzgU4
scenes-app-customer-analytics-accounts--row-expanded-usage-not-found--dark:
hash: v1.k794b7964.53af994a2a4dfb2f883e27ed73be8d55e1177b97f5c8b622708dfcdbe5f33d2a.A7AJRK9hY-yytJMNPghuLYtOJIoj0VBJidseMubwZWs
scenes-app-customer-analytics-accounts--row-expanded-usage-not-found--light:
@@ -5101,9 +5101,9 @@ snapshots:
scenes-app-data-management--ingestion-warnings--light:
hash: v1.k794b7964.e56152594758977ca4d9654f5eb548610b4a084b650be0f3af93f30afcff496f.fOdcFwd3I2-wEb2B7Hj1bCDhjaUbP4bY8sabgZZSsI0
scenes-app-data-management-actions--action--dark:
- hash: v1.k794b7964.e8b0d3ebc2c34d92ea5980386b4512c4ff5637e16c604d2bff4d946911ef48b2.-ljhFCq52zUCD1V2Ur3d_NcGdALHsyo2cNIobjGQQHA
+ hash: v1.k794b7964.62147163861498706227b7fd0edccb753ecf20a885ee3d20d52343c4f32a4d83.l6PMuJl_KaF9ykmg_5V1i4zJJgnfpefmWlMjhBDRO6U
scenes-app-data-management-actions--action--light:
- hash: v1.k794b7964.b875be9f97d4db11525b324773a87f0139811ba4c1228fd43eef8fec2c6b2675.4R2RUM_ne5xGnhsNkAvLJGP60tXEEjWOqzYDcKuU6rk
+ hash: v1.k794b7964.a705c57f68827f6fb2bcb917d67e557f1862d0ad83ef1b8b550e10f179b964c7.G5PGholLd2YuH3yiD28p8VULHS0_n_e6RxrtjEz8Tes
scenes-app-data-management-actions--actions-list--dark:
hash: v1.k794b7964.3df357816c12adb98c12e49f1160c44346cc936ca768e4f00315d0a114f02fa8.I0Kh41k1IYOwKBydxs_2_zyH0AVlmfEmpum5dtbOdQA
scenes-app-data-management-actions--actions-list--light:
@@ -5113,9 +5113,9 @@ snapshots:
scenes-app-data-management-actions--new-action--light:
hash: v1.k794b7964.f0415140ec8bf33a52e933c69c6d3206e1f59e7e8ebbc2a2c3f6e6d5506362da.MgPpETyhpRQhgZG7JcafPF4ro4VUjtM1MLHPWgQ2avA
scenes-app-data-management-actions--screen-action--dark:
- hash: v1.k794b7964.526e80b58d5ecbfa406858cbc58244c7f2c5e9b4fa96355610d5bf4f04589af3.hW-FR7PpVsnU1GjO2ctE8z3OsAI3ymzUclW_qNoMqq8
+ hash: v1.k794b7964.b8b0ca1c577d8b85cd88230c5064a0cd618566ec8c16d48950e2bffbb50e800e.5Xzko93j57TEoJJddRqnb6vSXk52NBxXv_w5Cgfx-Ug
scenes-app-data-management-actions--screen-action--light:
- hash: v1.k794b7964.d8bf73932b4afa31b9f38a86a55d96c1e4c12f6970168badd52faccbae7b890f.b6EHh73OZeepK8-PbH0_B-xwdwe_loNTxYBXcCb_95s
+ hash: v1.k794b7964.9ecf3aff972e764fdf130173a075d5ae7f7f239b191531b4d244eb9c5a420b12.__DwksRusJEx3ZXLByHo7y5qMkvFqIYYBM1hiF2Xet0
scenes-app-data-management-comments--comments--dark:
hash: v1.k794b7964.81fcc362d31948514c45cdf715ec11fc51bf0694a8abf85c2e5b1321b32af4e2.5VTjHjgDNqGn6UzFZSr5OF2RalMbuxdBWV_bSF-GYrc
scenes-app-data-management-comments--comments--light:
@@ -5129,21 +5129,21 @@ snapshots:
scenes-app-data-management-comments--tasks--light:
hash: v1.k794b7964.b4301afdf80b77d7dd0c5c5b6f98ec6584b9d2920fde5d374687c4e428721e63.TmUXts4eR0Ihk6mqk4pUQ7s_nv3SNHv1FVSl3Kle-YE
scenes-app-data-management-definition-view--event-definition-metadata--medium--dark:
- hash: v1.k794b7964.0e0104e4190859436436a7ce0581ab2325ffa526ca20a541a215299e7d0013c4.bUtcdbIWGPSirIzSptxNnLzvuVu97kZdsoeKYNG1lp8
+ hash: v1.k794b7964.31f6e495ba6ec2968e833997c416a57ee3cac7644e64f746a39a9ceb5ad4f820.q9YD_ly9_HqR8esVoCOHWevOrlrhH5es2PF-fvHR_3Y
scenes-app-data-management-definition-view--event-definition-metadata--medium--light:
- hash: v1.k794b7964.c81ef7551c051910ac1b5f87c167f724ec24020e1e4153e6517f61ba094ccd06.6X14ZuIBWumWAlYX2tfq0coKfReedMynGUwHDLuQzdo
+ hash: v1.k794b7964.8d19d68b3c6f407de375aecfdee2e3e111c7ffd6f02cda3555562bf6290cd57a.ylX6ab0Tfz2SjGZb5SbURbQxZJsGYo3ExBNc2v-DLPk
scenes-app-data-management-definition-view--event-definition-metadata--narrow--dark:
- hash: v1.k794b7964.fab0ed445e5db2f37de6e76fa0935b6de8367cfca98d06a3c5ef52d7be3029b9.lNrv8v1UIH9mq3fTSWgKM4orFFl1V-84t9MFfnOqlcU
+ hash: v1.k794b7964.bd336facb2dee20c62da16c4d546bd373e2e14612ed3d83c96cf73d84f7ada68.lSD_-YhAZmmhXBQQIZFrjZycRnDd-O5ATnVJ9fGJpGk
scenes-app-data-management-definition-view--event-definition-metadata--narrow--light:
- hash: v1.k794b7964.3f4d91e8f616b1713a2f1ea70c400d5e2188c265bca97fbe54c10b004fbbc1fa.pCFHzkJnPxOFdwC7-QK7kysAs9I3AZwFPJYNYgBeJXY
+ hash: v1.k794b7964.eb4bac3bd070e01f01563ee4431a467f53b1ecf2d11308ac1ffae88c0eb7a14c.SyYMuF-QBQ-JfUQF1ERha58ONW8Uzexs9EaT1mkIQ-8
scenes-app-data-management-definition-view--event-definition-metadata--superwide--dark:
hash: v1.k794b7964.ed3742df3518eaab9916973b07e971ba375763a991b3df1bb96a2d60a4ea1614.orHFPz15RGlaVrvgZ56jgFa6B9yRkEEjd77oZ6VxQJ4
scenes-app-data-management-definition-view--event-definition-metadata--superwide--light:
hash: v1.k794b7964.218c3d5c315230f19a296de9b543838b592b218426ffb7e7d40a2402c97d887d.bKwdGLJrJfFINJ7uGje7bqzwUDPIOokLanHxPCEkU04
scenes-app-data-management-definition-view--event-definition-metadata--wide--dark:
- hash: v1.k794b7964.a47a62c03d11627b2de464cfa4898c3e7958165857f807890d6753b5d2999194.S7UOOaYEN5MWOAzBpV8Ks8Ns3lpEVVAXz9b1I9TGNX0
+ hash: v1.k794b7964.6faefc45893a5ffb10f4b2385ba682cf4f89dac666c14e165479c31b9bcf3251.RAEHTzmE2IUwu6XWWlOaIesXQR3M5cDZ9l_EH5afEJg
scenes-app-data-management-definition-view--event-definition-metadata--wide--light:
- hash: v1.k794b7964.76c7298d826c789d2d13bb5fc6f378eb25900695c508d04c478b48fae27ba110.HmEQYvy5abBpRaNyShSAU5Uf_UENmk9F_Irrxk_TIog
+ hash: v1.k794b7964.73f9793dc52c1b680a75930bc71bef7fe60942a1d388169bb7379ef6c02f8c92.tGu5SoRS7zs1B_G8UvXVGu_XfRuc1LBNjIvb8q66URI
scenes-app-data-management-event-definitions--default--dark:
hash: v1.k794b7964.04bce4680337c769135bed6dbf746bf9b4514372dac828332003077e8665f826.QQK7usEkEfW6T4iqwtYzrFIN7cToBo1aPjGmHQFYNwU
scenes-app-data-management-event-definitions--default--light:
diff --git a/frontend/src/lib/components/PropertiesTable/PropertiesTable.tsx b/frontend/src/lib/components/PropertiesTable/PropertiesTable.tsx
index f42c886e7334..f6a84db11cde 100644
--- a/frontend/src/lib/components/PropertiesTable/PropertiesTable.tsx
+++ b/frontend/src/lib/components/PropertiesTable/PropertiesTable.tsx
@@ -264,6 +264,7 @@ export function PropertiesTable({
[PropertyDefinitionType.EventMetadata]: TaxonomicFilterGroupType.EventMetadata,
[PropertyDefinitionType.RevenueAnalytics]: TaxonomicFilterGroupType.RevenueAnalyticsProperties,
[PropertyDefinitionType.Person]: TaxonomicFilterGroupType.PersonProperties,
+ [PropertyDefinitionType.PersonMetadata]: TaxonomicFilterGroupType.PersonMetadata,
[PropertyDefinitionType.Group]: TaxonomicFilterGroupType.GroupsPrefix,
[PropertyDefinitionType.Session]: TaxonomicFilterGroupType.SessionProperties,
[PropertyDefinitionType.LogEntry]: TaxonomicFilterGroupType.LogEntries,
diff --git a/frontend/src/lib/components/PropertyFilters/utils.ts b/frontend/src/lib/components/PropertyFilters/utils.ts
index 38409fab13fe..43682048bb99 100644
--- a/frontend/src/lib/components/PropertyFilters/utils.ts
+++ b/frontend/src/lib/components/PropertyFilters/utils.ts
@@ -32,6 +32,7 @@ import {
HogQLPropertyFilter,
LogEntryPropertyFilter,
LogPropertyFilter,
+ PersonMetadataPropertyFilter,
PersonPropertyFilter,
PropertyDefinitionType,
PropertyFilterType,
@@ -114,6 +115,7 @@ export const PROPERTY_FILTER_TYPE_TO_TAXONOMIC_FILTER_GROUP_TYPE: Record<Propert
[PropertyFilterType.Event]: TaxonomicFilterGroupType.EventProperties,
[PropertyFilterType.InternalEvent]: TaxonomicFilterGroupType.EventProperties,
[PropertyFilterType.EventMetadata]: TaxonomicFilterGroupType.EventMetadata,
+ [PropertyFilterType.PersonMetadata]: TaxonomicFilterGroupType.PersonMetadata,
[PropertyFilterType.Feature]: TaxonomicFilterGroupType.EventFeatureFlags,
[PropertyFilterType.Cohort]: TaxonomicFilterGroupType.Cohorts,
[PropertyFilterType.Element]: TaxonomicFilterGroupType.Elements,
@@ -242,6 +244,9 @@ export function isGroupCardFilterKey(key: string | number | undefined, type: Pro
export function isEventMetadataPropertyFilter(filter?: AnyFilterLike | null): filter is EventMetadataPropertyFilter {
return filter?.type === PropertyFilterType.EventMetadata
}
+export function isPersonMetadataPropertyFilter(filter?: AnyFilterLike | null): filter is PersonMetadataPropertyFilter {
+ return filter?.type === PropertyFilterType.PersonMetadata
+}
export function isRevenueAnalyticsPropertyFilter(
filter?: AnyFilterLike | null
): filter is RevenueAnalyticsPropertyFilter {
@@ -331,6 +336,7 @@ export function isAnyPropertyfilter(filter?: AnyFilterLike | null): filter is An
return (
isEventPropertyFilter(filter) ||
isPersonPropertyFilter(filter) ||
+ isPersonMetadataPropertyFilter(filter) ||
isEventMetadataPropertyFilter(filter) ||
isRevenueAnalyticsPropertyFilter(filter) ||
isElementPropertyFilter(filter) ||
@@ -351,6 +357,7 @@ export function isPropertyFilterWithOperator(
): filter is
| EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| EventMetadataPropertyFilter
| RevenueAnalyticsPropertyFilter
| ElementPropertyFilter
@@ -369,6 +376,7 @@ export function isPropertyFilterWithOperator(
!isPropertyGroupFilterLike(filter) &&
(isEventPropertyFilter(filter) ||
isPersonPropertyFilter(filter) ||
+ isPersonMetadataPropertyFilter(filter) ||
isEventMetadataPropertyFilter(filter) ||
isRevenueAnalyticsPropertyFilter(filter) ||
isElementPropertyFilter(filter) ||
@@ -405,6 +413,7 @@ const propertyFilterMapping: Partial<Record<PropertyFilterType, TaxonomicFilterG
[PropertyFilterType.InternalEvent]: TaxonomicFilterGroupType.EventProperties,
[PropertyFilterType.Feature]: TaxonomicFilterGroupType.EventFeatureFlags,
[PropertyFilterType.EventMetadata]: TaxonomicFilterGroupType.EventMetadata,
+ [PropertyFilterType.PersonMetadata]: TaxonomicFilterGroupType.PersonMetadata,
[PropertyFilterType.Cohort]: TaxonomicFilterGroupType.Cohorts,
[PropertyFilterType.Element]: TaxonomicFilterGroupType.Elements,
[PropertyFilterType.Session]: TaxonomicFilterGroupType.SessionProperties,
@@ -460,6 +469,7 @@ export function propertyFilterTypeToPropertyDefinitionType(
[PropertyFilterType.Event]: PropertyDefinitionType.Event,
[PropertyFilterType.EventMetadata]: PropertyDefinitionType.EventMetadata,
[PropertyFilterType.Person]: PropertyDefinitionType.Person,
+ [PropertyFilterType.PersonMetadata]: PropertyDefinitionType.PersonMetadata,
[PropertyFilterType.Group]: PropertyDefinitionType.Group,
[PropertyFilterType.Session]: PropertyDefinitionType.Session,
[PropertyFilterType.Recording]: PropertyDefinitionType.Session,
@@ -488,6 +498,9 @@ export function taxonomicFilterTypeToPropertyFilterType(
if (filterType === TaxonomicFilterGroupType.EventMetadata) {
return PropertyFilterType.EventMetadata
}
+ if (filterType === TaxonomicFilterGroupType.PersonMetadata) {
+ return PropertyFilterType.PersonMetadata
+ }
if (
filterType?.startsWith(TaxonomicFilterGroupType.GroupsPrefix) ||
filterType?.startsWith(TaxonomicFilterGroupType.GroupNamesPrefix)
diff --git a/frontend/src/lib/components/TaxonomicFilter/hooks/useTaxonomicGroupsContext.ts b/frontend/src/lib/components/TaxonomicFilter/hooks/useTaxonomicGroupsContext.ts
index 06fd194f6bdc..8221ac504e83 100644
--- a/frontend/src/lib/components/TaxonomicFilter/hooks/useTaxonomicGroupsContext.ts
+++ b/frontend/src/lib/components/TaxonomicFilter/hooks/useTaxonomicGroupsContext.ts
@@ -71,7 +71,7 @@ export function useTaxonomicGroupsContext(input: UseTaxonomicGroupsContextInput)
// does it.
useValues(dataWarehouseSettingsSceneLogic)
useValues(joinsLogic)
- const { eventMetadataPropertyDefinitions } = useValues(propertyDefinitionsModel)
+ const { eventMetadataPropertyDefinitions, personMetadataPropertyDefinitions } = useValues(propertyDefinitionsModel)
const { featureFlags } = useValues(featureFlagLogic)
return useMemo<BuildTaxonomicGroupsContext>(() => {
@@ -112,6 +112,7 @@ export function useTaxonomicGroupsContext(input: UseTaxonomicGroupsContextInput)
suggestedFiltersLabel: input.suggestedFiltersLabel,
propertyFilters,
eventMetadataPropertyDefinitions,
+ personMetadataPropertyDefinitions,
maxContextOptions: input.maxContextOptions ?? (EMPTY_ARRAY as unknown as MaxContextTaxonomicFilterOption[]),
hideBehavioralCohorts: input.hideBehavioralCohorts ?? false,
endpointFilters: input.endpointFilters,
@@ -128,6 +129,7 @@ export function useTaxonomicGroupsContext(input: UseTaxonomicGroupsContextInput)
groupTypes,
aggregationLabel,
eventMetadataPropertyDefinitions,
+ personMetadataPropertyDefinitions,
featureFlags,
input.eventNames,
input.schemaColumns,
diff --git a/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx b/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx
index ec97749b1ab8..7a9700ab39ed 100644
--- a/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx
+++ b/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx
@@ -342,7 +342,7 @@ export const taxonomicFilterLogic = kea<taxonomicFilterLogicType>([
joinsLogic,
['columnsJoinedToPersons'],
propertyDefinitionsModel,
- ['eventMetadataPropertyDefinitions'],
+ ['eventMetadataPropertyDefinitions', 'personMetadataPropertyDefinitions'],
featureFlagLogic,
['featureFlags'],
primaryEventPropertiesModel,
@@ -558,6 +558,14 @@ export const taxonomicFilterLogic = kea<taxonomicFilterLogicType>([
() => [(_, props) => props.endpointFilters],
(endpointFilters: Record<string, any>) => endpointFilters,
],
+ // Combined selector so taxonomicGroups stays under kea's 16-dep tuple type limit.
+ metadataPropertyDefinitionsByType: [
+ (s) => [s.eventMetadataPropertyDefinitions, s.personMetadataPropertyDefinitions],
+ (
+ event: PropertyDefinition[],
+ person: PropertyDefinition[]
+ ): { event: PropertyDefinition[]; person: PropertyDefinition[] } => ({ event, person }),
+ ],
taxonomicGroups: [
(s) => [
s.currentTeam,
@@ -570,7 +578,7 @@ export const taxonomicFilterLogic = kea<taxonomicFilterLogicType>([
s.metadataSource,
s.suggestedFiltersLabel,
s.propertyFilters,
- s.eventMetadataPropertyDefinitions,
+ s.metadataPropertyDefinitionsByType,
s.maxContextOptions,
s.hideBehavioralCohorts,
s.endpointFilters,
@@ -591,7 +599,13 @@ export const taxonomicFilterLogic = kea<taxonomicFilterLogicType>([
metadataSource: AnyDataNode,
suggestedFiltersLabel: string | undefined,
propertyFilters,
- eventMetadataPropertyDefinitions: PropertyDefinition[],
+ {
+ event: eventMetadataPropertyDefinitions,
+ person: personMetadataPropertyDefinitions,
+ }: {
+ event: PropertyDefinition[]
+ person: PropertyDefinition[]
+ },
maxContextOptions: MaxContextTaxonomicFilterOption[],
hideBehavioralCohorts: boolean,
endpointFilters: Record<string, any> | undefined,
@@ -1115,6 +1129,22 @@ export const taxonomicFilterLogic = kea<taxonomicFilterLogicType>([
propertyAllowList?.[TaxonomicFilterGroupType.PersonProperties]?.filter(isString),
...propertyTaxonomicGroupProps(CORE_FILTER_DEFINITIONS_BY_GROUP.person_properties),
},
+ {
+ name: 'Person metadata',
+ searchPlaceholder: 'person metadata',
+ type: TaxonomicFilterGroupType.PersonMetadata,
+ options: personMetadataPropertyDefinitions,
+ getIcon: getPropertyDefinitionIcon,
+ getName: (option: PropertyDefinition) => {
+ const coreDefinition = getCoreFilterDefinition(
+ option.id,
+ TaxonomicFilterGroupType.PersonMetadata
+ )
+ return coreDefinition ? coreDefinition.label : option.name
+ },
+ getValue: (option: PropertyDefinition) => option.id,
+ getPopoverHeader: () => 'Person metadata',
+ },
{
name: 'Cohorts',
searchPlaceholder: 'cohorts',
diff --git a/frontend/src/lib/components/TaxonomicFilter/types.ts b/frontend/src/lib/components/TaxonomicFilter/types.ts
index 3d7c3a479ecb..b952f8cb3fd5 100644
--- a/frontend/src/lib/components/TaxonomicFilter/types.ts
+++ b/frontend/src/lib/components/TaxonomicFilter/types.ts
@@ -304,6 +304,7 @@ export enum TaxonomicFilterGroupType {
EventMetadata = 'event_metadata',
NumericalEventProperties = 'numerical_event_properties',
PersonProperties = 'person_properties',
+ PersonMetadata = 'person_metadata',
PageviewUrls = 'pageview_urls',
PageviewEvents = 'pageview_events',
Screens = 'screens',
diff --git a/frontend/src/lib/components/TaxonomicFilter/utils/buildTaxonomicGroups.tsx b/frontend/src/lib/components/TaxonomicFilter/utils/buildTaxonomicGroups.tsx
index a692ec9db7b3..d28849eb4979 100644
--- a/frontend/src/lib/components/TaxonomicFilter/utils/buildTaxonomicGroups.tsx
+++ b/frontend/src/lib/components/TaxonomicFilter/utils/buildTaxonomicGroups.tsx
@@ -148,6 +148,7 @@ export interface BuildTaxonomicGroupsContext {
propertyAllowList?: Partial<Record<TaxonomicFilterGroupType, (string | number | null)[]>>
}
eventMetadataPropertyDefinitions: PropertyDefinition[]
+ personMetadataPropertyDefinitions: PropertyDefinition[]
maxContextOptions: MaxContextTaxonomicFilterOption[]
hideBehavioralCohorts: boolean
endpointFilters: Record<string, any> | undefined
@@ -172,6 +173,7 @@ export function buildTaxonomicGroups(ctx: BuildTaxonomicGroupsContext): Taxonomi
suggestedFiltersLabel,
propertyFilters,
eventMetadataPropertyDefinitions,
+ personMetadataPropertyDefinitions,
maxContextOptions,
hideBehavioralCohorts,
endpointFilters,
@@ -657,6 +659,19 @@ export function buildTaxonomicGroups(ctx: BuildTaxonomicGroupsContext): Taxonomi
propertyAllowList: propertyAllowList?.[TaxonomicFilterGroupType.PersonProperties]?.filter(isString),
...propertyTaxonomicGroupProps(CORE_FILTER_DEFINITIONS_BY_GROUP.person_properties),
},
+ {
+ name: 'Person metadata',
+ searchPlaceholder: 'person metadata',
+ type: TaxonomicFilterGroupType.PersonMetadata,
+ options: personMetadataPropertyDefinitions,
+ getIcon: getPropertyDefinitionIcon,
+ getName: (option: PropertyDefinition) => {
+ const coreDefinition = getCoreFilterDefinition(option.id, TaxonomicFilterGroupType.PersonMetadata)
+ return coreDefinition ? coreDefinition.label : option.name
+ },
+ getValue: (option: PropertyDefinition) => option.id,
+ getPopoverHeader: () => 'Person metadata',
+ },
{
name: 'Cohorts',
searchPlaceholder: 'cohorts',
diff --git a/frontend/src/models/cohortsModel.test.ts b/frontend/src/models/cohortsModel.test.ts
index e511ecf1ea0c..eacd83656593 100644
--- a/frontend/src/models/cohortsModel.test.ts
+++ b/frontend/src/models/cohortsModel.test.ts
@@ -277,5 +277,42 @@ describe('cohortsModel', () => {
key: expectedCriteriaKey,
})
})
+
+ it('restores a saved person_metadata criterion to editor format (value -> value_property)', () => {
+ const cohort = {
+ id: 5,
+ name: 'First seen cohort',
+ count: 0,
+ groups: [],
+ is_calculating: false,
+ is_static: false,
+ filters: {
+ properties: {
+ type: FilterLogicalOperator.And,
+ values: [
+ {
+ type: 'person_metadata',
+ key: 'created_at',
+ operator: 'is_date_after',
+ value: '2024-01-01',
+ negation: false,
+ },
+ ],
+ },
+ },
+ } as unknown as CohortType
+
+ const result = processCohort(cohort)
+ const group = result.filters.properties.values[0]
+ // value carries the behavioral row key the editor renders against; the actual
+ // filter value moves to value_property. Without this, criteriaToBehavioralFilterType
+ // returns the raw date and ROWS[date] is undefined, crashing CohortCriteriaRowBuilder.
+ expect((group as any).values[0]).toMatchObject({
+ type: 'person_metadata',
+ key: 'created_at',
+ value: 'have_property',
+ value_property: '2024-01-01',
+ })
+ })
})
})
diff --git a/frontend/src/models/cohortsModel.ts b/frontend/src/models/cohortsModel.ts
index a5814b730398..71cd90d7e53d 100644
--- a/frontend/src/models/cohortsModel.ts
+++ b/frontend/src/models/cohortsModel.ts
@@ -88,7 +88,9 @@ function processCohortCriteria(criteria: AnyCohortCriteriaType): AnyCohortCriter
const processedCriteria = { ...criteria }
if (
- [BehavioralFilterKey.Cohort, BehavioralFilterKey.Person].includes(criteria.type) &&
+ [BehavioralFilterKey.Cohort, BehavioralFilterKey.Person, BehavioralFilterKey.PersonMetadata].includes(
+ criteria.type
+ ) &&
!('value_property' in criteria)
) {
processedCriteria.value_property = criteria.value
diff --git a/frontend/src/models/propertyDefinitionsModel.test.ts b/frontend/src/models/propertyDefinitionsModel.test.ts
index 9c530ffee41d..0aaf99023e1e 100644
--- a/frontend/src/models/propertyDefinitionsModel.test.ts
+++ b/frontend/src/models/propertyDefinitionsModel.test.ts
@@ -242,6 +242,12 @@ describe('the property definitions model', () => {
'event_metadata/timestamp': partial({
name: 'timestamp',
}),
+ 'person_metadata/created_at': {
+ id: 'created_at',
+ name: 'created_at',
+ property_type: 'DateTime',
+ type: 'person_metadata',
+ },
'resource/assignee': partial({ name: 'assignee' }),
'resource/first_seen': partial({ name: 'first_seen' }),
},
diff --git a/frontend/src/models/propertyDefinitionsModel.ts b/frontend/src/models/propertyDefinitionsModel.ts
index fd4f1403b76a..f1f4ee183757 100644
--- a/frontend/src/models/propertyDefinitionsModel.ts
+++ b/frontend/src/models/propertyDefinitionsModel.ts
@@ -526,17 +526,32 @@ export const propertyDefinitionsModel = kea<propertyDefinitionsModelType>([
},
],
propertyDefinitionStorage: [
- (s) => [s.rawPropertyDefinitionStorage, s.eventMetadataPropertyDefinitions],
- (rawPropertyDefinitionStorage, eventMetadataPropertyDefinitions): PropertyDefinitionStorage => {
- const metadataDefinitions = Object.fromEntries(
+ (s) => [
+ s.rawPropertyDefinitionStorage,
+ s.eventMetadataPropertyDefinitions,
+ s.personMetadataPropertyDefinitions,
+ ],
+ (
+ rawPropertyDefinitionStorage,
+ eventMetadataPropertyDefinitions,
+ personMetadataPropertyDefinitions: PropertyDefinition[]
+ ): PropertyDefinitionStorage => {
+ const eventMetadataDefinitions = Object.fromEntries(
eventMetadataPropertyDefinitions.map((definition) => [
`${PropertyDefinitionType.EventMetadata}/${definition.id}`,
definition,
])
)
+ const personMetadataDefinitions = Object.fromEntries(
+ personMetadataPropertyDefinitions.map((definition) => [
+ `${PropertyDefinitionType.PersonMetadata}/${definition.id}`,
+ definition,
+ ])
+ )
return {
...rawPropertyDefinitionStorage,
- ...metadataDefinitions,
+ ...eventMetadataDefinitions,
+ ...personMetadataDefinitions,
}
},
],
@@ -642,6 +657,18 @@ export const propertyDefinitionsModel = kea<propertyDefinitionsModelType>([
}
},
],
+ personMetadataPropertyDefinitions: [
+ () => [],
+ () =>
+ [
+ {
+ id: 'created_at',
+ name: 'created_at',
+ property_type: PropertyType.DateTime,
+ type: PropertyDefinitionType.PersonMetadata,
+ },
+ ] as PropertyDefinition[],
+ ],
eventMetadataPropertyDefinitions: [
(s) => [s.groupTypes],
(groupTypes) => {
diff --git a/frontend/src/queries/schema.json b/frontend/src/queries/schema.json
index c61b78263cf1..5a804edb7e0b 100644
--- a/frontend/src/queries/schema.json
+++ b/frontend/src/queries/schema.json
@@ -1032,6 +1032,9 @@
{
"$ref": "#/definitions/PersonPropertyFilter"
},
+ {
+ "$ref": "#/definitions/PersonMetadataPropertyFilter"
+ },
{
"$ref": "#/definitions/CohortPropertyFilter"
},
@@ -1052,6 +1055,9 @@
{
"$ref": "#/definitions/PersonPropertyFilter"
},
+ {
+ "$ref": "#/definitions/PersonMetadataPropertyFilter"
+ },
{
"$ref": "#/definitions/ElementPropertyFilter"
},
@@ -31855,6 +31861,30 @@
"required": ["id", "type", "protocol", "path", "created_at", "updated_at"],
"type": "object"
},
+ "PersonMetadataPropertyFilter": {
+ "additionalProperties": false,
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "type": "string"
+ },
+ "operator": {
+ "$ref": "#/definitions/PropertyOperator"
+ },
+ "type": {
+ "const": "person_metadata",
+ "description": "Top-level columns on the persons table (e.g. created_at), not properties JSON",
+ "type": "string"
+ },
+ "value": {
+ "$ref": "#/definitions/PropertyFilterValue"
+ }
+ },
+ "required": ["key", "operator", "type"],
+ "type": "object"
+ },
"PersonPropertyFilter": {
"additionalProperties": false,
"description": "Sync with nodejs/src/types.ts",
@@ -32402,6 +32432,7 @@
"internal_event",
"event_metadata",
"person",
+ "person_metadata",
"element",
"feature",
"session",
@@ -44629,6 +44660,7 @@
"event_metadata",
"numerical_event_properties",
"person_properties",
+ "person_metadata",
"pageview_urls",
"pageview_events",
"screens",
diff --git a/frontend/src/queries/validators.js b/frontend/src/queries/validators.js
index 882c66580fee..b6163524a3ac 100644
--- a/frontend/src/queries/validators.js
+++ b/frontend/src/queries/validators.js
@@ -5,6 +5,7 @@ const schema12 = {
anyOf: [
{ $ref: '#/definitions/EventPropertyFilter' },
{ $ref: '#/definitions/PersonPropertyFilter' },
+ { $ref: '#/definitions/PersonMetadataPropertyFilter' },
{ $ref: '#/definitions/ElementPropertyFilter' },
{ $ref: '#/definitions/EventMetadataPropertyFilter' },
{ $ref: '#/definitions/SessionPropertyFilter' },
@@ -25,7 +26,7 @@ const schema12 = {
{ $ref: '#/definitions/WorkflowVariablePropertyFilter' },
],
}
-const schema37 = {
+const schema39 = {
additionalProperties: false,
properties: {
key: { description: 'The key should be the flag ID', type: 'string' },
@@ -41,7 +42,7 @@ const schema37 = {
required: ['key', 'operator', 'type', 'value'],
type: 'object',
}
-const schema39 = {
+const schema41 = {
additionalProperties: false,
properties: { type: { const: 'empty', type: 'string' } },
type: 'object',
@@ -698,12 +699,15 @@ function validate16(data, { instancePath = '', parentData, parentDataProperty, r
}
const schema20 = {
additionalProperties: false,
- description: 'Sync with nodejs/src/types.ts',
properties: {
- key: { enum: ['tag_name', 'text', 'href', 'selector'], type: 'string' },
+ key: { type: 'string' },
label: { type: 'string' },
operator: { $ref: '#/definitions/PropertyOperator' },
- type: { const: 'element', type: 'string' },
+ type: {
+ const: 'person_metadata',
+ description: 'Top-level columns on the persons table (e.g. created_at), not properties JSON',
+ type: 'string',
+ },
value: { $ref: '#/definitions/PropertyFilterValue' },
},
required: ['key', 'operator', 'type'],
@@ -757,9 +761,8 @@ function validate19(data, { instancePath = '', parentData, parentDataProperty, r
}
if (_errs1 === errors) {
if (data.key !== undefined) {
- let data0 = data.key
const _errs2 = errors
- if (typeof data0 !== 'string') {
+ if (typeof data.key !== 'string') {
validate19.errors = [
{
instancePath: instancePath + '/key',
@@ -771,18 +774,6 @@ function validate19(data, { instancePath = '', parentData, parentDataProperty, r
]
return false
}
- if (!(data0 === 'tag_name' || data0 === 'text' || data0 === 'href' || data0 === 'selector')) {
- validate19.errors = [
- {
- instancePath: instancePath + '/key',
- schemaPath: '#/properties/key/enum',
- keyword: 'enum',
- params: { allowedValues: schema20.properties.key.enum },
- message: 'must be equal to one of the allowed values',
- },
- ]
- return false
- }
var valid0 = _errs2 === errors
} else {
var valid0 = true
@@ -891,13 +882,13 @@ function validate19(data, { instancePath = '', parentData, parentDataProperty, r
]
return false
}
- if ('element' !== data3) {
+ if ('person_metadata' !== data3) {
validate19.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/const',
keyword: 'const',
- params: { allowedValue: 'element' },
+ params: { allowedValue: 'person_metadata' },
message: 'must be equal to constant',
},
]
@@ -950,11 +941,12 @@ function validate19(data, { instancePath = '', parentData, parentDataProperty, r
}
const schema22 = {
additionalProperties: false,
+ description: 'Sync with nodejs/src/types.ts',
properties: {
- key: { type: 'string' },
+ key: { enum: ['tag_name', 'text', 'href', 'selector'], type: 'string' },
label: { type: 'string' },
operator: { $ref: '#/definitions/PropertyOperator' },
- type: { const: 'event_metadata', type: 'string' },
+ type: { const: 'element', type: 'string' },
value: { $ref: '#/definitions/PropertyFilterValue' },
},
required: ['key', 'operator', 'type'],
@@ -1008,8 +1000,9 @@ function validate22(data, { instancePath = '', parentData, parentDataProperty, r
}
if (_errs1 === errors) {
if (data.key !== undefined) {
+ let data0 = data.key
const _errs2 = errors
- if (typeof data.key !== 'string') {
+ if (typeof data0 !== 'string') {
validate22.errors = [
{
instancePath: instancePath + '/key',
@@ -1021,6 +1014,18 @@ function validate22(data, { instancePath = '', parentData, parentDataProperty, r
]
return false
}
+ if (!(data0 === 'tag_name' || data0 === 'text' || data0 === 'href' || data0 === 'selector')) {
+ validate22.errors = [
+ {
+ instancePath: instancePath + '/key',
+ schemaPath: '#/properties/key/enum',
+ keyword: 'enum',
+ params: { allowedValues: schema22.properties.key.enum },
+ message: 'must be equal to one of the allowed values',
+ },
+ ]
+ return false
+ }
var valid0 = _errs2 === errors
} else {
var valid0 = true
@@ -1129,13 +1134,13 @@ function validate22(data, { instancePath = '', parentData, parentDataProperty, r
]
return false
}
- if ('event_metadata' !== data3) {
+ if ('element' !== data3) {
validate22.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/const',
keyword: 'const',
- params: { allowedValue: 'event_metadata' },
+ params: { allowedValue: 'element' },
message: 'must be equal to constant',
},
]
@@ -1192,7 +1197,7 @@ const schema24 = {
key: { type: 'string' },
label: { type: 'string' },
operator: { $ref: '#/definitions/PropertyOperator' },
- type: { const: 'session', type: 'string' },
+ type: { const: 'event_metadata', type: 'string' },
value: { $ref: '#/definitions/PropertyFilterValue' },
},
required: ['key', 'operator', 'type'],
@@ -1367,13 +1372,13 @@ function validate25(data, { instancePath = '', parentData, parentDataProperty, r
]
return false
}
- if ('session' !== data3) {
+ if ('event_metadata' !== data3) {
validate25.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/const',
keyword: 'const',
- params: { allowedValue: 'session' },
+ params: { allowedValue: 'event_metadata' },
message: 'must be equal to constant',
},
]
@@ -1425,6 +1430,244 @@ function validate25(data, { instancePath = '', parentData, parentDataProperty, r
return errors === 0
}
const schema26 = {
+ additionalProperties: false,
+ properties: {
+ key: { type: 'string' },
+ label: { type: 'string' },
+ operator: { $ref: '#/definitions/PropertyOperator' },
+ type: { const: 'session', type: 'string' },
+ value: { $ref: '#/definitions/PropertyFilterValue' },
+ },
+ required: ['key', 'operator', 'type'],
+ type: 'object',
+}
+function validate28(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+ let vErrors = null
+ let errors = 0
+ if (errors === 0) {
+ if (data && typeof data == 'object' && !Array.isArray(data)) {
+ let missing0
+ if (
+ (data.key === undefined && (missing0 = 'key')) ||
+ (data.operator === undefined && (missing0 = 'operator')) ||
+ (data.type === undefined && (missing0 = 'type'))
+ ) {
+ validate28.errors = [
+ {
+ instancePath,
+ schemaPath: '#/required',
+ keyword: 'required',
+ params: { missingProperty: missing0 },
+ message: "must have required property '" + missing0 + "'",
+ },
+ ]
+ return false
+ } else {
+ const _errs1 = errors
+ for (const key0 in data) {
+ if (
+ !(
+ key0 === 'key' ||
+ key0 === 'label' ||
+ key0 === 'operator' ||
+ key0 === 'type' ||
+ key0 === 'value'
+ )
+ ) {
+ validate28.errors = [
+ {
+ instancePath,
+ schemaPath: '#/additionalProperties',
+ keyword: 'additionalProperties',
+ params: { additionalProperty: key0 },
+ message: 'must NOT have additional properties',
+ },
+ ]
+ return false
+ break
+ }
+ }
+ if (_errs1 === errors) {
+ if (data.key !== undefined) {
+ const _errs2 = errors
+ if (typeof data.key !== 'string') {
+ validate28.errors = [
+ {
+ instancePath: instancePath + '/key',
+ schemaPath: '#/properties/key/type',
+ keyword: 'type',
+ params: { type: 'string' },
+ message: 'must be string',
+ },
+ ]
+ return false
+ }
+ var valid0 = _errs2 === errors
+ } else {
+ var valid0 = true
+ }
+ if (valid0) {
+ if (data.label !== undefined) {
+ const _errs4 = errors
+ if (typeof data.label !== 'string') {
+ validate28.errors = [
+ {
+ instancePath: instancePath + '/label',
+ schemaPath: '#/properties/label/type',
+ keyword: 'type',
+ params: { type: 'string' },
+ message: 'must be string',
+ },
+ ]
+ return false
+ }
+ var valid0 = _errs4 === errors
+ } else {
+ var valid0 = true
+ }
+ if (valid0) {
+ if (data.operator !== undefined) {
+ let data2 = data.operator
+ const _errs6 = errors
+ if (typeof data2 !== 'string') {
+ validate28.errors = [
+ {
+ instancePath: instancePath + '/operator',
+ schemaPath: '#/definitions/PropertyOperator/type',
+ keyword: 'type',
+ params: { type: 'string' },
+ message: 'must be string',
+ },
+ ]
+ return false
+ }
+ if (
+ !(
+ data2 === 'exact' ||
+ data2 === 'is_not' ||
+ data2 === 'icontains' ||
+ data2 === 'not_icontains' ||
+ data2 === 'regex' ||
+ data2 === 'not_regex' ||
+ data2 === 'gt' ||
+ data2 === 'gte' ||
+ data2 === 'lt' ||
+ data2 === 'lte' ||
+ data2 === 'is_set' ||
+ data2 === 'is_not_set' ||
+ data2 === 'is_date_exact' ||
+ data2 === 'is_date_before' ||
+ data2 === 'is_date_after' ||
+ data2 === 'between' ||
+ data2 === 'not_between' ||
+ data2 === 'min' ||
+ data2 === 'max' ||
+ data2 === 'in' ||
+ data2 === 'not_in' ||
+ data2 === 'is_cleaned_path_exact' ||
+ data2 === 'flag_evaluates_to' ||
+ data2 === 'semver_eq' ||
+ data2 === 'semver_neq' ||
+ data2 === 'semver_gt' ||
+ data2 === 'semver_gte' ||
+ data2 === 'semver_lt' ||
+ data2 === 'semver_lte' ||
+ data2 === 'semver_tilde' ||
+ data2 === 'semver_caret' ||
+ data2 === 'semver_wildcard' ||
+ data2 === 'icontains_multi' ||
+ data2 === 'not_icontains_multi'
+ )
+ ) {
+ validate28.errors = [
+ {
+ instancePath: instancePath + '/operator',
+ schemaPath: '#/definitions/PropertyOperator/enum',
+ keyword: 'enum',
+ params: { allowedValues: schema14.enum },
+ message: 'must be equal to one of the allowed values',
+ },
+ ]
+ return false
+ }
+ var valid0 = _errs6 === errors
+ } else {
+ var valid0 = true
+ }
+ if (valid0) {
+ if (data.type !== undefined) {
+ let data3 = data.type
+ const _errs9 = errors
+ if (typeof data3 !== 'string') {
+ validate28.errors = [
+ {
+ instancePath: instancePath + '/type',
+ schemaPath: '#/properties/type/type',
+ keyword: 'type',
+ params: { type: 'string' },
+ message: 'must be string',
+ },
+ ]
+ return false
+ }
+ if ('session' !== data3) {
+ validate28.errors = [
+ {
+ instancePath: instancePath + '/type',
+ schemaPath: '#/properties/type/const',
+ keyword: 'const',
+ params: { allowedValue: 'session' },
+ message: 'must be equal to constant',
+ },
+ ]
+ return false
+ }
+ var valid0 = _errs9 === errors
+ } else {
+ var valid0 = true
+ }
+ if (valid0) {
+ if (data.value !== undefined) {
+ const _errs11 = errors
+ if (
+ !validate13(data.value, {
+ instancePath: instancePath + '/value',
+ parentData: data,
+ parentDataProperty: 'value',
+ rootData,
+ })
+ ) {
+ vErrors =
+ vErrors === null ? validate13.errors : vErrors.concat(validate13.errors)
+ errors = vErrors.length
+ }
+ var valid0 = _errs11 === errors
+ } else {
+ var valid0 = true
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ } else {
+ validate28.errors = [
+ {
+ instancePath,
+ schemaPath: '#/type',
+ keyword: 'type',
+ params: { type: 'object' },
+ message: 'must be object',
+ },
+ ]
+ return false
+ }
+ }
+ validate28.errors = vErrors
+ return errors === 0
+}
+const schema28 = {
additionalProperties: false,
description: 'Sync with nodejs/src/types.ts',
properties: {
@@ -1438,7 +1681,7 @@ const schema26 = {
required: ['key', 'operator', 'type', 'value'],
type: 'object',
}
-function validate28(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate31(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -1450,7 +1693,7 @@ function validate28(data, { instancePath = '', parentData, parentDataProperty, r
(data.type === undefined && (missing0 = 'type')) ||
(data.value === undefined && (missing0 = 'value'))
) {
- validate28.errors = [
+ validate31.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -1473,7 +1716,7 @@ function validate28(data, { instancePath = '', parentData, parentDataProperty, r
key0 === 'value'
)
) {
- validate28.errors = [
+ validate31.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -1490,7 +1733,7 @@ function validate28(data, { instancePath = '', parentData, parentDataProperty, r
if (data.cohort_name !== undefined) {
const _errs2 = errors
if (typeof data.cohort_name !== 'string') {
- validate28.errors = [
+ validate31.errors = [
{
instancePath: instancePath + '/cohort_name',
schemaPath: '#/properties/cohort_name/type',
@@ -1510,7 +1753,7 @@ function validate28(data, { instancePath = '', parentData, parentDataProperty, r
let data1 = data.key
const _errs4 = errors
if (typeof data1 !== 'string') {
- validate28.errors = [
+ validate31.errors = [
{
instancePath: instancePath + '/key',
schemaPath: '#/properties/key/type',
@@ -1522,7 +1765,7 @@ function validate28(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('id' !== data1) {
- validate28.errors = [
+ validate31.errors = [
{
instancePath: instancePath + '/key',
schemaPath: '#/properties/key/const',
@@ -1541,7 +1784,7 @@ function validate28(data, { instancePath = '', parentData, parentDataProperty, r
if (data.label !== undefined) {
const _errs6 = errors
if (typeof data.label !== 'string') {
- validate28.errors = [
+ validate31.errors = [
{
instancePath: instancePath + '/label',
schemaPath: '#/properties/label/type',
@@ -1561,7 +1804,7 @@ function validate28(data, { instancePath = '', parentData, parentDataProperty, r
let data3 = data.operator
const _errs8 = errors
if (typeof data3 !== 'string') {
- validate28.errors = [
+ validate31.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/type',
@@ -1610,7 +1853,7 @@ function validate28(data, { instancePath = '', parentData, parentDataProperty, r
data3 === 'not_icontains_multi'
)
) {
- validate28.errors = [
+ validate31.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/enum',
@@ -1630,7 +1873,7 @@ function validate28(data, { instancePath = '', parentData, parentDataProperty, r
let data4 = data.type
const _errs11 = errors
if (typeof data4 !== 'string') {
- validate28.errors = [
+ validate31.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/type',
@@ -1642,7 +1885,7 @@ function validate28(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('cohort' !== data4) {
- validate28.errors = [
+ validate31.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/const',
@@ -1669,7 +1912,7 @@ function validate28(data, { instancePath = '', parentData, parentDataProperty, r
isFinite(data5)
)
) {
- validate28.errors = [
+ validate31.errors = [
{
instancePath: instancePath + '/value',
schemaPath: '#/properties/value/type',
@@ -1692,7 +1935,7 @@ function validate28(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate28.errors = [
+ validate31.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -1704,10 +1947,10 @@ function validate28(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate28.errors = vErrors
+ validate31.errors = vErrors
return errors === 0
}
-const schema28 = {
+const schema30 = {
additionalProperties: false,
properties: {
key: {
@@ -1729,8 +1972,8 @@ const schema28 = {
required: ['key', 'operator', 'type'],
type: 'object',
}
-const schema29 = { enum: ['duration', 'active_seconds', 'inactive_seconds'], type: 'string' }
-function validate30(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+const schema31 = { enum: ['duration', 'active_seconds', 'inactive_seconds'], type: 'string' }
+function validate33(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -1741,7 +1984,7 @@ function validate30(data, { instancePath = '', parentData, parentDataProperty, r
(data.operator === undefined && (missing0 = 'operator')) ||
(data.type === undefined && (missing0 = 'type'))
) {
- validate30.errors = [
+ validate33.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -1763,7 +2006,7 @@ function validate30(data, { instancePath = '', parentData, parentDataProperty, r
key0 === 'value'
)
) {
- validate30.errors = [
+ validate33.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -1803,7 +2046,7 @@ function validate30(data, { instancePath = '', parentData, parentDataProperty, r
instancePath: instancePath + '/key',
schemaPath: '#/definitions/DurationType/enum',
keyword: 'enum',
- params: { allowedValues: schema29.enum },
+ params: { allowedValues: schema31.enum },
message: 'must be equal to one of the allowed values',
}
if (vErrors === null) {
@@ -2039,7 +2282,7 @@ function validate30(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err14)
}
errors++
- validate30.errors = vErrors
+ validate33.errors = vErrors
return false
} else {
errors = _errs3
@@ -2059,7 +2302,7 @@ function validate30(data, { instancePath = '', parentData, parentDataProperty, r
if (data.label !== undefined) {
const _errs19 = errors
if (typeof data.label !== 'string') {
- validate30.errors = [
+ validate33.errors = [
{
instancePath: instancePath + '/label',
schemaPath: '#/properties/label/type',
@@ -2079,7 +2322,7 @@ function validate30(data, { instancePath = '', parentData, parentDataProperty, r
let data2 = data.operator
const _errs21 = errors
if (typeof data2 !== 'string') {
- validate30.errors = [
+ validate33.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/type',
@@ -2128,7 +2371,7 @@ function validate30(data, { instancePath = '', parentData, parentDataProperty, r
data2 === 'not_icontains_multi'
)
) {
- validate30.errors = [
+ validate33.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/enum',
@@ -2148,7 +2391,7 @@ function validate30(data, { instancePath = '', parentData, parentDataProperty, r
let data3 = data.type
const _errs24 = errors
if (typeof data3 !== 'string') {
- validate30.errors = [
+ validate33.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/type',
@@ -2160,7 +2403,7 @@ function validate30(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('recording' !== data3) {
- validate30.errors = [
+ validate33.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/const',
@@ -2201,7 +2444,7 @@ function validate30(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate30.errors = [
+ validate33.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -2213,10 +2456,10 @@ function validate30(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate30.errors = vErrors
+ validate33.errors = vErrors
return errors === 0
}
-const schema31 = {
+const schema33 = {
additionalProperties: false,
properties: {
key: { type: 'string' },
@@ -2228,7 +2471,7 @@ const schema31 = {
required: ['key', 'operator', 'type'],
type: 'object',
}
-function validate33(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate36(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -2239,7 +2482,7 @@ function validate33(data, { instancePath = '', parentData, parentDataProperty, r
(data.operator === undefined && (missing0 = 'operator')) ||
(data.type === undefined && (missing0 = 'type'))
) {
- validate33.errors = [
+ validate36.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -2261,7 +2504,7 @@ function validate33(data, { instancePath = '', parentData, parentDataProperty, r
key0 === 'value'
)
) {
- validate33.errors = [
+ validate36.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -2278,7 +2521,7 @@ function validate33(data, { instancePath = '', parentData, parentDataProperty, r
if (data.key !== undefined) {
const _errs2 = errors
if (typeof data.key !== 'string') {
- validate33.errors = [
+ validate36.errors = [
{
instancePath: instancePath + '/key',
schemaPath: '#/properties/key/type',
@@ -2297,7 +2540,7 @@ function validate33(data, { instancePath = '', parentData, parentDataProperty, r
if (data.label !== undefined) {
const _errs4 = errors
if (typeof data.label !== 'string') {
- validate33.errors = [
+ validate36.errors = [
{
instancePath: instancePath + '/label',
schemaPath: '#/properties/label/type',
@@ -2317,7 +2560,7 @@ function validate33(data, { instancePath = '', parentData, parentDataProperty, r
let data2 = data.operator
const _errs6 = errors
if (typeof data2 !== 'string') {
- validate33.errors = [
+ validate36.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/type',
@@ -2366,7 +2609,7 @@ function validate33(data, { instancePath = '', parentData, parentDataProperty, r
data2 === 'not_icontains_multi'
)
) {
- validate33.errors = [
+ validate36.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/enum',
@@ -2386,7 +2629,7 @@ function validate33(data, { instancePath = '', parentData, parentDataProperty, r
let data3 = data.type
const _errs9 = errors
if (typeof data3 !== 'string') {
- validate33.errors = [
+ validate36.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/type',
@@ -2398,7 +2641,7 @@ function validate33(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('log_entry' !== data3) {
- validate33.errors = [
+ validate36.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/const',
@@ -2439,7 +2682,7 @@ function validate33(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate33.errors = [
+ validate36.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -2451,10 +2694,10 @@ function validate33(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate33.errors = vErrors
+ validate36.errors = vErrors
return errors === 0
}
-const schema33 = {
+const schema35 = {
additionalProperties: false,
properties: {
group_key_names: { additionalProperties: { type: 'string' }, type: 'object' },
@@ -2468,7 +2711,7 @@ const schema33 = {
required: ['key', 'operator', 'type'],
type: 'object',
}
-function validate36(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate39(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -2479,7 +2722,7 @@ function validate36(data, { instancePath = '', parentData, parentDataProperty, r
(data.operator === undefined && (missing0 = 'operator')) ||
(data.type === undefined && (missing0 = 'type'))
) {
- validate36.errors = [
+ validate39.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -2503,7 +2746,7 @@ function validate36(data, { instancePath = '', parentData, parentDataProperty, r
key0 === 'value'
)
) {
- validate36.errors = [
+ validate39.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -2525,7 +2768,7 @@ function validate36(data, { instancePath = '', parentData, parentDataProperty, r
for (const key1 in data0) {
const _errs5 = errors
if (typeof data0[key1] !== 'string') {
- validate36.errors = [
+ validate39.errors = [
{
instancePath:
instancePath +
@@ -2545,7 +2788,7 @@ function validate36(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate36.errors = [
+ validate39.errors = [
{
instancePath: instancePath + '/group_key_names',
schemaPath: '#/properties/group_key_names/type',
@@ -2619,7 +2862,7 @@ function validate36(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err2)
}
errors++
- validate36.errors = vErrors
+ validate39.errors = vErrors
return false
} else {
errors = _errs8
@@ -2639,7 +2882,7 @@ function validate36(data, { instancePath = '', parentData, parentDataProperty, r
if (data.key !== undefined) {
const _errs13 = errors
if (typeof data.key !== 'string') {
- validate36.errors = [
+ validate39.errors = [
{
instancePath: instancePath + '/key',
schemaPath: '#/properties/key/type',
@@ -2658,7 +2901,7 @@ function validate36(data, { instancePath = '', parentData, parentDataProperty, r
if (data.label !== undefined) {
const _errs15 = errors
if (typeof data.label !== 'string') {
- validate36.errors = [
+ validate39.errors = [
{
instancePath: instancePath + '/label',
schemaPath: '#/properties/label/type',
@@ -2678,7 +2921,7 @@ function validate36(data, { instancePath = '', parentData, parentDataProperty, r
let data5 = data.operator
const _errs17 = errors
if (typeof data5 !== 'string') {
- validate36.errors = [
+ validate39.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/type',
@@ -2727,7 +2970,7 @@ function validate36(data, { instancePath = '', parentData, parentDataProperty, r
data5 === 'not_icontains_multi'
)
) {
- validate36.errors = [
+ validate39.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/enum',
@@ -2747,7 +2990,7 @@ function validate36(data, { instancePath = '', parentData, parentDataProperty, r
let data6 = data.type
const _errs20 = errors
if (typeof data6 !== 'string') {
- validate36.errors = [
+ validate39.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/type',
@@ -2759,7 +3002,7 @@ function validate36(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('group' !== data6) {
- validate36.errors = [
+ validate39.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/const',
@@ -2804,7 +3047,7 @@ function validate36(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate36.errors = [
+ validate39.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -2816,10 +3059,10 @@ function validate36(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate36.errors = vErrors
+ validate39.errors = vErrors
return errors === 0
}
-const schema35 = {
+const schema37 = {
additionalProperties: false,
properties: {
key: { type: 'string' },
@@ -2831,7 +3074,7 @@ const schema35 = {
required: ['key', 'operator', 'type'],
type: 'object',
}
-function validate39(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate42(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -2842,7 +3085,7 @@ function validate39(data, { instancePath = '', parentData, parentDataProperty, r
(data.operator === undefined && (missing0 = 'operator')) ||
(data.type === undefined && (missing0 = 'type'))
) {
- validate39.errors = [
+ validate42.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -2864,7 +3107,7 @@ function validate39(data, { instancePath = '', parentData, parentDataProperty, r
key0 === 'value'
)
) {
- validate39.errors = [
+ validate42.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -2881,7 +3124,7 @@ function validate39(data, { instancePath = '', parentData, parentDataProperty, r
if (data.key !== undefined) {
const _errs2 = errors
if (typeof data.key !== 'string') {
- validate39.errors = [
+ validate42.errors = [
{
instancePath: instancePath + '/key',
schemaPath: '#/properties/key/type',
@@ -2900,7 +3143,7 @@ function validate39(data, { instancePath = '', parentData, parentDataProperty, r
if (data.label !== undefined) {
const _errs4 = errors
if (typeof data.label !== 'string') {
- validate39.errors = [
+ validate42.errors = [
{
instancePath: instancePath + '/label',
schemaPath: '#/properties/label/type',
@@ -2920,7 +3163,7 @@ function validate39(data, { instancePath = '', parentData, parentDataProperty, r
let data2 = data.operator
const _errs6 = errors
if (typeof data2 !== 'string') {
- validate39.errors = [
+ validate42.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/type',
@@ -2969,7 +3212,7 @@ function validate39(data, { instancePath = '', parentData, parentDataProperty, r
data2 === 'not_icontains_multi'
)
) {
- validate39.errors = [
+ validate42.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/enum',
@@ -2989,7 +3232,7 @@ function validate39(data, { instancePath = '', parentData, parentDataProperty, r
let data3 = data.type
const _errs9 = errors
if (typeof data3 !== 'string') {
- validate39.errors = [
+ validate42.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/type',
@@ -3001,7 +3244,7 @@ function validate39(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('feature' !== data3) {
- validate39.errors = [
+ validate42.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/const',
@@ -3042,7 +3285,7 @@ function validate39(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate39.errors = [
+ validate42.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -3054,10 +3297,10 @@ function validate39(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate39.errors = vErrors
+ validate42.errors = vErrors
return errors === 0
}
-const schema38 = {
+const schema40 = {
additionalProperties: false,
properties: {
key: { type: 'string' },
@@ -3068,14 +3311,14 @@ const schema38 = {
required: ['key', 'type'],
type: 'object',
}
-function validate42(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate45(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
if (data && typeof data == 'object' && !Array.isArray(data)) {
let missing0
if ((data.key === undefined && (missing0 = 'key')) || (data.type === undefined && (missing0 = 'type'))) {
- validate42.errors = [
+ validate45.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -3089,7 +3332,7 @@ function validate42(data, { instancePath = '', parentData, parentDataProperty, r
const _errs1 = errors
for (const key0 in data) {
if (!(key0 === 'key' || key0 === 'label' || key0 === 'type' || key0 === 'value')) {
- validate42.errors = [
+ validate45.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -3106,7 +3349,7 @@ function validate42(data, { instancePath = '', parentData, parentDataProperty, r
if (data.key !== undefined) {
const _errs2 = errors
if (typeof data.key !== 'string') {
- validate42.errors = [
+ validate45.errors = [
{
instancePath: instancePath + '/key',
schemaPath: '#/properties/key/type',
@@ -3125,7 +3368,7 @@ function validate42(data, { instancePath = '', parentData, parentDataProperty, r
if (data.label !== undefined) {
const _errs4 = errors
if (typeof data.label !== 'string') {
- validate42.errors = [
+ validate45.errors = [
{
instancePath: instancePath + '/label',
schemaPath: '#/properties/label/type',
@@ -3145,7 +3388,7 @@ function validate42(data, { instancePath = '', parentData, parentDataProperty, r
let data2 = data.type
const _errs6 = errors
if (typeof data2 !== 'string') {
- validate42.errors = [
+ validate45.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/type',
@@ -3157,7 +3400,7 @@ function validate42(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('hogql' !== data2) {
- validate42.errors = [
+ validate45.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/const',
@@ -3197,7 +3440,7 @@ function validate42(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate42.errors = [
+ validate45.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -3209,10 +3452,10 @@ function validate42(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate42.errors = vErrors
+ validate45.errors = vErrors
return errors === 0
}
-const schema40 = {
+const schema42 = {
additionalProperties: false,
properties: {
key: { type: 'string' },
@@ -3224,7 +3467,7 @@ const schema40 = {
required: ['key', 'operator', 'type'],
type: 'object',
}
-function validate45(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate48(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -3235,7 +3478,7 @@ function validate45(data, { instancePath = '', parentData, parentDataProperty, r
(data.operator === undefined && (missing0 = 'operator')) ||
(data.type === undefined && (missing0 = 'type'))
) {
- validate45.errors = [
+ validate48.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -3257,7 +3500,7 @@ function validate45(data, { instancePath = '', parentData, parentDataProperty, r
key0 === 'value'
)
) {
- validate45.errors = [
+ validate48.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -3274,7 +3517,7 @@ function validate45(data, { instancePath = '', parentData, parentDataProperty, r
if (data.key !== undefined) {
const _errs2 = errors
if (typeof data.key !== 'string') {
- validate45.errors = [
+ validate48.errors = [
{
instancePath: instancePath + '/key',
schemaPath: '#/properties/key/type',
@@ -3293,7 +3536,7 @@ function validate45(data, { instancePath = '', parentData, parentDataProperty, r
if (data.label !== undefined) {
const _errs4 = errors
if (typeof data.label !== 'string') {
- validate45.errors = [
+ validate48.errors = [
{
instancePath: instancePath + '/label',
schemaPath: '#/properties/label/type',
@@ -3313,7 +3556,7 @@ function validate45(data, { instancePath = '', parentData, parentDataProperty, r
let data2 = data.operator
const _errs6 = errors
if (typeof data2 !== 'string') {
- validate45.errors = [
+ validate48.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/type',
@@ -3362,7 +3605,7 @@ function validate45(data, { instancePath = '', parentData, parentDataProperty, r
data2 === 'not_icontains_multi'
)
) {
- validate45.errors = [
+ validate48.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/enum',
@@ -3382,7 +3625,7 @@ function validate45(data, { instancePath = '', parentData, parentDataProperty, r
let data3 = data.type
const _errs9 = errors
if (typeof data3 !== 'string') {
- validate45.errors = [
+ validate48.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/type',
@@ -3394,7 +3637,7 @@ function validate45(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('data_warehouse' !== data3) {
- validate45.errors = [
+ validate48.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/const',
@@ -3435,7 +3678,7 @@ function validate45(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate45.errors = [
+ validate48.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -3447,10 +3690,10 @@ function validate45(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate45.errors = vErrors
+ validate48.errors = vErrors
return errors === 0
}
-const schema42 = {
+const schema44 = {
additionalProperties: false,
properties: {
key: { type: 'string' },
@@ -3462,7 +3705,7 @@ const schema42 = {
required: ['key', 'operator', 'type'],
type: 'object',
}
-function validate48(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate51(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -3473,7 +3716,7 @@ function validate48(data, { instancePath = '', parentData, parentDataProperty, r
(data.operator === undefined && (missing0 = 'operator')) ||
(data.type === undefined && (missing0 = 'type'))
) {
- validate48.errors = [
+ validate51.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -3495,7 +3738,7 @@ function validate48(data, { instancePath = '', parentData, parentDataProperty, r
key0 === 'value'
)
) {
- validate48.errors = [
+ validate51.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -3512,7 +3755,7 @@ function validate48(data, { instancePath = '', parentData, parentDataProperty, r
if (data.key !== undefined) {
const _errs2 = errors
if (typeof data.key !== 'string') {
- validate48.errors = [
+ validate51.errors = [
{
instancePath: instancePath + '/key',
schemaPath: '#/properties/key/type',
@@ -3531,7 +3774,7 @@ function validate48(data, { instancePath = '', parentData, parentDataProperty, r
if (data.label !== undefined) {
const _errs4 = errors
if (typeof data.label !== 'string') {
- validate48.errors = [
+ validate51.errors = [
{
instancePath: instancePath + '/label',
schemaPath: '#/properties/label/type',
@@ -3551,7 +3794,7 @@ function validate48(data, { instancePath = '', parentData, parentDataProperty, r
let data2 = data.operator
const _errs6 = errors
if (typeof data2 !== 'string') {
- validate48.errors = [
+ validate51.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/type',
@@ -3600,7 +3843,7 @@ function validate48(data, { instancePath = '', parentData, parentDataProperty, r
data2 === 'not_icontains_multi'
)
) {
- validate48.errors = [
+ validate51.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/enum',
@@ -3620,7 +3863,7 @@ function validate48(data, { instancePath = '', parentData, parentDataProperty, r
let data3 = data.type
const _errs9 = errors
if (typeof data3 !== 'string') {
- validate48.errors = [
+ validate51.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/type',
@@ -3632,7 +3875,7 @@ function validate48(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('data_warehouse_person_property' !== data3) {
- validate48.errors = [
+ validate51.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/const',
@@ -3673,7 +3916,7 @@ function validate48(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate48.errors = [
+ validate51.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -3685,10 +3928,10 @@ function validate48(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate48.errors = vErrors
+ validate51.errors = vErrors
return errors === 0
}
-const schema44 = {
+const schema46 = {
additionalProperties: false,
properties: {
key: { type: 'string' },
@@ -3700,7 +3943,7 @@ const schema44 = {
required: ['key', 'operator', 'type'],
type: 'object',
}
-function validate51(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate54(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -3711,7 +3954,7 @@ function validate51(data, { instancePath = '', parentData, parentDataProperty, r
(data.operator === undefined && (missing0 = 'operator')) ||
(data.type === undefined && (missing0 = 'type'))
) {
- validate51.errors = [
+ validate54.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -3733,7 +3976,7 @@ function validate51(data, { instancePath = '', parentData, parentDataProperty, r
key0 === 'value'
)
) {
- validate51.errors = [
+ validate54.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -3750,7 +3993,7 @@ function validate51(data, { instancePath = '', parentData, parentDataProperty, r
if (data.key !== undefined) {
const _errs2 = errors
if (typeof data.key !== 'string') {
- validate51.errors = [
+ validate54.errors = [
{
instancePath: instancePath + '/key',
schemaPath: '#/properties/key/type',
@@ -3769,7 +4012,7 @@ function validate51(data, { instancePath = '', parentData, parentDataProperty, r
if (data.label !== undefined) {
const _errs4 = errors
if (typeof data.label !== 'string') {
- validate51.errors = [
+ validate54.errors = [
{
instancePath: instancePath + '/label',
schemaPath: '#/properties/label/type',
@@ -3789,7 +4032,7 @@ function validate51(data, { instancePath = '', parentData, parentDataProperty, r
let data2 = data.operator
const _errs6 = errors
if (typeof data2 !== 'string') {
- validate51.errors = [
+ validate54.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/type',
@@ -3838,7 +4081,7 @@ function validate51(data, { instancePath = '', parentData, parentDataProperty, r
data2 === 'not_icontains_multi'
)
) {
- validate51.errors = [
+ validate54.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/enum',
@@ -3858,7 +4101,7 @@ function validate51(data, { instancePath = '', parentData, parentDataProperty, r
let data3 = data.type
const _errs9 = errors
if (typeof data3 !== 'string') {
- validate51.errors = [
+ validate54.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/type',
@@ -3870,7 +4113,7 @@ function validate51(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('error_tracking_issue' !== data3) {
- validate51.errors = [
+ validate54.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/const',
@@ -3911,7 +4154,7 @@ function validate51(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate51.errors = [
+ validate54.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -3923,10 +4166,10 @@ function validate51(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate51.errors = vErrors
+ validate54.errors = vErrors
return errors === 0
}
-const schema46 = {
+const schema48 = {
additionalProperties: false,
properties: {
key: { type: 'string' },
@@ -3938,8 +4181,8 @@ const schema46 = {
required: ['key', 'operator', 'type'],
type: 'object',
}
-const schema48 = { enum: ['log', 'log_attribute', 'log_resource_attribute'], type: 'string' }
-function validate54(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+const schema50 = { enum: ['log', 'log_attribute', 'log_resource_attribute'], type: 'string' }
+function validate57(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -3950,7 +4193,7 @@ function validate54(data, { instancePath = '', parentData, parentDataProperty, r
(data.operator === undefined && (missing0 = 'operator')) ||
(data.type === undefined && (missing0 = 'type'))
) {
- validate54.errors = [
+ validate57.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -3972,7 +4215,7 @@ function validate54(data, { instancePath = '', parentData, parentDataProperty, r
key0 === 'value'
)
) {
- validate54.errors = [
+ validate57.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -3989,7 +4232,7 @@ function validate54(data, { instancePath = '', parentData, parentDataProperty, r
if (data.key !== undefined) {
const _errs2 = errors
if (typeof data.key !== 'string') {
- validate54.errors = [
+ validate57.errors = [
{
instancePath: instancePath + '/key',
schemaPath: '#/properties/key/type',
@@ -4008,7 +4251,7 @@ function validate54(data, { instancePath = '', parentData, parentDataProperty, r
if (data.label !== undefined) {
const _errs4 = errors
if (typeof data.label !== 'string') {
- validate54.errors = [
+ validate57.errors = [
{
instancePath: instancePath + '/label',
schemaPath: '#/properties/label/type',
@@ -4028,7 +4271,7 @@ function validate54(data, { instancePath = '', parentData, parentDataProperty, r
let data2 = data.operator
const _errs6 = errors
if (typeof data2 !== 'string') {
- validate54.errors = [
+ validate57.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/type',
@@ -4077,7 +4320,7 @@ function validate54(data, { instancePath = '', parentData, parentDataProperty, r
data2 === 'not_icontains_multi'
)
) {
- validate54.errors = [
+ validate57.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/enum',
@@ -4097,7 +4340,7 @@ function validate54(data, { instancePath = '', parentData, parentDataProperty, r
let data3 = data.type
const _errs9 = errors
if (typeof data3 !== 'string') {
- validate54.errors = [
+ validate57.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/definitions/LogPropertyFilterType/type',
@@ -4115,12 +4358,12 @@ function validate54(data, { instancePath = '', parentData, parentDataProperty, r
data3 === 'log_resource_attribute'
)
) {
- validate54.errors = [
+ validate57.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/definitions/LogPropertyFilterType/enum',
keyword: 'enum',
- params: { allowedValues: schema48.enum },
+ params: { allowedValues: schema50.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -4156,7 +4399,7 @@ function validate54(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate54.errors = [
+ validate57.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -4168,10 +4411,10 @@ function validate54(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate54.errors = vErrors
+ validate57.errors = vErrors
return errors === 0
}
-const schema49 = {
+const schema51 = {
additionalProperties: false,
properties: {
key: { type: 'string' },
@@ -4183,8 +4426,8 @@ const schema49 = {
required: ['key', 'operator', 'type'],
type: 'object',
}
-const schema51 = { enum: ['span', 'span_attribute', 'span_resource_attribute'], type: 'string' }
-function validate57(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+const schema53 = { enum: ['span', 'span_attribute', 'span_resource_attribute'], type: 'string' }
+function validate60(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -4195,7 +4438,7 @@ function validate57(data, { instancePath = '', parentData, parentDataProperty, r
(data.operator === undefined && (missing0 = 'operator')) ||
(data.type === undefined && (missing0 = 'type'))
) {
- validate57.errors = [
+ validate60.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -4217,7 +4460,7 @@ function validate57(data, { instancePath = '', parentData, parentDataProperty, r
key0 === 'value'
)
) {
- validate57.errors = [
+ validate60.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -4234,7 +4477,7 @@ function validate57(data, { instancePath = '', parentData, parentDataProperty, r
if (data.key !== undefined) {
const _errs2 = errors
if (typeof data.key !== 'string') {
- validate57.errors = [
+ validate60.errors = [
{
instancePath: instancePath + '/key',
schemaPath: '#/properties/key/type',
@@ -4253,7 +4496,7 @@ function validate57(data, { instancePath = '', parentData, parentDataProperty, r
if (data.label !== undefined) {
const _errs4 = errors
if (typeof data.label !== 'string') {
- validate57.errors = [
+ validate60.errors = [
{
instancePath: instancePath + '/label',
schemaPath: '#/properties/label/type',
@@ -4273,7 +4516,7 @@ function validate57(data, { instancePath = '', parentData, parentDataProperty, r
let data2 = data.operator
const _errs6 = errors
if (typeof data2 !== 'string') {
- validate57.errors = [
+ validate60.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/type',
@@ -4322,7 +4565,7 @@ function validate57(data, { instancePath = '', parentData, parentDataProperty, r
data2 === 'not_icontains_multi'
)
) {
- validate57.errors = [
+ validate60.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/enum',
@@ -4342,7 +4585,7 @@ function validate57(data, { instancePath = '', parentData, parentDataProperty, r
let data3 = data.type
const _errs9 = errors
if (typeof data3 !== 'string') {
- validate57.errors = [
+ validate60.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/definitions/SpanPropertyFilterType/type',
@@ -4360,12 +4603,12 @@ function validate57(data, { instancePath = '', parentData, parentDataProperty, r
data3 === 'span_resource_attribute'
)
) {
- validate57.errors = [
+ validate60.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/definitions/SpanPropertyFilterType/enum',
keyword: 'enum',
- params: { allowedValues: schema51.enum },
+ params: { allowedValues: schema53.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -4401,7 +4644,7 @@ function validate57(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate57.errors = [
+ validate60.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -4413,10 +4656,10 @@ function validate57(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate57.errors = vErrors
+ validate60.errors = vErrors
return errors === 0
}
-const schema52 = {
+const schema54 = {
additionalProperties: false,
properties: {
key: { type: 'string' },
@@ -4428,7 +4671,7 @@ const schema52 = {
required: ['key', 'operator', 'type'],
type: 'object',
}
-function validate60(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate63(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -4439,7 +4682,7 @@ function validate60(data, { instancePath = '', parentData, parentDataProperty, r
(data.operator === undefined && (missing0 = 'operator')) ||
(data.type === undefined && (missing0 = 'type'))
) {
- validate60.errors = [
+ validate63.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -4461,7 +4704,7 @@ function validate60(data, { instancePath = '', parentData, parentDataProperty, r
key0 === 'value'
)
) {
- validate60.errors = [
+ validate63.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -4478,7 +4721,7 @@ function validate60(data, { instancePath = '', parentData, parentDataProperty, r
if (data.key !== undefined) {
const _errs2 = errors
if (typeof data.key !== 'string') {
- validate60.errors = [
+ validate63.errors = [
{
instancePath: instancePath + '/key',
schemaPath: '#/properties/key/type',
@@ -4497,7 +4740,7 @@ function validate60(data, { instancePath = '', parentData, parentDataProperty, r
if (data.label !== undefined) {
const _errs4 = errors
if (typeof data.label !== 'string') {
- validate60.errors = [
+ validate63.errors = [
{
instancePath: instancePath + '/label',
schemaPath: '#/properties/label/type',
@@ -4517,7 +4760,7 @@ function validate60(data, { instancePath = '', parentData, parentDataProperty, r
let data2 = data.operator
const _errs6 = errors
if (typeof data2 !== 'string') {
- validate60.errors = [
+ validate63.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/type',
@@ -4566,7 +4809,7 @@ function validate60(data, { instancePath = '', parentData, parentDataProperty, r
data2 === 'not_icontains_multi'
)
) {
- validate60.errors = [
+ validate63.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/enum',
@@ -4586,7 +4829,7 @@ function validate60(data, { instancePath = '', parentData, parentDataProperty, r
let data3 = data.type
const _errs9 = errors
if (typeof data3 !== 'string') {
- validate60.errors = [
+ validate63.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/type',
@@ -4598,7 +4841,7 @@ function validate60(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('revenue_analytics' !== data3) {
- validate60.errors = [
+ validate63.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/const',
@@ -4639,7 +4882,7 @@ function validate60(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate60.errors = [
+ validate63.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -4651,10 +4894,10 @@ function validate60(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate60.errors = vErrors
+ validate63.errors = vErrors
return errors === 0
}
-const schema54 = {
+const schema56 = {
additionalProperties: false,
properties: {
key: { type: 'string' },
@@ -4666,7 +4909,7 @@ const schema54 = {
required: ['key', 'operator', 'type'],
type: 'object',
}
-function validate63(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate66(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -4677,7 +4920,7 @@ function validate63(data, { instancePath = '', parentData, parentDataProperty, r
(data.operator === undefined && (missing0 = 'operator')) ||
(data.type === undefined && (missing0 = 'type'))
) {
- validate63.errors = [
+ validate66.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -4699,7 +4942,7 @@ function validate63(data, { instancePath = '', parentData, parentDataProperty, r
key0 === 'value'
)
) {
- validate63.errors = [
+ validate66.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -4716,7 +4959,7 @@ function validate63(data, { instancePath = '', parentData, parentDataProperty, r
if (data.key !== undefined) {
const _errs2 = errors
if (typeof data.key !== 'string') {
- validate63.errors = [
+ validate66.errors = [
{
instancePath: instancePath + '/key',
schemaPath: '#/properties/key/type',
@@ -4735,7 +4978,7 @@ function validate63(data, { instancePath = '', parentData, parentDataProperty, r
if (data.label !== undefined) {
const _errs4 = errors
if (typeof data.label !== 'string') {
- validate63.errors = [
+ validate66.errors = [
{
instancePath: instancePath + '/label',
schemaPath: '#/properties/label/type',
@@ -4755,7 +4998,7 @@ function validate63(data, { instancePath = '', parentData, parentDataProperty, r
let data2 = data.operator
const _errs6 = errors
if (typeof data2 !== 'string') {
- validate63.errors = [
+ validate66.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/type',
@@ -4804,7 +5047,7 @@ function validate63(data, { instancePath = '', parentData, parentDataProperty, r
data2 === 'not_icontains_multi'
)
) {
- validate63.errors = [
+ validate66.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/enum',
@@ -4824,7 +5067,7 @@ function validate63(data, { instancePath = '', parentData, parentDataProperty, r
let data3 = data.type
const _errs9 = errors
if (typeof data3 !== 'string') {
- validate63.errors = [
+ validate66.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/type',
@@ -4836,7 +5079,7 @@ function validate63(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('workflow_variable' !== data3) {
- validate63.errors = [
+ validate66.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/const',
@@ -4877,7 +5120,7 @@ function validate63(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate63.errors = [
+ validate66.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -4889,7 +5132,7 @@ function validate63(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate63.errors = vErrors
+ validate66.errors = vErrors
return errors === 0
}
function validate11(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
@@ -4946,8 +5189,8 @@ function validate11(data, { instancePath = '', parentData, parentDataProperty, r
valid0 = valid0 || _valid0
if (!valid0) {
const _errs7 = errors
- if (!validate30(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors)
+ if (!validate31(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors)
errors = vErrors.length
}
var _valid0 = _errs7 === errors
@@ -4975,374 +5218,386 @@ function validate11(data, { instancePath = '', parentData, parentDataProperty, r
!validate39(data, {
instancePath,
parentData,
- parentDataProperty,
- rootData,
- })
- ) {
- vErrors =
- vErrors === null ? validate39.errors : vErrors.concat(validate39.errors)
- errors = vErrors.length
- }
- var _valid0 = _errs10 === errors
- valid0 = valid0 || _valid0
- if (!valid0) {
- const _errs11 = errors
- const _errs12 = errors
- if (errors === _errs12) {
- if (data && typeof data == 'object' && !Array.isArray(data)) {
- let missing0
- if (
- (data.key === undefined && (missing0 = 'key')) ||
- (data.operator === undefined && (missing0 = 'operator')) ||
- (data.type === undefined && (missing0 = 'type')) ||
- (data.value === undefined && (missing0 = 'value'))
- ) {
- const err0 = {
- instancePath,
- schemaPath: '#/definitions/FlagPropertyFilter/required',
- keyword: 'required',
- params: { missingProperty: missing0 },
- message: "must have required property '" + missing0 + "'",
- }
- if (vErrors === null) {
- vErrors = [err0]
- } else {
- vErrors.push(err0)
- }
- errors++
- } else {
- const _errs14 = errors
- for (const key0 in data) {
- if (
- !(
- key0 === 'key' ||
- key0 === 'label' ||
- key0 === 'operator' ||
- key0 === 'type' ||
- key0 === 'value'
- )
- ) {
- const err1 = {
- instancePath,
- schemaPath:
- '#/definitions/FlagPropertyFilter/additionalProperties',
- keyword: 'additionalProperties',
- params: { additionalProperty: key0 },
- message: 'must NOT have additional properties',
- }
- if (vErrors === null) {
- vErrors = [err1]
- } else {
- vErrors.push(err1)
- }
- errors++
- break
+ parentDataProperty,
+ rootData,
+ })
+ ) {
+ vErrors =
+ vErrors === null ? validate39.errors : vErrors.concat(validate39.errors)
+ errors = vErrors.length
+ }
+ var _valid0 = _errs10 === errors
+ valid0 = valid0 || _valid0
+ if (!valid0) {
+ const _errs11 = errors
+ if (
+ !validate42(data, {
+ instancePath,
+ parentData,
+ parentDataProperty,
+ rootData,
+ })
+ ) {
+ vErrors =
+ vErrors === null
+ ? validate42.errors
+ : vErrors.concat(validate42.errors)
+ errors = vErrors.length
+ }
+ var _valid0 = _errs11 === errors
+ valid0 = valid0 || _valid0
+ if (!valid0) {
+ const _errs12 = errors
+ const _errs13 = errors
+ if (errors === _errs13) {
+ if (data && typeof data == 'object' && !Array.isArray(data)) {
+ let missing0
+ if (
+ (data.key === undefined && (missing0 = 'key')) ||
+ (data.operator === undefined && (missing0 = 'operator')) ||
+ (data.type === undefined && (missing0 = 'type')) ||
+ (data.value === undefined && (missing0 = 'value'))
+ ) {
+ const err0 = {
+ instancePath,
+ schemaPath: '#/definitions/FlagPropertyFilter/required',
+ keyword: 'required',
+ params: { missingProperty: missing0 },
+ message:
+ "must have required property '" + missing0 + "'",
}
- }
- if (_errs14 === errors) {
- if (data.key !== undefined) {
- const _errs15 = errors
- if (typeof data.key !== 'string') {
- const err2 = {
- instancePath: instancePath + '/key',
+ if (vErrors === null) {
+ vErrors = [err0]
+ } else {
+ vErrors.push(err0)
+ }
+ errors++
+ } else {
+ const _errs15 = errors
+ for (const key0 in data) {
+ if (
+ !(
+ key0 === 'key' ||
+ key0 === 'label' ||
+ key0 === 'operator' ||
+ key0 === 'type' ||
+ key0 === 'value'
+ )
+ ) {
+ const err1 = {
+ instancePath,
schemaPath:
- '#/definitions/FlagPropertyFilter/properties/key/type',
- keyword: 'type',
- params: { type: 'string' },
- message: 'must be string',
+ '#/definitions/FlagPropertyFilter/additionalProperties',
+ keyword: 'additionalProperties',
+ params: { additionalProperty: key0 },
+ message: 'must NOT have additional properties',
}
if (vErrors === null) {
- vErrors = [err2]
+ vErrors = [err1]
} else {
- vErrors.push(err2)
+ vErrors.push(err1)
}
errors++
+ break
}
- var valid2 = _errs15 === errors
- } else {
- var valid2 = true
}
- if (valid2) {
- if (data.label !== undefined) {
- const _errs17 = errors
- if (typeof data.label !== 'string') {
- const err3 = {
- instancePath: instancePath + '/label',
+ if (_errs15 === errors) {
+ if (data.key !== undefined) {
+ const _errs16 = errors
+ if (typeof data.key !== 'string') {
+ const err2 = {
+ instancePath: instancePath + '/key',
schemaPath:
- '#/definitions/FlagPropertyFilter/properties/label/type',
+ '#/definitions/FlagPropertyFilter/properties/key/type',
keyword: 'type',
params: { type: 'string' },
message: 'must be string',
}
if (vErrors === null) {
- vErrors = [err3]
+ vErrors = [err2]
} else {
- vErrors.push(err3)
+ vErrors.push(err2)
}
errors++
}
- var valid2 = _errs17 === errors
+ var valid2 = _errs16 === errors
} else {
var valid2 = true
}
if (valid2) {
- if (data.operator !== undefined) {
- let data2 = data.operator
- const _errs19 = errors
- if (typeof data2 !== 'string') {
- const err4 = {
- instancePath:
- instancePath + '/operator',
+ if (data.label !== undefined) {
+ const _errs18 = errors
+ if (typeof data.label !== 'string') {
+ const err3 = {
+ instancePath: instancePath + '/label',
schemaPath:
- '#/definitions/FlagPropertyFilter/properties/operator/type',
+ '#/definitions/FlagPropertyFilter/properties/label/type',
keyword: 'type',
params: { type: 'string' },
message: 'must be string',
}
if (vErrors === null) {
- vErrors = [err4]
- } else {
- vErrors.push(err4)
- }
- errors++
- }
- if ('flag_evaluates_to' !== data2) {
- const err5 = {
- instancePath:
- instancePath + '/operator',
- schemaPath:
- '#/definitions/FlagPropertyFilter/properties/operator/const',
- keyword: 'const',
- params: {
- allowedValue: 'flag_evaluates_to',
- },
- message: 'must be equal to constant',
- }
- if (vErrors === null) {
- vErrors = [err5]
+ vErrors = [err3]
} else {
- vErrors.push(err5)
+ vErrors.push(err3)
}
errors++
}
- var valid2 = _errs19 === errors
+ var valid2 = _errs18 === errors
} else {
var valid2 = true
}
if (valid2) {
- if (data.type !== undefined) {
- let data3 = data.type
- const _errs21 = errors
- if (typeof data3 !== 'string') {
- const err6 = {
+ if (data.operator !== undefined) {
+ let data2 = data.operator
+ const _errs20 = errors
+ if (typeof data2 !== 'string') {
+ const err4 = {
instancePath:
- instancePath + '/type',
+ instancePath + '/operator',
schemaPath:
- '#/definitions/FlagPropertyFilter/properties/type/type',
+ '#/definitions/FlagPropertyFilter/properties/operator/type',
keyword: 'type',
params: { type: 'string' },
message: 'must be string',
}
if (vErrors === null) {
- vErrors = [err6]
+ vErrors = [err4]
} else {
- vErrors.push(err6)
+ vErrors.push(err4)
}
errors++
}
- if ('flag' !== data3) {
- const err7 = {
+ if ('flag_evaluates_to' !== data2) {
+ const err5 = {
instancePath:
- instancePath + '/type',
+ instancePath + '/operator',
schemaPath:
- '#/definitions/FlagPropertyFilter/properties/type/const',
+ '#/definitions/FlagPropertyFilter/properties/operator/const',
keyword: 'const',
- params: { allowedValue: 'flag' },
+ params: {
+ allowedValue:
+ 'flag_evaluates_to',
+ },
message:
'must be equal to constant',
}
if (vErrors === null) {
- vErrors = [err7]
+ vErrors = [err5]
} else {
- vErrors.push(err7)
+ vErrors.push(err5)
}
errors++
}
- var valid2 = _errs21 === errors
+ var valid2 = _errs20 === errors
} else {
var valid2 = true
}
if (valid2) {
- if (data.value !== undefined) {
- let data4 = data.value
- const _errs23 = errors
- if (
- typeof data4 !== 'boolean' &&
- typeof data4 !== 'string'
- ) {
- const err8 = {
+ if (data.type !== undefined) {
+ let data3 = data.type
+ const _errs22 = errors
+ if (typeof data3 !== 'string') {
+ const err6 = {
instancePath:
- instancePath + '/value',
+ instancePath + '/type',
schemaPath:
- '#/definitions/FlagPropertyFilter/properties/value/type',
+ '#/definitions/FlagPropertyFilter/properties/type/type',
keyword: 'type',
+ params: { type: 'string' },
+ message: 'must be string',
+ }
+ if (vErrors === null) {
+ vErrors = [err6]
+ } else {
+ vErrors.push(err6)
+ }
+ errors++
+ }
+ if ('flag' !== data3) {
+ const err7 = {
+ instancePath:
+ instancePath + '/type',
+ schemaPath:
+ '#/definitions/FlagPropertyFilter/properties/type/const',
+ keyword: 'const',
params: {
- type: schema37.properties
- .value.type,
+ allowedValue: 'flag',
},
message:
- 'must be boolean,string',
+ 'must be equal to constant',
}
if (vErrors === null) {
- vErrors = [err8]
+ vErrors = [err7]
} else {
- vErrors.push(err8)
+ vErrors.push(err7)
}
errors++
}
- var valid2 = _errs23 === errors
+ var valid2 = _errs22 === errors
} else {
var valid2 = true
}
+ if (valid2) {
+ if (data.value !== undefined) {
+ let data4 = data.value
+ const _errs24 = errors
+ if (
+ typeof data4 !== 'boolean' &&
+ typeof data4 !== 'string'
+ ) {
+ const err8 = {
+ instancePath:
+ instancePath + '/value',
+ schemaPath:
+ '#/definitions/FlagPropertyFilter/properties/value/type',
+ keyword: 'type',
+ params: {
+ type: schema39
+ .properties.value
+ .type,
+ },
+ message:
+ 'must be boolean,string',
+ }
+ if (vErrors === null) {
+ vErrors = [err8]
+ } else {
+ vErrors.push(err8)
+ }
+ errors++
+ }
+ var valid2 = _errs24 === errors
+ } else {
+ var valid2 = true
+ }
+ }
}
}
}
}
}
- }
- } else {
- const err9 = {
- instancePath,
- schemaPath: '#/definitions/FlagPropertyFilter/type',
- keyword: 'type',
- params: { type: 'object' },
- message: 'must be object',
- }
- if (vErrors === null) {
- vErrors = [err9]
} else {
- vErrors.push(err9)
+ const err9 = {
+ instancePath,
+ schemaPath: '#/definitions/FlagPropertyFilter/type',
+ keyword: 'type',
+ params: { type: 'object' },
+ message: 'must be object',
+ }
+ if (vErrors === null) {
+ vErrors = [err9]
+ } else {
+ vErrors.push(err9)
+ }
+ errors++
}
- errors++
- }
- }
- var _valid0 = _errs11 === errors
- valid0 = valid0 || _valid0
- if (!valid0) {
- const _errs25 = errors
- if (
- !validate42(data, {
- instancePath,
- parentData,
- parentDataProperty,
- rootData,
- })
- ) {
- vErrors =
- vErrors === null
- ? validate42.errors
- : vErrors.concat(validate42.errors)
- errors = vErrors.length
}
- var _valid0 = _errs25 === errors
+ var _valid0 = _errs12 === errors
valid0 = valid0 || _valid0
if (!valid0) {
const _errs26 = errors
- const _errs27 = errors
- if (errors === _errs27) {
- if (data && typeof data == 'object' && !Array.isArray(data)) {
- const _errs29 = errors
- for (const key1 in data) {
- if (!(key1 === 'type')) {
- const err10 = {
- instancePath,
- schemaPath:
- '#/definitions/EmptyPropertyFilter/additionalProperties',
- keyword: 'additionalProperties',
- params: { additionalProperty: key1 },
- message: 'must NOT have additional properties',
- }
- if (vErrors === null) {
- vErrors = [err10]
- } else {
- vErrors.push(err10)
- }
- errors++
- break
- }
- }
- if (_errs29 === errors) {
- if (data.type !== undefined) {
- let data5 = data.type
- if (typeof data5 !== 'string') {
- const err11 = {
- instancePath: instancePath + '/type',
+ if (
+ !validate45(data, {
+ instancePath,
+ parentData,
+ parentDataProperty,
+ rootData,
+ })
+ ) {
+ vErrors =
+ vErrors === null
+ ? validate45.errors
+ : vErrors.concat(validate45.errors)
+ errors = vErrors.length
+ }
+ var _valid0 = _errs26 === errors
+ valid0 = valid0 || _valid0
+ if (!valid0) {
+ const _errs27 = errors
+ const _errs28 = errors
+ if (errors === _errs28) {
+ if (
+ data &&
+ typeof data == 'object' &&
+ !Array.isArray(data)
+ ) {
+ const _errs30 = errors
+ for (const key1 in data) {
+ if (!(key1 === 'type')) {
+ const err10 = {
+ instancePath,
schemaPath:
- '#/definitions/EmptyPropertyFilter/properties/type/type',
- keyword: 'type',
- params: { type: 'string' },
- message: 'must be string',
+ '#/definitions/EmptyPropertyFilter/additionalProperties',
+ keyword: 'additionalProperties',
+ params: { additionalProperty: key1 },
+ message:
+ 'must NOT have additional properties',
}
if (vErrors === null) {
- vErrors = [err11]
+ vErrors = [err10]
} else {
- vErrors.push(err11)
+ vErrors.push(err10)
}
errors++
+ break
}
- if ('empty' !== data5) {
- const err12 = {
- instancePath: instancePath + '/type',
- schemaPath:
- '#/definitions/EmptyPropertyFilter/properties/type/const',
- keyword: 'const',
- params: { allowedValue: 'empty' },
- message: 'must be equal to constant',
+ }
+ if (_errs30 === errors) {
+ if (data.type !== undefined) {
+ let data5 = data.type
+ if (typeof data5 !== 'string') {
+ const err11 = {
+ instancePath: instancePath + '/type',
+ schemaPath:
+ '#/definitions/EmptyPropertyFilter/properties/type/type',
+ keyword: 'type',
+ params: { type: 'string' },
+ message: 'must be string',
+ }
+ if (vErrors === null) {
+ vErrors = [err11]
+ } else {
+ vErrors.push(err11)
+ }
+ errors++
}
- if (vErrors === null) {
- vErrors = [err12]
- } else {
- vErrors.push(err12)
+ if ('empty' !== data5) {
+ const err12 = {
+ instancePath: instancePath + '/type',
+ schemaPath:
+ '#/definitions/EmptyPropertyFilter/properties/type/const',
+ keyword: 'const',
+ params: { allowedValue: 'empty' },
+ message: 'must be equal to constant',
+ }
+ if (vErrors === null) {
+ vErrors = [err12]
+ } else {
+ vErrors.push(err12)
+ }
+ errors++
}
- errors++
}
}
- }
- } else {
- const err13 = {
- instancePath,
- schemaPath: '#/definitions/EmptyPropertyFilter/type',
- keyword: 'type',
- params: { type: 'object' },
- message: 'must be object',
- }
- if (vErrors === null) {
- vErrors = [err13]
} else {
- vErrors.push(err13)
+ const err13 = {
+ instancePath,
+ schemaPath:
+ '#/definitions/EmptyPropertyFilter/type',
+ keyword: 'type',
+ params: { type: 'object' },
+ message: 'must be object',
+ }
+ if (vErrors === null) {
+ vErrors = [err13]
+ } else {
+ vErrors.push(err13)
+ }
+ errors++
}
- errors++
}
- }
- var _valid0 = _errs26 === errors
- valid0 = valid0 || _valid0
- if (!valid0) {
- const _errs32 = errors
- if (
- !validate45(data, {
- instancePath,
- parentData,
- parentDataProperty,
- rootData,
- })
- ) {
- vErrors =
- vErrors === null
- ? validate45.errors
- : vErrors.concat(validate45.errors)
- errors = vErrors.length
- }
- var _valid0 = _errs32 === errors
+ var _valid0 = _errs27 === errors
valid0 = valid0 || _valid0
if (!valid0) {
const _errs33 = errors
@@ -5456,6 +5711,27 @@ function validate11(data, { instancePath = '', parentData, parentDataProperty, r
}
var _valid0 = _errs38 === errors
valid0 = valid0 || _valid0
+ if (!valid0) {
+ const _errs39 = errors
+ if (
+ !validate66(data, {
+ instancePath,
+ parentData,
+ parentDataProperty,
+ rootData,
+ })
+ ) {
+ vErrors =
+ vErrors === null
+ ? validate66.errors
+ : vErrors.concat(
+ validate66.errors
+ )
+ errors = vErrors.length
+ }
+ var _valid0 = _errs39 === errors
+ valid0 = valid0 || _valid0
+ }
}
}
}
@@ -5504,9 +5780,9 @@ function validate11(data, { instancePath = '', parentData, parentDataProperty, r
validate11.errors = vErrors
return errors === 0
}
-export const WebAnalyticsPropertyFilters = validate66
-const schema56 = { items: { $ref: '#/definitions/WebAnalyticsPropertyFilter' }, type: 'array' }
-const schema57 = {
+export const WebAnalyticsPropertyFilters = validate69
+const schema58 = { items: { $ref: '#/definitions/WebAnalyticsPropertyFilter' }, type: 'array' }
+const schema59 = {
anyOf: [
{ $ref: '#/definitions/EventPropertyFilter' },
{ $ref: '#/definitions/PersonPropertyFilter' },
@@ -5514,7 +5790,7 @@ const schema57 = {
{ $ref: '#/definitions/CohortPropertyFilter' },
],
}
-function validate67(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate70(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
const _errs0 = errors
@@ -5536,16 +5812,16 @@ function validate67(data, { instancePath = '', parentData, parentDataProperty, r
valid0 = valid0 || _valid0
if (!valid0) {
const _errs3 = errors
- if (!validate25(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors)
+ if (!validate28(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate28.errors : vErrors.concat(validate28.errors)
errors = vErrors.length
}
var _valid0 = _errs3 === errors
valid0 = valid0 || _valid0
if (!valid0) {
const _errs4 = errors
- if (!validate28(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate28.errors : vErrors.concat(validate28.errors)
+ if (!validate31(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors)
errors = vErrors.length
}
var _valid0 = _errs4 === errors
@@ -5567,7 +5843,7 @@ function validate67(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err0)
}
errors++
- validate67.errors = vErrors
+ validate70.errors = vErrors
return false
} else {
errors = _errs0
@@ -5579,10 +5855,10 @@ function validate67(data, { instancePath = '', parentData, parentDataProperty, r
}
}
}
- validate67.errors = vErrors
+ validate70.errors = vErrors
return errors === 0
}
-function validate66(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate69(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -5592,14 +5868,14 @@ function validate66(data, { instancePath = '', parentData, parentDataProperty, r
for (let i0 = 0; i0 < len0; i0++) {
const _errs1 = errors
if (
- !validate67(data[i0], {
+ !validate70(data[i0], {
instancePath: instancePath + '/' + i0,
parentData: data,
parentDataProperty: i0,
rootData,
})
) {
- vErrors = vErrors === null ? validate67.errors : vErrors.concat(validate67.errors)
+ vErrors = vErrors === null ? validate70.errors : vErrors.concat(validate70.errors)
errors = vErrors.length
}
var valid0 = _errs1 === errors
@@ -5608,7 +5884,7 @@ function validate66(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate66.errors = [
+ validate69.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -5620,12 +5896,12 @@ function validate66(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate66.errors = vErrors
+ validate69.errors = vErrors
return errors === 0
}
-export const RevenueAnalyticsPropertyFilters = validate73
-const schema58 = { items: { $ref: '#/definitions/RevenueAnalyticsPropertyFilter' }, type: 'array' }
-function validate73(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+export const RevenueAnalyticsPropertyFilters = validate76
+const schema60 = { items: { $ref: '#/definitions/RevenueAnalyticsPropertyFilter' }, type: 'array' }
+function validate76(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -5635,14 +5911,14 @@ function validate73(data, { instancePath = '', parentData, parentDataProperty, r
for (let i0 = 0; i0 < len0; i0++) {
const _errs1 = errors
if (
- !validate60(data[i0], {
+ !validate63(data[i0], {
instancePath: instancePath + '/' + i0,
parentData: data,
parentDataProperty: i0,
rootData,
})
) {
- vErrors = vErrors === null ? validate60.errors : vErrors.concat(validate60.errors)
+ vErrors = vErrors === null ? validate63.errors : vErrors.concat(validate63.errors)
errors = vErrors.length
}
var valid0 = _errs1 === errors
@@ -5651,7 +5927,7 @@ function validate73(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate73.errors = [
+ validate76.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -5663,11 +5939,11 @@ function validate73(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate73.errors = vErrors
+ validate76.errors = vErrors
return errors === 0
}
-export const SessionPropertyFilter = validate75
-function validate75(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+export const SessionPropertyFilter = validate78
+function validate78(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -5678,7 +5954,7 @@ function validate75(data, { instancePath = '', parentData, parentDataProperty, r
(data.operator === undefined && (missing0 = 'operator')) ||
(data.type === undefined && (missing0 = 'type'))
) {
- validate75.errors = [
+ validate78.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -5700,7 +5976,7 @@ function validate75(data, { instancePath = '', parentData, parentDataProperty, r
key0 === 'value'
)
) {
- validate75.errors = [
+ validate78.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -5717,7 +5993,7 @@ function validate75(data, { instancePath = '', parentData, parentDataProperty, r
if (data.key !== undefined) {
const _errs2 = errors
if (typeof data.key !== 'string') {
- validate75.errors = [
+ validate78.errors = [
{
instancePath: instancePath + '/key',
schemaPath: '#/properties/key/type',
@@ -5736,7 +6012,7 @@ function validate75(data, { instancePath = '', parentData, parentDataProperty, r
if (data.label !== undefined) {
const _errs4 = errors
if (typeof data.label !== 'string') {
- validate75.errors = [
+ validate78.errors = [
{
instancePath: instancePath + '/label',
schemaPath: '#/properties/label/type',
@@ -5756,7 +6032,7 @@ function validate75(data, { instancePath = '', parentData, parentDataProperty, r
let data2 = data.operator
const _errs6 = errors
if (typeof data2 !== 'string') {
- validate75.errors = [
+ validate78.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/type',
@@ -5805,7 +6081,7 @@ function validate75(data, { instancePath = '', parentData, parentDataProperty, r
data2 === 'not_icontains_multi'
)
) {
- validate75.errors = [
+ validate78.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/enum',
@@ -5825,7 +6101,7 @@ function validate75(data, { instancePath = '', parentData, parentDataProperty, r
let data3 = data.type
const _errs9 = errors
if (typeof data3 !== 'string') {
- validate75.errors = [
+ validate78.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/type',
@@ -5837,7 +6113,7 @@ function validate75(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('session' !== data3) {
- validate75.errors = [
+ validate78.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/const',
@@ -5878,7 +6154,7 @@ function validate75(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate75.errors = [
+ validate78.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -5890,11 +6166,11 @@ function validate75(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate75.errors = vErrors
+ validate78.errors = vErrors
return errors === 0
}
-export const CompareFilter = validate77
-const schema61 = {
+export const CompareFilter = validate80
+const schema63 = {
additionalProperties: false,
properties: {
compare: {
@@ -5910,7 +6186,7 @@ const schema61 = {
},
type: 'object',
}
-function validate77(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate80(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -5918,7 +6194,7 @@ function validate77(data, { instancePath = '', parentData, parentDataProperty, r
const _errs1 = errors
for (const key0 in data) {
if (!(key0 === 'compare' || key0 === 'compare_to')) {
- validate77.errors = [
+ validate80.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -5935,7 +6211,7 @@ function validate77(data, { instancePath = '', parentData, parentDataProperty, r
if (data.compare !== undefined) {
const _errs2 = errors
if (typeof data.compare !== 'boolean') {
- validate77.errors = [
+ validate80.errors = [
{
instancePath: instancePath + '/compare',
schemaPath: '#/properties/compare/type',
@@ -5954,7 +6230,7 @@ function validate77(data, { instancePath = '', parentData, parentDataProperty, r
if (data.compare_to !== undefined) {
const _errs4 = errors
if (typeof data.compare_to !== 'string') {
- validate77.errors = [
+ validate80.errors = [
{
instancePath: instancePath + '/compare_to',
schemaPath: '#/properties/compare_to/type',
@@ -5972,7 +6248,7 @@ function validate77(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate77.errors = [
+ validate80.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -5984,11 +6260,11 @@ function validate77(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate77.errors = vErrors
+ validate80.errors = vErrors
return errors === 0
}
-export const ExperimentMetric = validate78
-const schema62 = {
+export const ExperimentMetric = validate81
+const schema64 = {
discriminator: { propertyName: 'metric_type' },
oneOf: [
{ $ref: '#/definitions/ExperimentMeanMetric' },
@@ -5999,7 +6275,7 @@ const schema62 = {
required: ['metric_type'],
type: 'object',
}
-const schema63 = {
+const schema65 = {
additionalProperties: false,
properties: {
breakdownFilter: { $ref: '#/definitions/BreakdownFilter' },
@@ -6040,11 +6316,11 @@ const schema63 = {
required: ['kind', 'metric_type', 'source'],
type: 'object',
}
-const schema65 = { type: 'integer' }
-const schema77 = { enum: ['second', 'minute', 'hour', 'day', 'week', 'month'], type: 'string' }
-const schema78 = { enum: ['increase', 'decrease'], type: 'string' }
+const schema67 = { type: 'integer' }
+const schema79 = { enum: ['second', 'minute', 'hour', 'day', 'week', 'month'], type: 'string' }
+const schema80 = { enum: ['increase', 'decrease'], type: 'string' }
const func2 = Object.prototype.hasOwnProperty
-const schema64 = {
+const schema66 = {
additionalProperties: false,
properties: {
breakdown: {
@@ -6066,7 +6342,7 @@ const schema64 = {
},
type: 'object',
}
-const schema70 = {
+const schema72 = {
enum: [
'cohort',
'person',
@@ -6081,7 +6357,7 @@ const schema70 = {
],
type: 'string',
}
-const schema71 = {
+const schema73 = {
additionalProperties: false,
properties: {
group_type_index: { anyOf: [{ $ref: '#/definitions/integer' }, { type: 'null' }] },
@@ -6093,7 +6369,7 @@ const schema71 = {
required: ['property'],
type: 'object',
}
-const schema75 = {
+const schema77 = {
enum: [
'person',
'event',
@@ -6108,14 +6384,14 @@ const schema75 = {
],
type: 'string',
}
-function validate81(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate84(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
if (data && typeof data == 'object' && !Array.isArray(data)) {
let missing0
if (data.property === undefined && (missing0 = 'property')) {
- validate81.errors = [
+ validate84.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -6137,7 +6413,7 @@ function validate81(data, { instancePath = '', parentData, parentDataProperty, r
key0 === 'type'
)
) {
- validate81.errors = [
+ validate84.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -6208,7 +6484,7 @@ function validate81(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err2)
}
errors++
- validate81.errors = vErrors
+ validate84.errors = vErrors
return false
} else {
errors = _errs3
@@ -6229,7 +6505,7 @@ function validate81(data, { instancePath = '', parentData, parentDataProperty, r
let data1 = data.histogram_bin_count
const _errs9 = errors
if (!(typeof data1 == 'number' && !(data1 % 1) && !isNaN(data1) && isFinite(data1))) {
- validate81.errors = [
+ validate84.errors = [
{
instancePath: instancePath + '/histogram_bin_count',
schemaPath: '#/definitions/integer/type',
@@ -6248,7 +6524,7 @@ function validate81(data, { instancePath = '', parentData, parentDataProperty, r
if (data.normalize_url !== undefined) {
const _errs12 = errors
if (typeof data.normalize_url !== 'boolean') {
- validate81.errors = [
+ validate84.errors = [
{
instancePath: instancePath + '/normalize_url',
schemaPath: '#/properties/normalize_url/type',
@@ -6328,7 +6604,7 @@ function validate81(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err5)
}
errors++
- validate81.errors = vErrors
+ validate84.errors = vErrors
return false
} else {
errors = _errs15
@@ -6384,7 +6660,7 @@ function validate81(data, { instancePath = '', parentData, parentDataProperty, r
instancePath: instancePath + '/type',
schemaPath: '#/definitions/MultipleBreakdownType/enum',
keyword: 'enum',
- params: { allowedValues: schema75.enum },
+ params: { allowedValues: schema77.enum },
message: 'must be equal to one of the allowed values',
}
if (vErrors === null) {
@@ -6430,7 +6706,7 @@ function validate81(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err9)
}
errors++
- validate81.errors = vErrors
+ validate84.errors = vErrors
return false
} else {
errors = _errs22
@@ -6453,7 +6729,7 @@ function validate81(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate81.errors = [
+ validate84.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -6465,18 +6741,18 @@ function validate81(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate81.errors = vErrors
+ validate84.errors = vErrors
return errors === 0
}
-function validate80(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate83(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
if (data && typeof data == 'object' && !Array.isArray(data)) {
const _errs1 = errors
for (const key0 in data) {
- if (!func2.call(schema64.properties, key0)) {
- validate80.errors = [
+ if (!func2.call(schema66.properties, key0)) {
+ validate83.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -6671,7 +6947,7 @@ function validate80(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err7)
}
errors++
- validate80.errors = vErrors
+ validate83.errors = vErrors
return false
} else {
errors = _errs3
@@ -6745,7 +7021,7 @@ function validate80(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err10)
}
errors++
- validate80.errors = vErrors
+ validate83.errors = vErrors
return false
} else {
errors = _errs21
@@ -6766,12 +7042,12 @@ function validate80(data, { instancePath = '', parentData, parentDataProperty, r
let data3 = data.breakdown_hide_other_aggregation
const _errs27 = errors
if (typeof data3 !== 'boolean' && data3 !== null) {
- validate80.errors = [
+ validate83.errors = [
{
instancePath: instancePath + '/breakdown_hide_other_aggregation',
schemaPath: '#/properties/breakdown_hide_other_aggregation/type',
keyword: 'type',
- params: { type: schema64.properties.breakdown_hide_other_aggregation.type },
+ params: { type: schema66.properties.breakdown_hide_other_aggregation.type },
message: 'must be boolean,null',
},
]
@@ -6786,7 +7062,7 @@ function validate80(data, { instancePath = '', parentData, parentDataProperty, r
let data4 = data.breakdown_histogram_bin_count
const _errs29 = errors
if (!(typeof data4 == 'number' && !(data4 % 1) && !isNaN(data4) && isFinite(data4))) {
- validate80.errors = [
+ validate83.errors = [
{
instancePath: instancePath + '/breakdown_histogram_bin_count',
schemaPath: '#/definitions/integer/type',
@@ -6808,7 +7084,7 @@ function validate80(data, { instancePath = '', parentData, parentDataProperty, r
if (
!(typeof data5 == 'number' && !(data5 % 1) && !isNaN(data5) && isFinite(data5))
) {
- validate80.errors = [
+ validate83.errors = [
{
instancePath: instancePath + '/breakdown_limit',
schemaPath: '#/definitions/integer/type',
@@ -6827,7 +7103,7 @@ function validate80(data, { instancePath = '', parentData, parentDataProperty, r
if (data.breakdown_normalize_url !== undefined) {
const _errs35 = errors
if (typeof data.breakdown_normalize_url !== 'boolean') {
- validate80.errors = [
+ validate83.errors = [
{
instancePath: instancePath + '/breakdown_normalize_url',
schemaPath: '#/properties/breakdown_normalize_url/type',
@@ -6846,7 +7122,7 @@ function validate80(data, { instancePath = '', parentData, parentDataProperty, r
if (data.breakdown_path_cleaning !== undefined) {
const _errs37 = errors
if (typeof data.breakdown_path_cleaning !== 'boolean') {
- validate80.errors = [
+ validate83.errors = [
{
instancePath: instancePath + '/breakdown_path_cleaning',
schemaPath: '#/properties/breakdown_path_cleaning/type',
@@ -6901,7 +7177,7 @@ function validate80(data, { instancePath = '', parentData, parentDataProperty, r
instancePath: instancePath + '/breakdown_type',
schemaPath: '#/definitions/BreakdownType/enum',
keyword: 'enum',
- params: { allowedValues: schema70.enum },
+ params: { allowedValues: schema72.enum },
message: 'must be equal to one of the allowed values',
}
if (vErrors === null) {
@@ -6947,7 +7223,7 @@ function validate80(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err14)
}
errors++
- validate80.errors = vErrors
+ validate83.errors = vErrors
return false
} else {
errors = _errs40
@@ -6970,7 +7246,7 @@ function validate80(data, { instancePath = '', parentData, parentDataProperty, r
if (errors === _errs46) {
if (Array.isArray(data9)) {
if (data9.length > 3) {
- validate80.errors = [
+ validate83.errors = [
{
instancePath: instancePath + '/breakdowns',
schemaPath: '#/properties/breakdowns/maxItems',
@@ -6986,7 +7262,7 @@ function validate80(data, { instancePath = '', parentData, parentDataProperty, r
for (let i1 = 0; i1 < len1; i1++) {
const _errs48 = errors
if (
- !validate81(data9[i1], {
+ !validate84(data9[i1], {
instancePath:
instancePath + '/breakdowns/' + i1,
parentData: data9,
@@ -6996,8 +7272,8 @@ function validate80(data, { instancePath = '', parentData, parentDataProperty, r
) {
vErrors =
vErrors === null
- ? validate81.errors
- : vErrors.concat(validate81.errors)
+ ? validate84.errors
+ : vErrors.concat(validate84.errors)
errors = vErrors.length
}
var valid12 = _errs48 === errors
@@ -7007,7 +7283,7 @@ function validate80(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate80.errors = [
+ validate83.errors = [
{
instancePath: instancePath + '/breakdowns',
schemaPath: '#/properties/breakdowns/type',
@@ -7033,7 +7309,7 @@ function validate80(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate80.errors = [
+ validate83.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -7045,10 +7321,10 @@ function validate80(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate80.errors = vErrors
+ validate83.errors = vErrors
return errors === 0
}
-const schema79 = {
+const schema81 = {
discriminator: { propertyName: 'kind' },
oneOf: [
{ $ref: '#/definitions/EventsNode' },
@@ -7058,7 +7334,7 @@ const schema79 = {
required: ['kind'],
type: 'object',
}
-const schema80 = {
+const schema82 = {
additionalProperties: false,
properties: {
custom_name: { type: 'string' },
@@ -7092,7 +7368,7 @@ const schema80 = {
required: ['kind'],
type: 'object',
}
-const schema82 = {
+const schema84 = {
anyOf: [
{ $ref: '#/definitions/BaseMathType' },
{ $ref: '#/definitions/FunnelMathType' },
@@ -7104,7 +7380,7 @@ const schema82 = {
{ $ref: '#/definitions/CalendarHeatmapMathType' },
],
}
-const schema83 = {
+const schema85 = {
enum: [
'total',
'dau',
@@ -7116,9 +7392,9 @@ const schema83 = {
],
type: 'string',
}
-const schema84 = { enum: ['total', 'first_time_for_user', 'first_time_for_user_with_filters'], type: 'string' }
-const schema85 = { enum: ['avg', 'sum', 'min', 'max', 'median', 'p75', 'p90', 'p95', 'p99'], type: 'string' }
-const schema86 = {
+const schema86 = { enum: ['total', 'first_time_for_user', 'first_time_for_user_with_filters'], type: 'string' }
+const schema87 = { enum: ['avg', 'sum', 'min', 'max', 'median', 'p75', 'p90', 'p95', 'p99'], type: 'string' }
+const schema88 = {
enum: [
'avg_count_per_actor',
'min_count_per_actor',
@@ -7131,14 +7407,14 @@ const schema86 = {
],
type: 'string',
}
-const schema87 = { const: 'unique_group', type: 'string' }
-const schema88 = { const: 'hogql', type: 'string' }
-const schema89 = {
+const schema89 = { const: 'unique_group', type: 'string' }
+const schema90 = { const: 'hogql', type: 'string' }
+const schema91 = {
enum: ['total', 'sum', 'unique_session', 'min', 'max', 'avg', 'dau', 'unique_group', 'hogql'],
type: 'string',
}
-const schema90 = { enum: ['total', 'dau'], type: 'string' }
-function validate87(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+const schema92 = { enum: ['total', 'dau'], type: 'string' }
+function validate90(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
const _errs0 = errors
@@ -7174,7 +7450,7 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
instancePath,
schemaPath: '#/definitions/BaseMathType/enum',
keyword: 'enum',
- params: { allowedValues: schema83.enum },
+ params: { allowedValues: schema85.enum },
message: 'must be equal to one of the allowed values',
}
if (vErrors === null) {
@@ -7208,7 +7484,7 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
instancePath,
schemaPath: '#/definitions/FunnelMathType/enum',
keyword: 'enum',
- params: { allowedValues: schema84.enum },
+ params: { allowedValues: schema86.enum },
message: 'must be equal to one of the allowed values',
}
if (vErrors === null) {
@@ -7254,7 +7530,7 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
instancePath,
schemaPath: '#/definitions/PropertyMathType/enum',
keyword: 'enum',
- params: { allowedValues: schema85.enum },
+ params: { allowedValues: schema87.enum },
message: 'must be equal to one of the allowed values',
}
if (vErrors === null) {
@@ -7299,7 +7575,7 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
instancePath,
schemaPath: '#/definitions/CountPerActorMathType/enum',
keyword: 'enum',
- params: { allowedValues: schema86.enum },
+ params: { allowedValues: schema88.enum },
message: 'must be equal to one of the allowed values',
}
if (vErrors === null) {
@@ -7413,7 +7689,7 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
instancePath,
schemaPath: '#/definitions/ExperimentMetricMathType/enum',
keyword: 'enum',
- params: { allowedValues: schema89.enum },
+ params: { allowedValues: schema91.enum },
message: 'must be equal to one of the allowed values',
}
if (vErrors === null) {
@@ -7447,7 +7723,7 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
instancePath,
schemaPath: '#/definitions/CalendarHeatmapMathType/enum',
keyword: 'enum',
- params: { allowedValues: schema90.enum },
+ params: { allowedValues: schema92.enum },
message: 'must be equal to one of the allowed values',
}
if (vErrors === null) {
@@ -7480,7 +7756,7 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err16)
}
errors++
- validate87.errors = vErrors
+ validate90.errors = vErrors
return false
} else {
errors = _errs0
@@ -7492,15 +7768,15 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
}
}
}
- validate87.errors = vErrors
+ validate90.errors = vErrors
return errors === 0
}
-const schema91 = {
+const schema93 = {
additionalProperties: false,
properties: { property: { type: 'string' }, static: { $ref: '#/definitions/CurrencyCode' } },
type: 'object',
}
-const schema92 = {
+const schema94 = {
enum: [
'AED',
'AFN',
@@ -7657,7 +7933,7 @@ const schema92 = {
],
type: 'string',
}
-function validate89(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate92(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -7665,7 +7941,7 @@ function validate89(data, { instancePath = '', parentData, parentDataProperty, r
const _errs1 = errors
for (const key0 in data) {
if (!(key0 === 'property' || key0 === 'static')) {
- validate89.errors = [
+ validate92.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -7682,7 +7958,7 @@ function validate89(data, { instancePath = '', parentData, parentDataProperty, r
if (data.property !== undefined) {
const _errs2 = errors
if (typeof data.property !== 'string') {
- validate89.errors = [
+ validate92.errors = [
{
instancePath: instancePath + '/property',
schemaPath: '#/properties/property/type',
@@ -7702,7 +7978,7 @@ function validate89(data, { instancePath = '', parentData, parentDataProperty, r
let data1 = data.static
const _errs4 = errors
if (typeof data1 !== 'string') {
- validate89.errors = [
+ validate92.errors = [
{
instancePath: instancePath + '/static',
schemaPath: '#/definitions/CurrencyCode/type',
@@ -7869,12 +8145,12 @@ function validate89(data, { instancePath = '', parentData, parentDataProperty, r
data1 === 'ZMW'
)
) {
- validate89.errors = [
+ validate92.errors = [
{
instancePath: instancePath + '/static',
schemaPath: '#/definitions/CurrencyCode/enum',
keyword: 'enum',
- params: { allowedValues: schema92.enum },
+ params: { allowedValues: schema94.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -7887,7 +8163,7 @@ function validate89(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate89.errors = [
+ validate92.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -7899,17 +8175,17 @@ function validate89(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate89.errors = vErrors
+ validate92.errors = vErrors
return errors === 0
}
-function validate85(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate88(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
if (data && typeof data == 'object' && !Array.isArray(data)) {
let missing0
if (data.kind === undefined && (missing0 = 'kind')) {
- validate85.errors = [
+ validate88.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -7922,8 +8198,8 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
} else {
const _errs1 = errors
for (const key0 in data) {
- if (!func2.call(schema80.properties, key0)) {
- validate85.errors = [
+ if (!func2.call(schema82.properties, key0)) {
+ validate88.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -7940,7 +8216,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
if (data.custom_name !== undefined) {
const _errs2 = errors
if (typeof data.custom_name !== 'string') {
- validate85.errors = [
+ validate88.errors = [
{
instancePath: instancePath + '/custom_name',
schemaPath: '#/properties/custom_name/type',
@@ -7960,12 +8236,12 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
let data1 = data.event
const _errs4 = errors
if (typeof data1 !== 'string' && data1 !== null) {
- validate85.errors = [
+ validate88.errors = [
{
instancePath: instancePath + '/event',
schemaPath: '#/properties/event/type',
keyword: 'type',
- params: { type: schema80.properties.event.type },
+ params: { type: schema82.properties.event.type },
message: 'must be string,null',
},
]
@@ -8005,7 +8281,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate85.errors = [
+ validate88.errors = [
{
instancePath: instancePath + '/fixedProperties',
schemaPath: '#/properties/fixedProperties/type',
@@ -8026,7 +8302,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
let data4 = data.kind
const _errs9 = errors
if (typeof data4 !== 'string') {
- validate85.errors = [
+ validate88.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/type',
@@ -8038,7 +8314,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('EventsNode' !== data4) {
- validate85.errors = [
+ validate88.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/const',
@@ -8065,7 +8341,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
isFinite(data5)
)
) {
- validate85.errors = [
+ validate88.errors = [
{
instancePath: instancePath + '/limit',
schemaPath: '#/definitions/integer/type',
@@ -8084,7 +8360,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math !== undefined) {
const _errs14 = errors
if (
- !validate87(data.math, {
+ !validate90(data.math, {
instancePath: instancePath + '/math',
parentData: data,
parentDataProperty: 'math',
@@ -8093,8 +8369,8 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
) {
vErrors =
vErrors === null
- ? validate87.errors
- : vErrors.concat(validate87.errors)
+ ? validate90.errors
+ : vErrors.concat(validate90.errors)
errors = vErrors.length
}
var valid0 = _errs14 === errors
@@ -8106,7 +8382,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
let data7 = data.math_group_type_index
const _errs15 = errors
if (!(typeof data7 == 'number' && isFinite(data7))) {
- validate85.errors = [
+ validate88.errors = [
{
instancePath: instancePath + '/math_group_type_index',
schemaPath: '#/properties/math_group_type_index/type',
@@ -8126,14 +8402,14 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
data7 === 4
)
) {
- validate85.errors = [
+ validate88.errors = [
{
instancePath: instancePath + '/math_group_type_index',
schemaPath: '#/properties/math_group_type_index/enum',
keyword: 'enum',
params: {
allowedValues:
- schema80.properties.math_group_type_index.enum,
+ schema82.properties.math_group_type_index.enum,
},
message: 'must be equal to one of the allowed values',
},
@@ -8148,7 +8424,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math_hogql !== undefined) {
const _errs17 = errors
if (typeof data.math_hogql !== 'string') {
- validate85.errors = [
+ validate88.errors = [
{
instancePath: instancePath + '/math_hogql',
schemaPath: '#/properties/math_hogql/type',
@@ -8168,7 +8444,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
let data9 = data.math_multiplier
const _errs19 = errors
if (!(typeof data9 == 'number' && isFinite(data9))) {
- validate85.errors = [
+ validate88.errors = [
{
instancePath: instancePath + '/math_multiplier',
schemaPath: '#/properties/math_multiplier/type',
@@ -8187,7 +8463,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math_property !== undefined) {
const _errs21 = errors
if (typeof data.math_property !== 'string') {
- validate85.errors = [
+ validate88.errors = [
{
instancePath: instancePath + '/math_property',
schemaPath: '#/properties/math_property/type',
@@ -8206,7 +8482,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math_property_revenue_currency !== undefined) {
const _errs23 = errors
if (
- !validate89(data.math_property_revenue_currency, {
+ !validate92(data.math_property_revenue_currency, {
instancePath:
instancePath +
'/math_property_revenue_currency',
@@ -8218,8 +8494,8 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
) {
vErrors =
vErrors === null
- ? validate89.errors
- : vErrors.concat(validate89.errors)
+ ? validate92.errors
+ : vErrors.concat(validate92.errors)
errors = vErrors.length
}
var valid0 = _errs23 === errors
@@ -8230,7 +8506,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math_property_type !== undefined) {
const _errs24 = errors
if (typeof data.math_property_type !== 'string') {
- validate85.errors = [
+ validate88.errors = [
{
instancePath:
instancePath +
@@ -8252,7 +8528,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
if (data.name !== undefined) {
const _errs26 = errors
if (typeof data.name !== 'string') {
- validate85.errors = [
+ validate88.errors = [
{
instancePath:
instancePath + '/name',
@@ -8276,7 +8552,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
typeof data.optionalInFunnel !==
'boolean'
) {
- validate85.errors = [
+ validate88.errors = [
{
instancePath:
instancePath +
@@ -8312,7 +8588,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
typeof data15[i1] !==
'string'
) {
- validate85.errors = [
+ validate88.errors = [
{
instancePath:
instancePath +
@@ -8337,7 +8613,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate85.errors = [
+ validate88.errors = [
{
instancePath:
instancePath +
@@ -8405,7 +8681,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate85.errors = [
+ validate88.errors = [
{
instancePath:
instancePath +
@@ -8439,7 +8715,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
!Array.isArray(data19)
)
) {
- validate85.errors = [
+ validate88.errors = [
{
instancePath:
instancePath +
@@ -8473,7 +8749,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
isFinite(data20)
)
) {
- validate85.errors = [
+ validate88.errors = [
{
instancePath:
instancePath +
@@ -8515,7 +8791,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate85.errors = [
+ validate88.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -8527,10 +8803,10 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate85.errors = vErrors
+ validate88.errors = vErrors
return errors === 0
}
-const schema93 = {
+const schema95 = {
additionalProperties: false,
properties: {
custom_name: { type: 'string' },
@@ -8562,14 +8838,14 @@ const schema93 = {
required: ['id', 'kind'],
type: 'object',
}
-function validate93(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate96(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
if (data && typeof data == 'object' && !Array.isArray(data)) {
let missing0
if ((data.id === undefined && (missing0 = 'id')) || (data.kind === undefined && (missing0 = 'kind'))) {
- validate93.errors = [
+ validate96.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -8582,8 +8858,8 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
} else {
const _errs1 = errors
for (const key0 in data) {
- if (!func2.call(schema93.properties, key0)) {
- validate93.errors = [
+ if (!func2.call(schema95.properties, key0)) {
+ validate96.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -8600,7 +8876,7 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
if (data.custom_name !== undefined) {
const _errs2 = errors
if (typeof data.custom_name !== 'string') {
- validate93.errors = [
+ validate96.errors = [
{
instancePath: instancePath + '/custom_name',
schemaPath: '#/properties/custom_name/type',
@@ -8643,7 +8919,7 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate93.errors = [
+ validate96.errors = [
{
instancePath: instancePath + '/fixedProperties',
schemaPath: '#/properties/fixedProperties/type',
@@ -8664,7 +8940,7 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
let data3 = data.id
const _errs7 = errors
if (!(typeof data3 == 'number' && !(data3 % 1) && !isNaN(data3) && isFinite(data3))) {
- validate93.errors = [
+ validate96.errors = [
{
instancePath: instancePath + '/id',
schemaPath: '#/definitions/integer/type',
@@ -8684,7 +8960,7 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
let data4 = data.kind
const _errs10 = errors
if (typeof data4 !== 'string') {
- validate93.errors = [
+ validate96.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/type',
@@ -8696,7 +8972,7 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('ActionsNode' !== data4) {
- validate93.errors = [
+ validate96.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/const',
@@ -8715,7 +8991,7 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math !== undefined) {
const _errs12 = errors
if (
- !validate87(data.math, {
+ !validate90(data.math, {
instancePath: instancePath + '/math',
parentData: data,
parentDataProperty: 'math',
@@ -8723,7 +8999,7 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
})
) {
vErrors =
- vErrors === null ? validate87.errors : vErrors.concat(validate87.errors)
+ vErrors === null ? validate90.errors : vErrors.concat(validate90.errors)
errors = vErrors.length
}
var valid0 = _errs12 === errors
@@ -8735,7 +9011,7 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
let data6 = data.math_group_type_index
const _errs13 = errors
if (!(typeof data6 == 'number' && isFinite(data6))) {
- validate93.errors = [
+ validate96.errors = [
{
instancePath: instancePath + '/math_group_type_index',
schemaPath: '#/properties/math_group_type_index/type',
@@ -8755,14 +9031,14 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
data6 === 4
)
) {
- validate93.errors = [
+ validate96.errors = [
{
instancePath: instancePath + '/math_group_type_index',
schemaPath: '#/properties/math_group_type_index/enum',
keyword: 'enum',
params: {
allowedValues:
- schema93.properties.math_group_type_index.enum,
+ schema95.properties.math_group_type_index.enum,
},
message: 'must be equal to one of the allowed values',
},
@@ -8777,7 +9053,7 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math_hogql !== undefined) {
const _errs15 = errors
if (typeof data.math_hogql !== 'string') {
- validate93.errors = [
+ validate96.errors = [
{
instancePath: instancePath + '/math_hogql',
schemaPath: '#/properties/math_hogql/type',
@@ -8797,7 +9073,7 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
let data8 = data.math_multiplier
const _errs17 = errors
if (!(typeof data8 == 'number' && isFinite(data8))) {
- validate93.errors = [
+ validate96.errors = [
{
instancePath: instancePath + '/math_multiplier',
schemaPath: '#/properties/math_multiplier/type',
@@ -8816,7 +9092,7 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math_property !== undefined) {
const _errs19 = errors
if (typeof data.math_property !== 'string') {
- validate93.errors = [
+ validate96.errors = [
{
instancePath: instancePath + '/math_property',
schemaPath: '#/properties/math_property/type',
@@ -8835,7 +9111,7 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math_property_revenue_currency !== undefined) {
const _errs21 = errors
if (
- !validate89(data.math_property_revenue_currency, {
+ !validate92(data.math_property_revenue_currency, {
instancePath:
instancePath +
'/math_property_revenue_currency',
@@ -8847,8 +9123,8 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
) {
vErrors =
vErrors === null
- ? validate89.errors
- : vErrors.concat(validate89.errors)
+ ? validate92.errors
+ : vErrors.concat(validate92.errors)
errors = vErrors.length
}
var valid0 = _errs21 === errors
@@ -8859,7 +9135,7 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math_property_type !== undefined) {
const _errs22 = errors
if (typeof data.math_property_type !== 'string') {
- validate93.errors = [
+ validate96.errors = [
{
instancePath:
instancePath + '/math_property_type',
@@ -8880,7 +9156,7 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
if (data.name !== undefined) {
const _errs24 = errors
if (typeof data.name !== 'string') {
- validate93.errors = [
+ validate96.errors = [
{
instancePath: instancePath + '/name',
schemaPath: '#/properties/name/type',
@@ -8901,7 +9177,7 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
if (
typeof data.optionalInFunnel !== 'boolean'
) {
- validate93.errors = [
+ validate96.errors = [
{
instancePath:
instancePath +
@@ -8954,7 +9230,7 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate93.errors = [
+ validate96.errors = [
{
instancePath:
instancePath +
@@ -8984,7 +9260,7 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
!Array.isArray(data16)
)
) {
- validate93.errors = [
+ validate96.errors = [
{
instancePath:
instancePath +
@@ -9012,7 +9288,7 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
isFinite(data17)
)
) {
- validate93.errors = [
+ validate96.errors = [
{
instancePath:
instancePath +
@@ -9051,7 +9327,7 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate93.errors = [
+ validate96.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -9063,10 +9339,10 @@ function validate93(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate93.errors = vErrors
+ validate96.errors = vErrors
return errors === 0
}
-const schema95 = {
+const schema97 = {
additionalProperties: false,
properties: {
custom_name: { type: 'string' },
@@ -9101,7 +9377,7 @@ const schema95 = {
required: ['data_warehouse_join_key', 'events_join_key', 'kind', 'table_name', 'timestamp_field'],
type: 'object',
}
-function validate99(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate102(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -9114,7 +9390,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
(data.table_name === undefined && (missing0 = 'table_name')) ||
(data.timestamp_field === undefined && (missing0 = 'timestamp_field'))
) {
- validate99.errors = [
+ validate102.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -9127,8 +9403,8 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
} else {
const _errs1 = errors
for (const key0 in data) {
- if (!func2.call(schema95.properties, key0)) {
- validate99.errors = [
+ if (!func2.call(schema97.properties, key0)) {
+ validate102.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -9145,7 +9421,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
if (data.custom_name !== undefined) {
const _errs2 = errors
if (typeof data.custom_name !== 'string') {
- validate99.errors = [
+ validate102.errors = [
{
instancePath: instancePath + '/custom_name',
schemaPath: '#/properties/custom_name/type',
@@ -9164,7 +9440,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
if (data.data_warehouse_join_key !== undefined) {
const _errs4 = errors
if (typeof data.data_warehouse_join_key !== 'string') {
- validate99.errors = [
+ validate102.errors = [
{
instancePath: instancePath + '/data_warehouse_join_key',
schemaPath: '#/properties/data_warehouse_join_key/type',
@@ -9183,7 +9459,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
if (data.events_join_key !== undefined) {
const _errs6 = errors
if (typeof data.events_join_key !== 'string') {
- validate99.errors = [
+ validate102.errors = [
{
instancePath: instancePath + '/events_join_key',
schemaPath: '#/properties/events_join_key/type',
@@ -9228,7 +9504,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate99.errors = [
+ validate102.errors = [
{
instancePath: instancePath + '/fixedProperties',
schemaPath: '#/properties/fixedProperties/type',
@@ -9249,7 +9525,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
let data5 = data.kind
const _errs11 = errors
if (typeof data5 !== 'string') {
- validate99.errors = [
+ validate102.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/type',
@@ -9261,7 +9537,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('ExperimentDataWarehouseNode' !== data5) {
- validate99.errors = [
+ validate102.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/const',
@@ -9280,7 +9556,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math !== undefined) {
const _errs13 = errors
if (
- !validate87(data.math, {
+ !validate90(data.math, {
instancePath: instancePath + '/math',
parentData: data,
parentDataProperty: 'math',
@@ -9289,8 +9565,8 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
) {
vErrors =
vErrors === null
- ? validate87.errors
- : vErrors.concat(validate87.errors)
+ ? validate90.errors
+ : vErrors.concat(validate90.errors)
errors = vErrors.length
}
var valid0 = _errs13 === errors
@@ -9302,7 +9578,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
let data7 = data.math_group_type_index
const _errs14 = errors
if (!(typeof data7 == 'number' && isFinite(data7))) {
- validate99.errors = [
+ validate102.errors = [
{
instancePath: instancePath + '/math_group_type_index',
schemaPath: '#/properties/math_group_type_index/type',
@@ -9322,14 +9598,14 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
data7 === 4
)
) {
- validate99.errors = [
+ validate102.errors = [
{
instancePath: instancePath + '/math_group_type_index',
schemaPath: '#/properties/math_group_type_index/enum',
keyword: 'enum',
params: {
allowedValues:
- schema95.properties.math_group_type_index.enum,
+ schema97.properties.math_group_type_index.enum,
},
message: 'must be equal to one of the allowed values',
},
@@ -9344,7 +9620,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math_hogql !== undefined) {
const _errs16 = errors
if (typeof data.math_hogql !== 'string') {
- validate99.errors = [
+ validate102.errors = [
{
instancePath: instancePath + '/math_hogql',
schemaPath: '#/properties/math_hogql/type',
@@ -9364,7 +9640,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
let data9 = data.math_multiplier
const _errs18 = errors
if (!(typeof data9 == 'number' && isFinite(data9))) {
- validate99.errors = [
+ validate102.errors = [
{
instancePath: instancePath + '/math_multiplier',
schemaPath: '#/properties/math_multiplier/type',
@@ -9383,7 +9659,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math_property !== undefined) {
const _errs20 = errors
if (typeof data.math_property !== 'string') {
- validate99.errors = [
+ validate102.errors = [
{
instancePath: instancePath + '/math_property',
schemaPath: '#/properties/math_property/type',
@@ -9402,7 +9678,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math_property_revenue_currency !== undefined) {
const _errs22 = errors
if (
- !validate89(data.math_property_revenue_currency, {
+ !validate92(data.math_property_revenue_currency, {
instancePath:
instancePath +
'/math_property_revenue_currency',
@@ -9414,8 +9690,8 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
) {
vErrors =
vErrors === null
- ? validate89.errors
- : vErrors.concat(validate89.errors)
+ ? validate92.errors
+ : vErrors.concat(validate92.errors)
errors = vErrors.length
}
var valid0 = _errs22 === errors
@@ -9426,7 +9702,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math_property_type !== undefined) {
const _errs23 = errors
if (typeof data.math_property_type !== 'string') {
- validate99.errors = [
+ validate102.errors = [
{
instancePath:
instancePath +
@@ -9448,7 +9724,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
if (data.name !== undefined) {
const _errs25 = errors
if (typeof data.name !== 'string') {
- validate99.errors = [
+ validate102.errors = [
{
instancePath:
instancePath + '/name',
@@ -9472,7 +9748,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
typeof data.optionalInFunnel !==
'boolean'
) {
- validate99.errors = [
+ validate102.errors = [
{
instancePath:
instancePath +
@@ -9535,7 +9811,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate99.errors = [
+ validate102.errors = [
{
instancePath:
instancePath +
@@ -9568,7 +9844,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
!Array.isArray(data17)
)
) {
- validate99.errors = [
+ validate102.errors = [
{
instancePath:
instancePath +
@@ -9596,7 +9872,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
typeof data.table_name !==
'string'
) {
- validate99.errors = [
+ validate102.errors = [
{
instancePath:
instancePath +
@@ -9627,7 +9903,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
typeof data.timestamp_field !==
'string'
) {
- validate99.errors = [
+ validate102.errors = [
{
instancePath:
instancePath +
@@ -9664,7 +9940,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
isFinite(data20)
)
) {
- validate99.errors =
+ validate102.errors =
[
{
instancePath:
@@ -9709,7 +9985,7 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate99.errors = [
+ validate102.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -9721,18 +9997,18 @@ function validate99(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate99.errors = vErrors
+ validate102.errors = vErrors
return errors === 0
}
-function validate84(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate87(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
const _errs1 = errors
let valid0 = false
let passing0 = null
const _errs2 = errors
- if (!validate85(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate85.errors : vErrors.concat(validate85.errors)
+ if (!validate88(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate88.errors : vErrors.concat(validate88.errors)
errors = vErrors.length
}
var _valid0 = _errs2 === errors
@@ -9741,8 +10017,8 @@ function validate84(data, { instancePath = '', parentData, parentDataProperty, r
passing0 = 0
}
const _errs3 = errors
- if (!validate93(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate93.errors : vErrors.concat(validate93.errors)
+ if (!validate96(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate96.errors : vErrors.concat(validate96.errors)
errors = vErrors.length
}
var _valid0 = _errs3 === errors
@@ -9755,8 +10031,8 @@ function validate84(data, { instancePath = '', parentData, parentDataProperty, r
passing0 = 1
}
const _errs4 = errors
- if (!validate99(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate99.errors : vErrors.concat(validate99.errors)
+ if (!validate102(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate102.errors : vErrors.concat(validate102.errors)
errors = vErrors.length
}
var _valid0 = _errs4 === errors
@@ -9784,7 +10060,7 @@ function validate84(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err0)
}
errors++
- validate84.errors = vErrors
+ validate87.errors = vErrors
return false
} else {
errors = _errs1
@@ -9800,7 +10076,7 @@ function validate84(data, { instancePath = '', parentData, parentDataProperty, r
if (data && typeof data == 'object' && !Array.isArray(data)) {
let missing0
if (data.kind === undefined && (missing0 = 'kind')) {
- validate84.errors = [
+ validate87.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -9812,7 +10088,7 @@ function validate84(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
} else {
- validate84.errors = [
+ validate87.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -9824,10 +10100,10 @@ function validate84(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate84.errors = vErrors
+ validate87.errors = vErrors
return errors === 0
}
-function validate79(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate82(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -9838,7 +10114,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
(data.metric_type === undefined && (missing0 = 'metric_type')) ||
(data.source === undefined && (missing0 = 'source'))
) {
- validate79.errors = [
+ validate82.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -9851,8 +10127,8 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
} else {
const _errs1 = errors
for (const key0 in data) {
- if (!func2.call(schema63.properties, key0)) {
- validate79.errors = [
+ if (!func2.call(schema65.properties, key0)) {
+ validate82.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -9869,14 +10145,14 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
if (data.breakdownFilter !== undefined) {
const _errs2 = errors
if (
- !validate80(data.breakdownFilter, {
+ !validate83(data.breakdownFilter, {
instancePath: instancePath + '/breakdownFilter',
parentData: data,
parentDataProperty: 'breakdownFilter',
rootData,
})
) {
- vErrors = vErrors === null ? validate80.errors : vErrors.concat(validate80.errors)
+ vErrors = vErrors === null ? validate83.errors : vErrors.concat(validate83.errors)
errors = vErrors.length
}
var valid0 = _errs2 === errors
@@ -9888,7 +10164,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
let data1 = data.conversion_window
const _errs3 = errors
if (!(typeof data1 == 'number' && !(data1 % 1) && !isNaN(data1) && isFinite(data1))) {
- validate79.errors = [
+ validate82.errors = [
{
instancePath: instancePath + '/conversion_window',
schemaPath: '#/definitions/integer/type',
@@ -9908,7 +10184,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
let data2 = data.conversion_window_unit
const _errs6 = errors
if (typeof data2 !== 'string') {
- validate79.errors = [
+ validate82.errors = [
{
instancePath: instancePath + '/conversion_window_unit',
schemaPath: '#/definitions/FunnelConversionWindowTimeUnit/type',
@@ -9929,12 +10205,12 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
data2 === 'month'
)
) {
- validate79.errors = [
+ validate82.errors = [
{
instancePath: instancePath + '/conversion_window_unit',
schemaPath: '#/definitions/FunnelConversionWindowTimeUnit/enum',
keyword: 'enum',
- params: { allowedValues: schema77.enum },
+ params: { allowedValues: schema79.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -9948,7 +10224,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
if (data.fingerprint !== undefined) {
const _errs9 = errors
if (typeof data.fingerprint !== 'string') {
- validate79.errors = [
+ validate82.errors = [
{
instancePath: instancePath + '/fingerprint',
schemaPath: '#/properties/fingerprint/type',
@@ -9968,7 +10244,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
let data4 = data.goal
const _errs11 = errors
if (typeof data4 !== 'string') {
- validate79.errors = [
+ validate82.errors = [
{
instancePath: instancePath + '/goal',
schemaPath: '#/definitions/ExperimentMetricGoal/type',
@@ -9980,12 +10256,12 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if (!(data4 === 'increase' || data4 === 'decrease')) {
- validate79.errors = [
+ validate82.errors = [
{
instancePath: instancePath + '/goal',
schemaPath: '#/definitions/ExperimentMetricGoal/enum',
keyword: 'enum',
- params: { allowedValues: schema78.enum },
+ params: { allowedValues: schema80.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -9999,7 +10275,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
if (data.ignore_zeros !== undefined) {
const _errs14 = errors
if (typeof data.ignore_zeros !== 'boolean') {
- validate79.errors = [
+ validate82.errors = [
{
instancePath: instancePath + '/ignore_zeros',
schemaPath: '#/properties/ignore_zeros/type',
@@ -10018,7 +10294,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
if (data.isSharedMetric !== undefined) {
const _errs16 = errors
if (typeof data.isSharedMetric !== 'boolean') {
- validate79.errors = [
+ validate82.errors = [
{
instancePath: instancePath + '/isSharedMetric',
schemaPath: '#/properties/isSharedMetric/type',
@@ -10038,7 +10314,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
let data7 = data.kind
const _errs18 = errors
if (typeof data7 !== 'string') {
- validate79.errors = [
+ validate82.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/type',
@@ -10050,7 +10326,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('ExperimentMetric' !== data7) {
- validate79.errors = [
+ validate82.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/const',
@@ -10072,7 +10348,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
if (errors === _errs20) {
if (typeof data8 == 'number' && isFinite(data8)) {
if (data8 > 1 || isNaN(data8)) {
- validate79.errors = [
+ validate82.errors = [
{
instancePath:
instancePath +
@@ -10087,7 +10363,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
return false
} else {
if (data8 < 0 || isNaN(data8)) {
- validate79.errors = [
+ validate82.errors = [
{
instancePath:
instancePath +
@@ -10103,7 +10379,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate79.errors = [
+ validate82.errors = [
{
instancePath:
instancePath + '/lower_bound_percentile',
@@ -10126,7 +10402,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
let data9 = data.metric_type
const _errs22 = errors
if (typeof data9 !== 'string') {
- validate79.errors = [
+ validate82.errors = [
{
instancePath: instancePath + '/metric_type',
schemaPath: '#/properties/metric_type/type',
@@ -10138,7 +10414,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('mean' !== data9) {
- validate79.errors = [
+ validate82.errors = [
{
instancePath: instancePath + '/metric_type',
schemaPath: '#/properties/metric_type/const',
@@ -10157,7 +10433,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
if (data.name !== undefined) {
const _errs24 = errors
if (typeof data.name !== 'string') {
- validate79.errors = [
+ validate82.errors = [
{
instancePath: instancePath + '/name',
schemaPath: '#/properties/name/type',
@@ -10183,7 +10459,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
!Array.isArray(data11)
)
) {
- validate79.errors = [
+ validate82.errors = [
{
instancePath:
instancePath + '/response',
@@ -10210,7 +10486,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
isFinite(data12)
)
) {
- validate79.errors = [
+ validate82.errors = [
{
instancePath:
instancePath +
@@ -10232,7 +10508,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
if (data.source !== undefined) {
const _errs30 = errors
if (
- !validate84(data.source, {
+ !validate87(data.source, {
instancePath:
instancePath + '/source',
parentData: data,
@@ -10242,9 +10518,9 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
) {
vErrors =
vErrors === null
- ? validate84.errors
+ ? validate87.errors
: vErrors.concat(
- validate84.errors
+ validate87.errors
)
errors = vErrors.length
}
@@ -10262,7 +10538,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
isFinite(data14)
)
) {
- validate79.errors = [
+ validate82.errors = [
{
instancePath:
instancePath +
@@ -10297,7 +10573,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
data15 > 1 ||
isNaN(data15)
) {
- validate79.errors = [
+ validate82.errors = [
{
instancePath:
instancePath +
@@ -10321,7 +10597,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
data15 < 0 ||
isNaN(data15)
) {
- validate79.errors =
+ validate82.errors =
[
{
instancePath:
@@ -10344,7 +10620,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate79.errors = [
+ validate82.errors = [
{
instancePath:
instancePath +
@@ -10373,7 +10649,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
typeof data.uuid !==
'string'
) {
- validate79.errors = [
+ validate82.errors = [
{
instancePath:
instancePath +
@@ -10407,7 +10683,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
isFinite(data17)
)
) {
- validate79.errors = [
+ validate82.errors = [
{
instancePath:
instancePath +
@@ -10449,7 +10725,7 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate79.errors = [
+ validate82.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -10461,10 +10737,10 @@ function validate79(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate79.errors = vErrors
+ validate82.errors = vErrors
return errors === 0
}
-const schema96 = {
+const schema98 = {
additionalProperties: false,
properties: {
breakdownFilter: { $ref: '#/definitions/BreakdownFilter' },
@@ -10486,8 +10762,8 @@ const schema96 = {
required: ['kind', 'metric_type', 'series'],
type: 'object',
}
-const schema99 = { enum: ['strict', 'unordered', 'ordered'], type: 'string' }
-const schema101 = {
+const schema101 = { enum: ['strict', 'unordered', 'ordered'], type: 'string' }
+const schema103 = {
discriminator: { propertyName: 'kind' },
oneOf: [
{ $ref: '#/definitions/EventsNode' },
@@ -10497,15 +10773,15 @@ const schema101 = {
required: ['kind'],
type: 'object',
}
-function validate109(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate112(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
const _errs1 = errors
let valid0 = false
let passing0 = null
const _errs2 = errors
- if (!validate85(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate85.errors : vErrors.concat(validate85.errors)
+ if (!validate88(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate88.errors : vErrors.concat(validate88.errors)
errors = vErrors.length
}
var _valid0 = _errs2 === errors
@@ -10514,8 +10790,8 @@ function validate109(data, { instancePath = '', parentData, parentDataProperty,
passing0 = 0
}
const _errs3 = errors
- if (!validate93(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate93.errors : vErrors.concat(validate93.errors)
+ if (!validate96(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate96.errors : vErrors.concat(validate96.errors)
errors = vErrors.length
}
var _valid0 = _errs3 === errors
@@ -10528,8 +10804,8 @@ function validate109(data, { instancePath = '', parentData, parentDataProperty,
passing0 = 1
}
const _errs4 = errors
- if (!validate99(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate99.errors : vErrors.concat(validate99.errors)
+ if (!validate102(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate102.errors : vErrors.concat(validate102.errors)
errors = vErrors.length
}
var _valid0 = _errs4 === errors
@@ -10557,7 +10833,7 @@ function validate109(data, { instancePath = '', parentData, parentDataProperty,
vErrors.push(err0)
}
errors++
- validate109.errors = vErrors
+ validate112.errors = vErrors
return false
} else {
errors = _errs1
@@ -10573,7 +10849,7 @@ function validate109(data, { instancePath = '', parentData, parentDataProperty,
if (data && typeof data == 'object' && !Array.isArray(data)) {
let missing0
if (data.kind === undefined && (missing0 = 'kind')) {
- validate109.errors = [
+ validate112.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -10585,7 +10861,7 @@ function validate109(data, { instancePath = '', parentData, parentDataProperty,
return false
}
} else {
- validate109.errors = [
+ validate112.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -10597,10 +10873,10 @@ function validate109(data, { instancePath = '', parentData, parentDataProperty,
return false
}
}
- validate109.errors = vErrors
+ validate112.errors = vErrors
return errors === 0
}
-function validate107(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate110(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -10611,7 +10887,7 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
(data.metric_type === undefined && (missing0 = 'metric_type')) ||
(data.series === undefined && (missing0 = 'series'))
) {
- validate107.errors = [
+ validate110.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -10624,8 +10900,8 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
} else {
const _errs1 = errors
for (const key0 in data) {
- if (!func2.call(schema96.properties, key0)) {
- validate107.errors = [
+ if (!func2.call(schema98.properties, key0)) {
+ validate110.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -10642,14 +10918,14 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
if (data.breakdownFilter !== undefined) {
const _errs2 = errors
if (
- !validate80(data.breakdownFilter, {
+ !validate83(data.breakdownFilter, {
instancePath: instancePath + '/breakdownFilter',
parentData: data,
parentDataProperty: 'breakdownFilter',
rootData,
})
) {
- vErrors = vErrors === null ? validate80.errors : vErrors.concat(validate80.errors)
+ vErrors = vErrors === null ? validate83.errors : vErrors.concat(validate83.errors)
errors = vErrors.length
}
var valid0 = _errs2 === errors
@@ -10661,7 +10937,7 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
let data1 = data.conversion_window
const _errs3 = errors
if (!(typeof data1 == 'number' && !(data1 % 1) && !isNaN(data1) && isFinite(data1))) {
- validate107.errors = [
+ validate110.errors = [
{
instancePath: instancePath + '/conversion_window',
schemaPath: '#/definitions/integer/type',
@@ -10681,7 +10957,7 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
let data2 = data.conversion_window_unit
const _errs6 = errors
if (typeof data2 !== 'string') {
- validate107.errors = [
+ validate110.errors = [
{
instancePath: instancePath + '/conversion_window_unit',
schemaPath: '#/definitions/FunnelConversionWindowTimeUnit/type',
@@ -10702,12 +10978,12 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
data2 === 'month'
)
) {
- validate107.errors = [
+ validate110.errors = [
{
instancePath: instancePath + '/conversion_window_unit',
schemaPath: '#/definitions/FunnelConversionWindowTimeUnit/enum',
keyword: 'enum',
- params: { allowedValues: schema77.enum },
+ params: { allowedValues: schema79.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -10721,7 +10997,7 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
if (data.fingerprint !== undefined) {
const _errs9 = errors
if (typeof data.fingerprint !== 'string') {
- validate107.errors = [
+ validate110.errors = [
{
instancePath: instancePath + '/fingerprint',
schemaPath: '#/properties/fingerprint/type',
@@ -10741,7 +11017,7 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
let data4 = data.funnel_order_type
const _errs11 = errors
if (typeof data4 !== 'string') {
- validate107.errors = [
+ validate110.errors = [
{
instancePath: instancePath + '/funnel_order_type',
schemaPath: '#/definitions/StepOrderValue/type',
@@ -10753,12 +11029,12 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if (!(data4 === 'strict' || data4 === 'unordered' || data4 === 'ordered')) {
- validate107.errors = [
+ validate110.errors = [
{
instancePath: instancePath + '/funnel_order_type',
schemaPath: '#/definitions/StepOrderValue/enum',
keyword: 'enum',
- params: { allowedValues: schema99.enum },
+ params: { allowedValues: schema101.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -10773,7 +11049,7 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
let data5 = data.goal
const _errs14 = errors
if (typeof data5 !== 'string') {
- validate107.errors = [
+ validate110.errors = [
{
instancePath: instancePath + '/goal',
schemaPath: '#/definitions/ExperimentMetricGoal/type',
@@ -10785,12 +11061,12 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if (!(data5 === 'increase' || data5 === 'decrease')) {
- validate107.errors = [
+ validate110.errors = [
{
instancePath: instancePath + '/goal',
schemaPath: '#/definitions/ExperimentMetricGoal/enum',
keyword: 'enum',
- params: { allowedValues: schema78.enum },
+ params: { allowedValues: schema80.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -10804,7 +11080,7 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
if (data.isSharedMetric !== undefined) {
const _errs17 = errors
if (typeof data.isSharedMetric !== 'boolean') {
- validate107.errors = [
+ validate110.errors = [
{
instancePath: instancePath + '/isSharedMetric',
schemaPath: '#/properties/isSharedMetric/type',
@@ -10824,7 +11100,7 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
let data7 = data.kind
const _errs19 = errors
if (typeof data7 !== 'string') {
- validate107.errors = [
+ validate110.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/type',
@@ -10836,7 +11112,7 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if ('ExperimentMetric' !== data7) {
- validate107.errors = [
+ validate110.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/const',
@@ -10856,7 +11132,7 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
let data8 = data.metric_type
const _errs21 = errors
if (typeof data8 !== 'string') {
- validate107.errors = [
+ validate110.errors = [
{
instancePath: instancePath + '/metric_type',
schemaPath: '#/properties/metric_type/type',
@@ -10868,7 +11144,7 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if ('funnel' !== data8) {
- validate107.errors = [
+ validate110.errors = [
{
instancePath: instancePath + '/metric_type',
schemaPath: '#/properties/metric_type/const',
@@ -10887,7 +11163,7 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
if (data.name !== undefined) {
const _errs23 = errors
if (typeof data.name !== 'string') {
- validate107.errors = [
+ validate110.errors = [
{
instancePath: instancePath + '/name',
schemaPath: '#/properties/name/type',
@@ -10913,7 +11189,7 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
!Array.isArray(data10)
)
) {
- validate107.errors = [
+ validate110.errors = [
{
instancePath: instancePath + '/response',
schemaPath: '#/properties/response/type',
@@ -10939,7 +11215,7 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
for (let i0 = 0; i0 < len0; i0++) {
const _errs29 = errors
if (
- !validate109(data11[i0], {
+ !validate112(data11[i0], {
instancePath:
instancePath +
'/series/' +
@@ -10951,9 +11227,9 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
) {
vErrors =
vErrors === null
- ? validate109.errors
+ ? validate112.errors
: vErrors.concat(
- validate109.errors
+ validate112.errors
)
errors = vErrors.length
}
@@ -10963,7 +11239,7 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate107.errors = [
+ validate110.errors = [
{
instancePath:
instancePath + '/series',
@@ -10991,7 +11267,7 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
isFinite(data13)
)
) {
- validate107.errors = [
+ validate110.errors = [
{
instancePath:
instancePath +
@@ -11013,7 +11289,7 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
if (data.uuid !== undefined) {
const _errs32 = errors
if (typeof data.uuid !== 'string') {
- validate107.errors = [
+ validate110.errors = [
{
instancePath:
instancePath + '/uuid',
@@ -11040,7 +11316,7 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
isFinite(data15)
)
) {
- validate107.errors = [
+ validate110.errors = [
{
instancePath:
instancePath +
@@ -11075,7 +11351,7 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate107.errors = [
+ validate110.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -11087,10 +11363,10 @@ function validate107(data, { instancePath = '', parentData, parentDataProperty,
return false
}
}
- validate107.errors = vErrors
+ validate110.errors = vErrors
return errors === 0
}
-const schema102 = {
+const schema104 = {
additionalProperties: false,
properties: {
breakdownFilter: { $ref: '#/definitions/BreakdownFilter' },
@@ -11114,7 +11390,7 @@ const schema102 = {
required: ['denominator', 'kind', 'metric_type', 'numerator'],
type: 'object',
}
-const schema105 = {
+const schema107 = {
additionalProperties: false,
properties: {
ignore_zeros: { type: 'boolean' },
@@ -11135,7 +11411,7 @@ const schema105 = {
},
type: 'object',
}
-function validate115(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate118(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -11147,7 +11423,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
(data.metric_type === undefined && (missing0 = 'metric_type')) ||
(data.numerator === undefined && (missing0 = 'numerator'))
) {
- validate115.errors = [
+ validate118.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -11160,8 +11436,8 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
} else {
const _errs1 = errors
for (const key0 in data) {
- if (!func2.call(schema102.properties, key0)) {
- validate115.errors = [
+ if (!func2.call(schema104.properties, key0)) {
+ validate118.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -11178,14 +11454,14 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
if (data.breakdownFilter !== undefined) {
const _errs2 = errors
if (
- !validate80(data.breakdownFilter, {
+ !validate83(data.breakdownFilter, {
instancePath: instancePath + '/breakdownFilter',
parentData: data,
parentDataProperty: 'breakdownFilter',
rootData,
})
) {
- vErrors = vErrors === null ? validate80.errors : vErrors.concat(validate80.errors)
+ vErrors = vErrors === null ? validate83.errors : vErrors.concat(validate83.errors)
errors = vErrors.length
}
var valid0 = _errs2 === errors
@@ -11197,7 +11473,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
let data1 = data.conversion_window
const _errs3 = errors
if (!(typeof data1 == 'number' && !(data1 % 1) && !isNaN(data1) && isFinite(data1))) {
- validate115.errors = [
+ validate118.errors = [
{
instancePath: instancePath + '/conversion_window',
schemaPath: '#/definitions/integer/type',
@@ -11217,7 +11493,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
let data2 = data.conversion_window_unit
const _errs6 = errors
if (typeof data2 !== 'string') {
- validate115.errors = [
+ validate118.errors = [
{
instancePath: instancePath + '/conversion_window_unit',
schemaPath: '#/definitions/FunnelConversionWindowTimeUnit/type',
@@ -11238,12 +11514,12 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
data2 === 'month'
)
) {
- validate115.errors = [
+ validate118.errors = [
{
instancePath: instancePath + '/conversion_window_unit',
schemaPath: '#/definitions/FunnelConversionWindowTimeUnit/enum',
keyword: 'enum',
- params: { allowedValues: schema77.enum },
+ params: { allowedValues: schema79.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -11257,7 +11533,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
if (data.denominator !== undefined) {
const _errs9 = errors
if (
- !validate84(data.denominator, {
+ !validate87(data.denominator, {
instancePath: instancePath + '/denominator',
parentData: data,
parentDataProperty: 'denominator',
@@ -11265,7 +11541,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
})
) {
vErrors =
- vErrors === null ? validate84.errors : vErrors.concat(validate84.errors)
+ vErrors === null ? validate87.errors : vErrors.concat(validate87.errors)
errors = vErrors.length
}
var valid0 = _errs9 === errors
@@ -11288,7 +11564,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
key1 === 'upper_bound_percentile'
)
) {
- validate115.errors = [
+ validate118.errors = [
{
instancePath:
instancePath + '/denominator_outlier_handling',
@@ -11307,7 +11583,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
if (data4.ignore_zeros !== undefined) {
const _errs14 = errors
if (typeof data4.ignore_zeros !== 'boolean') {
- validate115.errors = [
+ validate118.errors = [
{
instancePath:
instancePath +
@@ -11332,7 +11608,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
if (errors === _errs16) {
if (typeof data6 == 'number' && isFinite(data6)) {
if (data6 > 1 || isNaN(data6)) {
- validate115.errors = [
+ validate118.errors = [
{
instancePath:
instancePath +
@@ -11347,7 +11623,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
return false
} else {
if (data6 < 0 || isNaN(data6)) {
- validate115.errors = [
+ validate118.errors = [
{
instancePath:
instancePath +
@@ -11366,7 +11642,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate115.errors = [
+ validate118.errors = [
{
instancePath:
instancePath +
@@ -11392,7 +11668,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
if (errors === _errs18) {
if (typeof data7 == 'number' && isFinite(data7)) {
if (data7 > 1 || isNaN(data7)) {
- validate115.errors = [
+ validate118.errors = [
{
instancePath:
instancePath +
@@ -11410,7 +11686,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
return false
} else {
if (data7 < 0 || isNaN(data7)) {
- validate115.errors = [
+ validate118.errors = [
{
instancePath:
instancePath +
@@ -11429,7 +11705,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate115.errors = [
+ validate118.errors = [
{
instancePath:
instancePath +
@@ -11452,7 +11728,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate115.errors = [
+ validate118.errors = [
{
instancePath: instancePath + '/denominator_outlier_handling',
schemaPath:
@@ -11473,7 +11749,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
if (data.fingerprint !== undefined) {
const _errs20 = errors
if (typeof data.fingerprint !== 'string') {
- validate115.errors = [
+ validate118.errors = [
{
instancePath: instancePath + '/fingerprint',
schemaPath: '#/properties/fingerprint/type',
@@ -11493,7 +11769,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
let data9 = data.goal
const _errs22 = errors
if (typeof data9 !== 'string') {
- validate115.errors = [
+ validate118.errors = [
{
instancePath: instancePath + '/goal',
schemaPath: '#/definitions/ExperimentMetricGoal/type',
@@ -11505,12 +11781,12 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if (!(data9 === 'increase' || data9 === 'decrease')) {
- validate115.errors = [
+ validate118.errors = [
{
instancePath: instancePath + '/goal',
schemaPath: '#/definitions/ExperimentMetricGoal/enum',
keyword: 'enum',
- params: { allowedValues: schema78.enum },
+ params: { allowedValues: schema80.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -11524,7 +11800,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
if (data.isSharedMetric !== undefined) {
const _errs25 = errors
if (typeof data.isSharedMetric !== 'boolean') {
- validate115.errors = [
+ validate118.errors = [
{
instancePath: instancePath + '/isSharedMetric',
schemaPath: '#/properties/isSharedMetric/type',
@@ -11544,7 +11820,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
let data11 = data.kind
const _errs27 = errors
if (typeof data11 !== 'string') {
- validate115.errors = [
+ validate118.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/type',
@@ -11556,7 +11832,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if ('ExperimentMetric' !== data11) {
- validate115.errors = [
+ validate118.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/const',
@@ -11576,7 +11852,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
let data12 = data.metric_type
const _errs29 = errors
if (typeof data12 !== 'string') {
- validate115.errors = [
+ validate118.errors = [
{
instancePath: instancePath + '/metric_type',
schemaPath: '#/properties/metric_type/type',
@@ -11588,7 +11864,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if ('ratio' !== data12) {
- validate115.errors = [
+ validate118.errors = [
{
instancePath: instancePath + '/metric_type',
schemaPath: '#/properties/metric_type/const',
@@ -11607,7 +11883,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
if (data.name !== undefined) {
const _errs31 = errors
if (typeof data.name !== 'string') {
- validate115.errors = [
+ validate118.errors = [
{
instancePath: instancePath + '/name',
schemaPath: '#/properties/name/type',
@@ -11626,7 +11902,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
if (data.numerator !== undefined) {
const _errs33 = errors
if (
- !validate84(data.numerator, {
+ !validate87(data.numerator, {
instancePath: instancePath + '/numerator',
parentData: data,
parentDataProperty: 'numerator',
@@ -11635,8 +11911,8 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
) {
vErrors =
vErrors === null
- ? validate84.errors
- : vErrors.concat(validate84.errors)
+ ? validate87.errors
+ : vErrors.concat(validate87.errors)
errors = vErrors.length
}
var valid0 = _errs33 === errors
@@ -11665,7 +11941,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
'upper_bound_percentile'
)
) {
- validate115.errors = [
+ validate118.errors = [
{
instancePath:
instancePath +
@@ -11696,7 +11972,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
typeof data15.ignore_zeros !==
'boolean'
) {
- validate115.errors = [
+ validate118.errors = [
{
instancePath:
instancePath +
@@ -11735,7 +12011,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
data17 > 1 ||
isNaN(data17)
) {
- validate115.errors =
+ validate118.errors =
[
{
instancePath:
@@ -11763,7 +12039,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
data17
)
) {
- validate115.errors =
+ validate118.errors =
[
{
instancePath:
@@ -11786,7 +12062,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate115.errors =
+ validate118.errors =
[
{
instancePath:
@@ -11834,7 +12110,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
data18
)
) {
- validate115.errors =
+ validate118.errors =
[
{
instancePath:
@@ -11862,7 +12138,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
data18
)
) {
- validate115.errors =
+ validate118.errors =
[
{
instancePath:
@@ -11885,7 +12161,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate115.errors =
+ validate118.errors =
[
{
instancePath:
@@ -11914,7 +12190,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate115.errors = [
+ validate118.errors = [
{
instancePath:
instancePath +
@@ -11944,7 +12220,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
!Array.isArray(data19)
)
) {
- validate115.errors = [
+ validate118.errors = [
{
instancePath:
instancePath + '/response',
@@ -11971,7 +12247,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
isFinite(data20)
)
) {
- validate115.errors = [
+ validate118.errors = [
{
instancePath:
instancePath +
@@ -11993,7 +12269,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
if (data.uuid !== undefined) {
const _errs48 = errors
if (typeof data.uuid !== 'string') {
- validate115.errors = [
+ validate118.errors = [
{
instancePath:
instancePath +
@@ -12025,7 +12301,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
isFinite(data22)
)
) {
- validate115.errors = [
+ validate118.errors = [
{
instancePath:
instancePath +
@@ -12065,7 +12341,7 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate115.errors = [
+ validate118.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -12077,10 +12353,10 @@ function validate115(data, { instancePath = '', parentData, parentDataProperty,
return false
}
}
- validate115.errors = vErrors
+ validate118.errors = vErrors
return errors === 0
}
-const schema108 = {
+const schema110 = {
additionalProperties: false,
properties: {
breakdownFilter: { $ref: '#/definitions/BreakdownFilter' },
@@ -12115,7 +12391,7 @@ const schema108 = {
],
type: 'object',
}
-function validate120(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate123(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -12131,7 +12407,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
(data.start_event === undefined && (missing0 = 'start_event')) ||
(data.start_handling === undefined && (missing0 = 'start_handling'))
) {
- validate120.errors = [
+ validate123.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -12144,8 +12420,8 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
} else {
const _errs1 = errors
for (const key0 in data) {
- if (!func2.call(schema108.properties, key0)) {
- validate120.errors = [
+ if (!func2.call(schema110.properties, key0)) {
+ validate123.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -12162,14 +12438,14 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
if (data.breakdownFilter !== undefined) {
const _errs2 = errors
if (
- !validate80(data.breakdownFilter, {
+ !validate83(data.breakdownFilter, {
instancePath: instancePath + '/breakdownFilter',
parentData: data,
parentDataProperty: 'breakdownFilter',
rootData,
})
) {
- vErrors = vErrors === null ? validate80.errors : vErrors.concat(validate80.errors)
+ vErrors = vErrors === null ? validate83.errors : vErrors.concat(validate83.errors)
errors = vErrors.length
}
var valid0 = _errs2 === errors
@@ -12180,14 +12456,14 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
if (data.completion_event !== undefined) {
const _errs3 = errors
if (
- !validate84(data.completion_event, {
+ !validate87(data.completion_event, {
instancePath: instancePath + '/completion_event',
parentData: data,
parentDataProperty: 'completion_event',
rootData,
})
) {
- vErrors = vErrors === null ? validate84.errors : vErrors.concat(validate84.errors)
+ vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors)
errors = vErrors.length
}
var valid0 = _errs3 === errors
@@ -12199,7 +12475,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
let data2 = data.conversion_window
const _errs4 = errors
if (!(typeof data2 == 'number' && !(data2 % 1) && !isNaN(data2) && isFinite(data2))) {
- validate120.errors = [
+ validate123.errors = [
{
instancePath: instancePath + '/conversion_window',
schemaPath: '#/definitions/integer/type',
@@ -12219,7 +12495,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
let data3 = data.conversion_window_unit
const _errs7 = errors
if (typeof data3 !== 'string') {
- validate120.errors = [
+ validate123.errors = [
{
instancePath: instancePath + '/conversion_window_unit',
schemaPath: '#/definitions/FunnelConversionWindowTimeUnit/type',
@@ -12240,12 +12516,12 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
data3 === 'month'
)
) {
- validate120.errors = [
+ validate123.errors = [
{
instancePath: instancePath + '/conversion_window_unit',
schemaPath: '#/definitions/FunnelConversionWindowTimeUnit/enum',
keyword: 'enum',
- params: { allowedValues: schema77.enum },
+ params: { allowedValues: schema79.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -12259,7 +12535,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
if (data.fingerprint !== undefined) {
const _errs10 = errors
if (typeof data.fingerprint !== 'string') {
- validate120.errors = [
+ validate123.errors = [
{
instancePath: instancePath + '/fingerprint',
schemaPath: '#/properties/fingerprint/type',
@@ -12279,7 +12555,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
let data5 = data.goal
const _errs12 = errors
if (typeof data5 !== 'string') {
- validate120.errors = [
+ validate123.errors = [
{
instancePath: instancePath + '/goal',
schemaPath: '#/definitions/ExperimentMetricGoal/type',
@@ -12291,12 +12567,12 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if (!(data5 === 'increase' || data5 === 'decrease')) {
- validate120.errors = [
+ validate123.errors = [
{
instancePath: instancePath + '/goal',
schemaPath: '#/definitions/ExperimentMetricGoal/enum',
keyword: 'enum',
- params: { allowedValues: schema78.enum },
+ params: { allowedValues: schema80.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -12310,7 +12586,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
if (data.isSharedMetric !== undefined) {
const _errs15 = errors
if (typeof data.isSharedMetric !== 'boolean') {
- validate120.errors = [
+ validate123.errors = [
{
instancePath: instancePath + '/isSharedMetric',
schemaPath: '#/properties/isSharedMetric/type',
@@ -12330,7 +12606,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
let data7 = data.kind
const _errs17 = errors
if (typeof data7 !== 'string') {
- validate120.errors = [
+ validate123.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/type',
@@ -12342,7 +12618,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if ('ExperimentMetric' !== data7) {
- validate120.errors = [
+ validate123.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/const',
@@ -12362,7 +12638,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
let data8 = data.metric_type
const _errs19 = errors
if (typeof data8 !== 'string') {
- validate120.errors = [
+ validate123.errors = [
{
instancePath: instancePath + '/metric_type',
schemaPath: '#/properties/metric_type/type',
@@ -12374,7 +12650,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if ('retention' !== data8) {
- validate120.errors = [
+ validate123.errors = [
{
instancePath: instancePath + '/metric_type',
schemaPath: '#/properties/metric_type/const',
@@ -12393,7 +12669,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
if (data.name !== undefined) {
const _errs21 = errors
if (typeof data.name !== 'string') {
- validate120.errors = [
+ validate123.errors = [
{
instancePath: instancePath + '/name',
schemaPath: '#/properties/name/type',
@@ -12419,7 +12695,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
!Array.isArray(data10)
)
) {
- validate120.errors = [
+ validate123.errors = [
{
instancePath: instancePath + '/response',
schemaPath: '#/properties/response/type',
@@ -12446,7 +12722,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
isFinite(data11)
)
) {
- validate120.errors = [
+ validate123.errors = [
{
instancePath:
instancePath +
@@ -12476,7 +12752,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
isFinite(data12)
)
) {
- validate120.errors = [
+ validate123.errors = [
{
instancePath:
instancePath +
@@ -12499,7 +12775,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
let data13 = data.retention_window_unit
const _errs31 = errors
if (typeof data13 !== 'string') {
- validate120.errors = [
+ validate123.errors = [
{
instancePath:
instancePath +
@@ -12523,7 +12799,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
data13 === 'month'
)
) {
- validate120.errors = [
+ validate123.errors = [
{
instancePath:
instancePath +
@@ -12533,7 +12809,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
keyword: 'enum',
params: {
allowedValues:
- schema77.enum,
+ schema79.enum,
},
message:
'must be equal to one of the allowed values',
@@ -12555,7 +12831,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
isFinite(data14)
)
) {
- validate120.errors = [
+ validate123.errors = [
{
instancePath:
instancePath +
@@ -12577,7 +12853,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
if (data.start_event !== undefined) {
const _errs36 = errors
if (
- !validate84(data.start_event, {
+ !validate87(data.start_event, {
instancePath:
instancePath +
'/start_event',
@@ -12589,9 +12865,9 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
) {
vErrors =
vErrors === null
- ? validate84.errors
+ ? validate87.errors
: vErrors.concat(
- validate84.errors
+ validate87.errors
)
errors = vErrors.length
}
@@ -12609,7 +12885,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
if (
typeof data16 !== 'string'
) {
- validate120.errors = [
+ validate123.errors = [
{
instancePath:
instancePath +
@@ -12633,7 +12909,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
data16 === 'last_seen'
)
) {
- validate120.errors = [
+ validate123.errors = [
{
instancePath:
instancePath +
@@ -12643,7 +12919,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
keyword: 'enum',
params: {
allowedValues:
- schema108
+ schema110
.properties
.start_handling
.enum,
@@ -12665,7 +12941,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
typeof data.uuid !==
'string'
) {
- validate120.errors = [
+ validate123.errors = [
{
instancePath:
instancePath +
@@ -12702,7 +12978,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
isFinite(data18)
)
) {
- validate120.errors =
+ validate123.errors =
[
{
instancePath:
@@ -12747,7 +13023,7 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate120.errors = [
+ validate123.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -12759,18 +13035,18 @@ function validate120(data, { instancePath = '', parentData, parentDataProperty,
return false
}
}
- validate120.errors = vErrors
+ validate123.errors = vErrors
return errors === 0
}
-function validate78(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate81(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
const _errs1 = errors
let valid0 = false
let passing0 = null
const _errs2 = errors
- if (!validate79(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate79.errors : vErrors.concat(validate79.errors)
+ if (!validate82(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate82.errors : vErrors.concat(validate82.errors)
errors = vErrors.length
}
var _valid0 = _errs2 === errors
@@ -12779,8 +13055,8 @@ function validate78(data, { instancePath = '', parentData, parentDataProperty, r
passing0 = 0
}
const _errs3 = errors
- if (!validate107(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate107.errors : vErrors.concat(validate107.errors)
+ if (!validate110(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate110.errors : vErrors.concat(validate110.errors)
errors = vErrors.length
}
var _valid0 = _errs3 === errors
@@ -12793,8 +13069,8 @@ function validate78(data, { instancePath = '', parentData, parentDataProperty, r
passing0 = 1
}
const _errs4 = errors
- if (!validate115(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate115.errors : vErrors.concat(validate115.errors)
+ if (!validate118(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate118.errors : vErrors.concat(validate118.errors)
errors = vErrors.length
}
var _valid0 = _errs4 === errors
@@ -12807,8 +13083,8 @@ function validate78(data, { instancePath = '', parentData, parentDataProperty, r
passing0 = 2
}
const _errs5 = errors
- if (!validate120(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate120.errors : vErrors.concat(validate120.errors)
+ if (!validate123(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate123.errors : vErrors.concat(validate123.errors)
errors = vErrors.length
}
var _valid0 = _errs5 === errors
@@ -12837,7 +13113,7 @@ function validate78(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err0)
}
errors++
- validate78.errors = vErrors
+ validate81.errors = vErrors
return false
} else {
errors = _errs1
@@ -12853,7 +13129,7 @@ function validate78(data, { instancePath = '', parentData, parentDataProperty, r
if (data && typeof data == 'object' && !Array.isArray(data)) {
let missing0
if (data.metric_type === undefined && (missing0 = 'metric_type')) {
- validate78.errors = [
+ validate81.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -12865,7 +13141,7 @@ function validate78(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
} else {
- validate78.errors = [
+ validate81.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -12877,6 +13153,6 @@ function validate78(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate78.errors = vErrors
+ validate81.errors = vErrors
return errors === 0
}
diff --git a/frontend/src/scenes/cohorts/CohortFilters/CohortField.tsx b/frontend/src/scenes/cohorts/CohortFilters/CohortField.tsx
index 780650620c39..30b84bd8df62 100644
--- a/frontend/src/scenes/cohorts/CohortFilters/CohortField.tsx
+++ b/frontend/src/scenes/cohorts/CohortFilters/CohortField.tsx
@@ -17,6 +17,7 @@ import { LemonInput } from 'lib/lemon-ui/LemonInput/LemonInput'
import { formatDate } from 'lib/utils/datetime'
import { cohortFieldLogic } from 'scenes/cohorts/CohortFilters/cohortFieldLogic'
import {
+ BehavioralFilterKey,
CohortEventFiltersFieldProps,
CohortFieldBaseProps,
CohortNumberFieldProps,
@@ -118,7 +119,12 @@ export function CohortSelectorField({
export function CohortMathOperatorField(props: CohortSelectorFieldProps): JSX.Element {
const { getPropertyDefinition } = useValues(propertyDefinitionsModel)
const propertyKey = props.criteria?.key
- const propDef = propertyKey ? getPropertyDefinition(propertyKey, PropertyDefinitionType.Person) : null
+ const propertyType = props.criteria?.type
+ const definitionType =
+ propertyType === BehavioralFilterKey.PersonMetadata
+ ? PropertyDefinitionType.PersonMetadata
+ : PropertyDefinitionType.Person
+ const propDef = propertyKey ? getPropertyDefinition(propertyKey, definitionType) : null
const isDateTime = propDef?.property_type === PropertyType.DateTime
const fieldOptionGroupTypes = isDateTime
diff --git a/frontend/src/scenes/cohorts/CohortFilters/cohortFieldLogic.ts b/frontend/src/scenes/cohorts/CohortFilters/cohortFieldLogic.ts
index 6f0a57683998..d230ecbd8735 100644
--- a/frontend/src/scenes/cohorts/CohortFilters/cohortFieldLogic.ts
+++ b/frontend/src/scenes/cohorts/CohortFilters/cohortFieldLogic.ts
@@ -154,7 +154,11 @@ export const cohortFieldLogic = kea<cohortFieldLogicType>([
}),
listeners(({ props }) => ({
onChange: ({ newField }) => {
- props.onChange?.(cleanBehavioralTypeCriteria(newField))
+ // Merge the partial field payload onto the existing criteria so
+ // cleanBehavioralTypeCriteria sees `event_type` and `value` together — otherwise
+ // a freshly-picked PersonMetadata property (whose `event_type` lives on the
+ // criteria, not the payload) is derived as a plain Person type and matches nobody.
+ props.onChange?.(cleanBehavioralTypeCriteria({ ...props.criteria, ...newField }))
},
})),
])
diff --git a/frontend/src/scenes/cohorts/CohortFilters/constants.tsx b/frontend/src/scenes/cohorts/CohortFilters/constants.tsx
index 4d572fe2da2a..b58a46ebc176 100644
--- a/frontend/src/scenes/cohorts/CohortFilters/constants.tsx
+++ b/frontend/src/scenes/cohorts/CohortFilters/constants.tsx
@@ -969,7 +969,10 @@ export const renderField: Record<FilterType, (props: CohortFieldProps) => JSX.El
return (
<CohortTaxonomicField
{...(p as CohortTaxonomicFieldProps)}
- taxonomicGroupTypes={[TaxonomicFilterGroupType.PersonProperties]}
+ taxonomicGroupTypes={[
+ TaxonomicFilterGroupType.PersonProperties,
+ TaxonomicFilterGroupType.PersonMetadata,
+ ]}
placeholder="Choose person property"
/>
)
diff --git a/frontend/src/scenes/cohorts/CohortFilters/types.ts b/frontend/src/scenes/cohorts/CohortFilters/types.ts
index ad3d2e956695..ae2bf19f2413 100644
--- a/frontend/src/scenes/cohorts/CohortFilters/types.ts
+++ b/frontend/src/scenes/cohorts/CohortFilters/types.ts
@@ -65,6 +65,7 @@ export enum BehavioralFilterKey {
Behavioral = 'behavioral',
Cohort = 'cohort',
Person = 'person',
+ PersonMetadata = 'person_metadata',
}
export interface Field {
diff --git a/frontend/src/scenes/cohorts/cohortEditLogic.ts b/frontend/src/scenes/cohorts/cohortEditLogic.ts
index 0ef1d47d6f18..8b3d6cdd7609 100644
--- a/frontend/src/scenes/cohorts/cohortEditLogic.ts
+++ b/frontend/src/scenes/cohorts/cohortEditLogic.ts
@@ -640,14 +640,16 @@ export const cohortEditLogic = kea<cohortEditLogicType>([
return
}
- if (criteria.type !== BehavioralFilterKey.Person) {
+ if (criteria.type !== BehavioralFilterKey.Person && criteria.type !== BehavioralFilterKey.PersonMetadata) {
return
}
+ const definitionType =
+ criteria.type === BehavioralFilterKey.PersonMetadata
+ ? PropertyDefinitionType.PersonMetadata
+ : PropertyDefinitionType.Person
const propDef = newCriteria.key
- ? propertyDefinitionsModel
- .findMounted()
- ?.values.getPropertyDefinition(newCriteria.key, PropertyDefinitionType.Person)
+ ? propertyDefinitionsModel.findMounted()?.values.getPropertyDefinition(newCriteria.key, definitionType)
: null
const isDateTime = propDef?.property_type === PropertyType.DateTime
const currentOperator = criteria.operator as PropertyOperator | undefined
diff --git a/frontend/src/scenes/cohorts/cohortUtils.test.tsx b/frontend/src/scenes/cohorts/cohortUtils.test.tsx
index 6cce580f9cb1..529c4f8f61eb 100644
--- a/frontend/src/scenes/cohorts/cohortUtils.test.tsx
+++ b/frontend/src/scenes/cohorts/cohortUtils.test.tsx
@@ -1,5 +1,6 @@
+import { TaxonomicFilterGroupType } from 'lib/components/TaxonomicFilter/types'
import { BehavioralFilterKey } from 'scenes/cohorts/CohortFilters/types'
-import { validateGroup } from 'scenes/cohorts/cohortUtils'
+import { cleanBehavioralTypeCriteria, determineFilterType, validateGroup } from 'scenes/cohorts/cohortUtils'
import { AnyCohortCriteriaType, BehavioralEventType, CohortCriteriaGroupFilter, FilterLogicalOperator } from '~/types'
@@ -87,3 +88,59 @@ describe('validateGroup', () => {
expect(errors.id).toContain("'legacy_unknown_type', 'Did not complete event' are negative cohort criteria")
})
})
+
+describe('determineFilterType', () => {
+ it('preserves PersonMetadata across the negation flow', () => {
+ const negated = determineFilterType(BehavioralFilterKey.PersonMetadata, BehavioralEventType.HaveProperty, true)
+ expect(negated.type).toBe(BehavioralFilterKey.PersonMetadata)
+ })
+
+ it('still maps regular Person criteria to Person on negation', () => {
+ const negated = determineFilterType(BehavioralFilterKey.Person, BehavioralEventType.HaveProperty, true)
+ expect(negated.type).toBe(BehavioralFilterKey.Person)
+ })
+})
+
+describe('cleanBehavioralTypeCriteria', () => {
+ // event_type is the transient taxonomic-group hint set when the user first picks a
+ // property. It is dropped by later cleanCriteria passes, so the durable `type` must
+ // survive on its own once derived.
+ it('derives PersonMetadata type from the event_type hint on first selection', () => {
+ const criteria: AnyCohortCriteriaType = {
+ type: BehavioralFilterKey.Person,
+ value: BehavioralEventType.HaveProperty,
+ event_type: TaxonomicFilterGroupType.PersonMetadata,
+ }
+ expect(cleanBehavioralTypeCriteria(criteria).type).toBe(BehavioralFilterKey.PersonMetadata)
+ })
+
+ it('does not downgrade a loaded PersonMetadata criterion when event_type is gone', () => {
+ const criteria: AnyCohortCriteriaType = {
+ type: BehavioralFilterKey.PersonMetadata,
+ value: BehavioralEventType.HaveProperty,
+ // no event_type — mirrors a cohort loaded from the API
+ }
+ expect(cleanBehavioralTypeCriteria(criteria).type).toBe(BehavioralFilterKey.PersonMetadata)
+ })
+
+ it('maps a plain person property criterion to Person', () => {
+ const criteria: AnyCohortCriteriaType = {
+ type: BehavioralFilterKey.Person,
+ value: BehavioralEventType.HaveProperty,
+ }
+ expect(cleanBehavioralTypeCriteria(criteria).type).toBe(BehavioralFilterKey.Person)
+ })
+
+ it('downgrades a PersonMetadata criterion to Person when the user switches to a plain person property', () => {
+ // The picker merges the new selection's event_type onto the old criteria, so a
+ // stale PersonMetadata `type` arrives alongside `event_type: PersonProperties`. The
+ // fresh event_type must win, otherwise the criterion saves as `person_metadata` with
+ // a non-metadata key and the server rejects the whole cohort.
+ const criteria: AnyCohortCriteriaType = {
+ type: BehavioralFilterKey.PersonMetadata,
+ value: BehavioralEventType.HaveProperty,
+ event_type: TaxonomicFilterGroupType.PersonProperties,
+ }
+ expect(cleanBehavioralTypeCriteria(criteria).type).toBe(BehavioralFilterKey.Person)
+ })
+})
diff --git a/frontend/src/scenes/cohorts/cohortUtils.tsx b/frontend/src/scenes/cohorts/cohortUtils.tsx
index 883970b54868..dc8fa4e31631 100644
--- a/frontend/src/scenes/cohorts/cohortUtils.tsx
+++ b/frontend/src/scenes/cohorts/cohortUtils.tsx
@@ -2,6 +2,7 @@ import equal from 'fast-deep-equal'
import { DeepPartialMap, ValidationErrorType } from 'kea-forms'
import { isEmptyProperty, propertyFilterTypeToPropertyDefinitionType } from 'lib/components/PropertyFilters/utils'
+import { TaxonomicFilterGroupType } from 'lib/components/TaxonomicFilter/types'
import { ENTITY_MATCH_TYPE, PROPERTY_MATCH_TYPE } from 'lib/constants'
import { calculateDays } from 'lib/utils/durations'
import { isNumeric } from 'lib/utils/guards'
@@ -16,6 +17,7 @@ import {
} from 'scenes/cohorts/CohortFilters/types'
import { propertyDefinitionsModel } from '~/models/propertyDefinitionsModel'
+import { getCoreFilterDefinition } from '~/taxonomy/helpers'
import {
ActionType,
AnyCohortCriteriaType,
@@ -35,6 +37,33 @@ import {
TimeUnitType,
} from '~/types'
+/**
+ * Single source of truth for whether a HaveProperty/NotHaveProperty criterion targets a
+ * top-level persons-table column (PersonMetadata) or the JSON properties blob (Person).
+ *
+ * `event_type` is the transient taxonomic-group hint set when the user picks a property: it
+ * wins when present, so a freshly-picked property derives the right key immediately. Once
+ * that hint has been dropped (e.g. a cohort loaded from the API), the durable `type` carries
+ * the answer. We only fall back to a PersonMetadata `type` when `event_type` is absent — so
+ * switching away from a PersonMetadata property to a plain person property (which arrives
+ * with `event_type === PersonProperties`) correctly downgrades to Person rather than
+ * persisting a `person_metadata` criterion the server would reject.
+ */
+export function behavioralKeyForPersonProperty(criteria: {
+ type?: BehavioralFilterKey | null
+ event_type?: TaxonomicFilterGroupType | null
+}): BehavioralFilterKey.Person | BehavioralFilterKey.PersonMetadata {
+ return criteria.event_type === TaxonomicFilterGroupType.PersonMetadata ||
+ (criteria.type === BehavioralFilterKey.PersonMetadata && !criteria.event_type)
+ ? BehavioralFilterKey.PersonMetadata
+ : BehavioralFilterKey.Person
+}
+
+/** True for either flavor of person-property criterion (JSON-blob lookup or persons-table column). */
+export function isPersonPropertyFilterKey(type: BehavioralFilterKey | undefined): boolean {
+ return type === BehavioralFilterKey.Person || type === BehavioralFilterKey.PersonMetadata
+}
+
export function cleanBehavioralTypeCriteria(criteria: AnyCohortCriteriaType): AnyCohortCriteriaType {
let type = undefined
if (
@@ -63,7 +92,7 @@ export function cleanBehavioralTypeCriteria(criteria: AnyCohortCriteriaType): An
criteria.value as BehavioralEventType
)
) {
- type = BehavioralFilterKey.Person
+ type = behavioralKeyForPersonProperty(criteria)
}
return {
...criteria,
@@ -375,11 +404,13 @@ export function validateGroup(
fieldKey === 'value_property' &&
'key' in c &&
'type' in c &&
- c.type === BehavioralFilterKey.Person
+ isPersonPropertyFilterKey(c.type)
) {
const propertyKey = c.key as string
const propertyDefinitionType = propertyFilterTypeToPropertyDefinitionType(
- PropertyFilterType.Person
+ c.type === BehavioralFilterKey.PersonMetadata
+ ? PropertyFilterType.PersonMetadata
+ : PropertyFilterType.Person
)
const mountedModel = propertyDefinitionsModel.findMounted()
@@ -431,7 +462,7 @@ export function criteriaToBehavioralFilterType(criteria: AnyCohortCriteriaType):
if (criteria.value === BehavioralEventType.PerformEvent) {
return BehavioralEventType.NotPerformedEvent
}
- if (criteria.type === BehavioralFilterKey.Person) {
+ if (isPersonPropertyFilterKey(criteria.type)) {
return BehavioralEventType.NotHaveProperty
}
if (criteria.type === BehavioralFilterKey.Cohort) {
@@ -472,7 +503,11 @@ export function determineFilterType(
}
if (value === BehavioralEventType.NotHaveProperty || (value === BehavioralEventType.HaveProperty && negation)) {
return {
- type: BehavioralFilterKey.Person,
+ // Preserve PersonMetadata vs Person — the original type drives whether the
+ // filter targets the persons-table column or the JSON properties blob.
+ // Without this, a negated PersonMetadata criterion silently degrades to
+ // a JSON-blob lookup on every cleanCriteria pass.
+ type: behavioralKeyForPersonProperty({ type }),
value: BehavioralEventType.HaveProperty,
negation: true,
}
@@ -606,6 +641,17 @@ export function criteriaToHumanSentence(
words.push(<pre>{actionsById?.[value]?.name ?? `Action ${value}`}</pre>)
} else if (type === FilterType.EventFilters && (criteria.event_filters?.length || 0) > 0) {
words.push(<pre>with filters</pre>)
+ } else if (
+ fieldKey === 'key' &&
+ (criteria as AnyCohortCriteriaType).type === BehavioralFilterKey.PersonMetadata
+ ) {
+ // PersonMetadata keys (e.g. created_at) are stored raw; resolve the taxonomy
+ // label ("First seen") so the human sentence doesn't surface the column name.
+ const label = getCoreFilterDefinition(
+ value as string,
+ TaxonomicFilterGroupType.PersonMetadata
+ )?.label
+ words.push(<pre>{label ?? value}</pre>)
} else {
words.push(<pre>{value}</pre>)
}
diff --git a/frontend/src/taxonomy/core-filter-definitions-by-group.json b/frontend/src/taxonomy/core-filter-definitions-by-group.json
index 4ddedf315fce..f55fbc9b723b 100644
--- a/frontend/src/taxonomy/core-filter-definitions-by-group.json
+++ b/frontend/src/taxonomy/core-filter-definitions-by-group.json
@@ -4165,6 +4165,13 @@
}
},
"numerical_event_properties": {},
+ "person_metadata": {
+ "created_at": {
+ "description": "The time when the person was first seen.",
+ "label": "First seen",
+ "type": "DateTime"
+ }
+ },
"person_properties": {
"$$plugin_metrics": {
"description": "Performance metrics for a given plugin.",
diff --git a/frontend/src/types.ts b/frontend/src/types.ts
index b2bb30d026f1..5b775d1fa467 100644
--- a/frontend/src/types.ts
+++ b/frontend/src/types.ts
@@ -1108,6 +1108,8 @@ export enum PropertyFilterType {
EventMetadata = 'event_metadata',
/** Person properties */
Person = 'person',
+ /** Top-level columns on the persons table (e.g. created_at), not properties JSON */
+ PersonMetadata = 'person_metadata',
Element = 'element',
/** Event property with "$feature/" prepended */
Feature = 'feature',
@@ -1164,6 +1166,11 @@ export interface PersonPropertyFilter extends BasePropertyFilter {
operator: PropertyOperator
}
+export interface PersonMetadataPropertyFilter extends BasePropertyFilter {
+ type: PropertyFilterType.PersonMetadata
+ operator: PropertyOperator
+}
+
export interface DataWarehousePropertyFilter extends BasePropertyFilter {
type: PropertyFilterType.DataWarehouse
operator: PropertyOperator
@@ -1264,6 +1271,7 @@ export interface EmptyPropertyFilter {
export type AnyPropertyFilter =
| EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -1286,6 +1294,7 @@ export type AnyPropertyFilter =
/** Any filter type supported by `property_to_expr(scope="person", ...)`. */
export type AnyPersonScopeFilter =
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| CohortPropertyFilter
| HogQLPropertyFilter
| EmptyPropertyFilter
@@ -4656,6 +4665,7 @@ export enum PropertyDefinitionType {
EventMetadata = 'event_metadata',
RevenueAnalytics = 'revenue_analytics',
Person = 'person',
+ PersonMetadata = 'person_metadata',
Group = 'group',
Session = 'session',
LogEntry = 'log_entry',
diff --git a/posthog/api/cohort.py b/posthog/api/cohort.py
index 9ad5ef8b274d..fd98d4770700 100644
--- a/posthog/api/cohort.py
+++ b/posthog/api/cohort.py
@@ -5,7 +5,7 @@ import uuid
import hashlib
from collections.abc import Iterator
from copy import deepcopy
-from typing import Annotated, Any, Literal, Optional, Union, cast
+from typing import Annotated, Any, ClassVar, Literal, Optional, Union, cast
from django.db.models import OuterRef, QuerySet, Subquery
from django.utils import timezone
@@ -32,7 +32,7 @@ from posthog.schema import ActorsQuery, HogQLQuery, ProductKey
from posthog.hogql.compiler.bytecode import create_bytecode
from posthog.hogql.constants import CSV_EXPORT_LIMIT
-from posthog.hogql.property import property_to_expr
+from posthog.hogql.property import PERSON_METADATA_FIELDS, property_to_expr
from posthog.api.forbid_destroy_model import ForbidDestroyModel
from posthog.api.routing import TeamAndOrgViewSetMixin
@@ -292,12 +292,14 @@ class CohortFilter(FilterBytecodeMixin, BaseModel, extra="forbid"):
DATE_OPERATORS = ("is_date_after", "is_date_before")
-class PersonFilter(FilterBytecodeMixin, BaseModel, extra="forbid"):
- type: Literal["person"]
- key: str
+class PersonValueValidationMixin(BaseModel):
+ """Shared value/operator presence and date-value validation for the person and
+ person_metadata filter variants. `_filter_noun` names the variant in error messages."""
+
+ _filter_noun: ClassVar[str]
+
operator: str | None = None # accept any legacy operator
value: Any | None = None # mostly likely it's list[str], str, or None
- negation: bool = False
@model_validator(mode="after")
def _missing_keys_check(self):
@@ -313,7 +315,7 @@ class PersonFilter(FilterBytecodeMixin, BaseModel, extra="forbid"):
missing.append("operator")
if missing:
- raise ValueError(f"Missing required keys for person filter: {', '.join(missing)}")
+ raise ValueError(f"Missing required keys for {self._filter_noun} filter: {', '.join(missing)}")
return self
@@ -330,8 +332,34 @@ class PersonFilter(FilterBytecodeMixin, BaseModel, extra="forbid"):
return self
+class PersonFilter(FilterBytecodeMixin, PersonValueValidationMixin, extra="forbid"):
+ _filter_noun: ClassVar[str] = "person"
+
+ type: Literal["person"]
+ key: str
+ negation: bool = False
+
+
+class PersonMetadataFilter(FilterBytecodeMixin, PersonValueValidationMixin, extra="forbid"):
+ """Filter on a top-level persons-table column (e.g. created_at) rather than the
+ properties JSON. The matching key must be one of PERSON_METADATA_FIELDS."""
+
+ _filter_noun: ClassVar[str] = "person_metadata"
+
+ type: Literal["person_metadata"]
+ key: str
+ negation: bool = False
+
+ @model_validator(mode="after")
+ def _validate_key(self):
+ if self.key not in PERSON_METADATA_FIELDS:
+ allowed = ", ".join(sorted(PERSON_METADATA_FIELDS))
+ raise ValueError(f"Unsupported person_metadata key '{self.key}'. Allowed keys: {allowed}.")
+ return self
+
+
PropertyFilter = Annotated[
- Union[BehavioralFilter, CohortFilter, PersonFilter],
+ Union[BehavioralFilter, CohortFilter, PersonFilter, PersonMetadataFilter],
Field(discriminator="type"),
]
@@ -355,6 +383,12 @@ def _calculate_realtime_support(group: CohortFilterGroup) -> bool:
if not _calculate_realtime_support(cast(CohortFilterGroup, value)):
return False
else: # It's a filter
+ # person_metadata reads top-level persons-table columns, which the realtime
+ # precalculated_person_properties table doesn't carry. Any cohort referencing one
+ # must use the standard (non-realtime) calculation path, so force the whole cohort
+ # non-realtime as soon as a person_metadata filter appears in any group.
+ if getattr(value, "type", None) == "person_metadata":
+ return False
# Check if filter has FilterBytecodeMixin and valid bytecode
if hasattr(value, "bytecode") and hasattr(value, "bytecode_error"):
if value.bytecode is None or value.bytecode_error is not None:
diff --git a/posthog/api/test/test_cohort.py b/posthog/api/test/test_cohort.py
index 46436af5af05..0b7d58f11260 100644
--- a/posthog/api/test/test_cohort.py
+++ b/posthog/api/test/test_cohort.py
@@ -6407,6 +6407,36 @@ class TestCohortTypeIntegration(APIBaseTest):
self.assertEqual(cohort.cohort_type, "realtime")
self.assertEqual(response.data["cohort_type"], "realtime")
+ def test_person_metadata_cohort_not_classified_realtime(self):
+ """person_metadata cohorts must route to the non-realtime path: the realtime
+ precalculated_person_properties table only carries JSON-blob values, not top-level
+ persons-table columns, so HogQLRealtimeCohortQuery raises for them."""
+
+ response = self.client.post(
+ f"/api/projects/{self.team.id}/cohorts/",
+ {
+ "name": "First seen after 2024",
+ "filters": {
+ "properties": {
+ "type": "AND",
+ "values": [
+ {
+ "type": "person_metadata",
+ "key": "created_at",
+ "operator": "is_date_after",
+ "value": "2024-01-01",
+ }
+ ],
+ }
+ },
+ },
+ format="json",
+ )
+
+ self.assertEqual(response.status_code, 201, response.data)
+ cohort = Cohort.objects.get(id=response.data["id"])
+ self.assertNotEqual(cohort.cohort_type, CohortType.REALTIME)
+
def test_api_response_includes_cohort_type(self):
"""API responses should include the cohort_type field"""
diff --git a/posthog/hogql/property.py b/posthog/hogql/property.py
index eeb4774224c5..f0c5171b9499 100644
--- a/posthog/hogql/property.py
+++ b/posthog/hogql/property.py
@@ -26,6 +26,7 @@ from posthog.schema import (
HogQLPropertyFilter,
LogEntryPropertyFilter,
LogPropertyFilter,
+ PersonMetadataPropertyFilter,
PersonPropertyFilter,
PropertyGroupFilter,
PropertyGroupFilterValue,
@@ -63,6 +64,14 @@ from products.data_tools.backend.models.join import DataWarehouseJoin
from products.event_definitions.backend.models.property_definition import PropertyType
from products.warehouse_sources.backend.facade.hogql import get_view_or_table_by_name
+# Top-level columns on the persons table that the `person_metadata` filter type can target.
+# Keep in sync with the "person_metadata" group in
+# frontend/src/taxonomy/core-filter-definitions-by-group.json,
+# personMetadataPropertyDefinitions in frontend/src/models/propertyDefinitionsModel.ts,
+# and the per-field injection in rust/feature-flags/src/flags/flag_matching_utils.rs.
+# `test_person_metadata_fields_match_taxonomy` enforces the Python ↔ taxonomy half.
+PERSON_METADATA_FIELDS = {"created_at"}
+
def parse_semver(value: str) -> tuple[str, str, str]:
"""
@@ -714,6 +723,7 @@ def property_to_expr(
| ElementPropertyFilter
| SessionPropertyFilter
| EventMetadataPropertyFilter
+ | PersonMetadataPropertyFilter
| RevenueAnalyticsPropertyFilter
| CohortPropertyFilter
| RecordingPropertyFilter
@@ -848,6 +858,7 @@ def property_to_expr(
or property.type == "event_metadata"
or property.type == "feature"
or property.type == "person"
+ or property.type == "person_metadata"
or property.type == "group"
or property.type == "behavioral"
or property.type == "data_warehouse"
@@ -866,13 +877,16 @@ def property_to_expr(
or property.type == "workflow_variable"
):
if (
- (scope == "person" and property.type != "person")
+ (scope == "person" and property.type != "person" and property.type != "person_metadata")
or (scope == "session" and property.type != "session")
or (scope != "event" and property.type == "event_metadata")
or (scope == "revenue_analytics" and property.type != "revenue_analytics")
or (property.type == "revenue_analytics" and scope != "revenue_analytics")
):
raise QueryError(f"The '{property.type}' property filter does not work in '{scope}' scope")
+
+ if property.type == "person_metadata" and property.key not in PERSON_METADATA_FIELDS:
+ raise QueryError(f"Unsupported person_metadata field: '{property.key}'")
operator = cast(Optional[PropertyOperator], property.operator) or PropertyOperator.EXACT
value = property.value
@@ -893,6 +907,8 @@ def property_to_expr(
chain = ["person", "pdi"]
elif property.type == "person" and scope != "person":
chain = ["person", "properties"]
+ elif property.type == "person_metadata":
+ chain = ["person"] if scope != "person" else []
elif property.type == "event" and scope == "replay_entity":
chain = ["events", "properties"]
elif property.type == "session" and scope == "replay_entity":
diff --git a/posthog/hogql/test/test_property.py b/posthog/hogql/test/test_property.py
index 6755a02bdd2b..92432825a748 100644
--- a/posthog/hogql/test/test_property.py
+++ b/posthog/hogql/test/test_property.py
@@ -1215,6 +1215,98 @@ class TestProperty(BaseTest):
"The 'event_metadata' property filter does not work in 'person' scope",
)
+ @parameterized.expand(
+ [
+ # (name, scope, key, operator, value, expected_expr, expected_error)
+ (
+ "event_scope",
+ "event",
+ "created_at",
+ "is_date_after",
+ "2024-01-01",
+ "toDateTime(toString(person.created_at)) > toDateTime('2024-01-01')",
+ None,
+ ),
+ (
+ "person_scope",
+ "person",
+ "created_at",
+ "is_date_before",
+ "2024-01-01",
+ "toDateTime(toString(created_at)) < toDateTime('2024-01-01')",
+ None,
+ ),
+ (
+ "unsupported_field",
+ "event",
+ "is_identified",
+ "exact",
+ True,
+ None,
+ "Unsupported person_metadata field",
+ ),
+ ]
+ )
+ def test_property_to_expr_person_metadata(self, _name, scope, key, operator, value, expected_expr, expected_error):
+ prop = {"type": "person_metadata", "key": key, "value": value, "operator": operator}
+ if expected_error is not None:
+ with self.assertRaises(Exception) as e:
+ self._property_to_expr(prop, scope=scope)
+ self.assertIn(expected_error, str(e.exception))
+ else:
+ self.assertEqual(self._property_to_expr(prop, scope=scope), self._parse_expr(expected_expr))
+
+ def test_person_metadata_fields_match_taxonomy(self):
+ """
+ Guards Python ↔ taxonomy drift only: asserts PERSON_METADATA_FIELDS matches the
+ "person_metadata" group in core-filter-definitions-by-group.json.
+
+ NOTE: person_metadata fields are also declared in propertyDefinitionsModel.ts
+ (personMetadataPropertyDefinitions), which this test does NOT check. The Rust
+ PERSON_METADATA_FIELDS is guarded separately by test_person_metadata_fields_match_rust.
+ """
+ import json
+ from pathlib import Path
+
+ from posthog.hogql.property import PERSON_METADATA_FIELDS
+
+ repo_root = Path(__file__).resolve().parents[3]
+ taxonomy_path = repo_root / "frontend/src/taxonomy/core-filter-definitions-by-group.json"
+ taxonomy = json.loads(taxonomy_path.read_text())
+ taxonomy_keys = set(taxonomy.get("person_metadata", {}).keys())
+ self.assertEqual(
+ PERSON_METADATA_FIELDS,
+ taxonomy_keys,
+ "PERSON_METADATA_FIELDS in posthog/hogql/property.py must match the "
+ "person_metadata group in core-filter-definitions-by-group.json. "
+ "Update both, plus propertyDefinitionsModel.ts and the Rust injection.",
+ )
+
+ def test_person_metadata_fields_match_rust(self):
+ """
+ Guards Python ↔ Rust drift: asserts PERSON_METADATA_FIELDS matches the Rust slice in
+ property_matching.rs. Without this, adding a field on the Python side (so it validates
+ and saves) without updating Rust leaves the matcher's `_ => continue` arm skipping the
+ field, so /flags/ evaluation silently matches nobody for it with no error.
+ """
+ import re
+ from pathlib import Path
+
+ from posthog.hogql.property import PERSON_METADATA_FIELDS
+
+ repo_root = Path(__file__).resolve().parents[3]
+ rust_src = (repo_root / "rust/feature-flags/src/properties/property_matching.rs").read_text()
+ match = re.search(r"PERSON_METADATA_FIELDS:\s*&\[&str\]\s*=\s*&\[(.*?)\]", rust_src, re.S)
+ assert match is not None, "could not find PERSON_METADATA_FIELDS in property_matching.rs"
+ rust_fields = set(re.findall(r'"([^"]+)"', match.group(1)))
+ self.assertEqual(
+ PERSON_METADATA_FIELDS,
+ rust_fields,
+ "PERSON_METADATA_FIELDS in posthog/hogql/property.py must match the Rust slice in "
+ "rust/feature-flags/src/properties/property_matching.rs. Update both, and add a match "
+ "arm in flag_matching_utils::apply_person_cohort_to_state for any new field.",
+ )
+
def test_virtual_person_properties_on_person_scope(self):
assert self._property_to_expr(
{"type": "person", "key": "$virt_initial_channel_type", "value": "Organic Search"}, scope="person"
diff --git a/posthog/hogql_queries/hogql_cohort_query.py b/posthog/hogql_queries/hogql_cohort_query.py
index d0fc0c5cefa0..4f44d1775c0e 100644
--- a/posthog/hogql_queries/hogql_cohort_query.py
+++ b/posthog/hogql_queries/hogql_cohort_query.py
@@ -21,6 +21,7 @@ from posthog.schema import (
HogQLPropertyFilter,
HogQLQueryModifiers,
InsightActorsQuery,
+ PersonMetadataPropertyFilter,
PersonPropertyFilter,
PersonsOnEventsMode,
PropertyGroupFilterValue,
@@ -530,6 +531,20 @@ class HogQLCohortQuery:
query_runner = ActorsQueryRunner(team=self.team, query=actors_query)
return query_runner.to_query()
+ def get_person_metadata_condition(self, prop: Property) -> ast.SelectQuery:
+ # type = "person_metadata"
+ # key = "created_at" (a top-level column on the persons table, not properties JSON)
+ actors_query = ActorsQuery(
+ properties=[
+ PersonMetadataPropertyFilter(
+ key=prop.key, value=prop.value, operator=prop.operator or PropertyOperator.EXACT
+ )
+ ],
+ select=["id"],
+ )
+ query_runner = ActorsQueryRunner(team=self.team, query=actors_query)
+ return query_runner.to_query()
+
def get_static_cohort_condition(self, prop: Property) -> ast.SelectQuery:
# Convert the cohort id to an int (not the no-op typing.cast) and bind it as a parameter.
# prop.value is normally a cohort pk, but an internal cohort property smuggled through the
@@ -581,6 +596,8 @@ class HogQLCohortQuery:
raise ValueError(f"Invalid behavioral property value for Cohort: {prop.value}")
elif prop.type == "person":
return self.get_person_condition(prop)
+ elif prop.type == "person_metadata":
+ return self.get_person_metadata_condition(prop)
elif prop.type == "static-cohort": # static cohorts are handled by flattening during initialization
return self.get_static_cohort_condition(prop)
elif prop.type == "dynamic-cohort":
@@ -1489,6 +1506,15 @@ class HogQLRealtimeCohortQuery(HogQLCohortQuery):
"Only dynamic cohorts and behavioral filters are supported for realtime calculation."
)
+ def get_person_metadata_condition(self, prop: Property) -> ast.SelectQuery:
+ # TODO: realtime cohorts read from precalculated_person_properties keyed by conditionHash, which only
+ # carries values from the persons properties JSON blob — top-level columns like created_at are not
+ # exposed. Extend the realtime backfill/consumer if/when there's demand.
+ raise ValueError(
+ "Realtime cohorts do not support 'person_metadata' filters. "
+ "Use a non-realtime cohort to filter on top-level person columns like created_at."
+ )
+
def get_performed_event_sequence(self, prop: Property) -> ast.SelectQuery:
"""
Realtime cohorts do not support performed_event_sequence.
diff --git a/posthog/hogql_queries/test/test_hogql_cohort_query.py b/posthog/hogql_queries/test/test_hogql_cohort_query.py
index fbc2a3d144f5..a5e9fda113d2 100644
--- a/posthog/hogql_queries/test/test_hogql_cohort_query.py
+++ b/posthog/hogql_queries/test/test_hogql_cohort_query.py
@@ -1,7 +1,11 @@
import datetime as dt
+from datetime import datetime
+from typing import cast
from uuid import UUID, uuid4
+from zoneinfo import ZoneInfo
-from posthog.test.base import APIBaseTest, ClickhouseTestMixin
+from freezegun import freeze_time
+from posthog.test.base import APIBaseTest, ClickhouseTestMixin, _create_person, flush_persons_and_events
from unittest.mock import MagicMock, patch
from parameterized import parameterized
@@ -433,6 +437,191 @@ class TestHogQLCohortQuery(ClickhouseTestMixin, APIBaseTest):
# Should not use the OR optimization (which would create a single query with OR logic)
self.assertNotIn("or(", query_str)
+ def test_person_metadata_created_at_cohort(self) -> None:
+ cohort_filters = {
+ "type": "AND",
+ "values": [
+ {
+ "type": "AND",
+ "values": [
+ {
+ "key": "created_at",
+ "type": "person_metadata",
+ "value": "2024-01-01",
+ "operator": "is_date_after",
+ }
+ ],
+ }
+ ],
+ }
+ cohort = Cohort.objects.create(
+ team=self.team, name="created after 2024", filters={"properties": cohort_filters}
+ )
+
+ hogql_query = HogQLCohortQuery(cohort=cohort)
+ query_str = hogql_query.query_str("clickhouse")
+
+ self.assertIn("created_at", query_str)
+ # Should compare against the persons table column, not the properties JSON blob
+ self.assertNotIn("properties___created_at", query_str)
+
+ def test_person_metadata_cohort_membership_end_to_end(self) -> None:
+ # Persons need a deterministic created_at in BOTH Postgres and ClickHouse.
+ # _create_person with immediate=True under freeze_time writes both stores; we also
+ # pass created_at explicitly so the assertion stays valid even if Postgres stops
+ # using auto_now_add or default=timezone.now in a future migration.
+ utc = ZoneInfo("UTC")
+ old_dt = datetime(2023, 1, 1, tzinfo=utc)
+ new_dt = datetime(2025, 1, 1, tzinfo=utc)
+ with freeze_time(old_dt):
+ old_person = _create_person(
+ team=self.team,
+ distinct_ids=["old"],
+ properties={"name": "old user"},
+ created_at=old_dt,
+ immediate=True,
+ )
+ with freeze_time(new_dt):
+ new_person = _create_person(
+ team=self.team,
+ distinct_ids=["new"],
+ properties={"name": "new user"},
+ created_at=new_dt,
+ immediate=True,
+ )
+ flush_persons_and_events()
+
+ cohort = cast(
+ Cohort,
+ Cohort.objects.create(
+ team=self.team,
+ name="created after 2024",
+ filters={
+ "properties": {
+ "type": "AND",
+ "values": [
+ {
+ "type": "AND",
+ "values": [
+ {
+ "key": "created_at",
+ "type": "person_metadata",
+ "value": "2024-06-01",
+ "operator": "is_date_after",
+ }
+ ],
+ }
+ ],
+ }
+ },
+ ),
+ )
+ cohort.calculate_people_ch(pending_version=0)
+
+ from posthog.clickhouse.client.execute import sync_execute
+
+ rows = sync_execute(
+ "SELECT person_id FROM cohortpeople WHERE cohort_id = %(cohort_id)s AND team_id = %(team_id)s "
+ "GROUP BY person_id, cohort_id, team_id, version HAVING sum(sign) > 0",
+ {"cohort_id": cohort.pk, "team_id": self.team.pk},
+ )
+ member_ids = {str(row[0]) for row in rows}
+ self.assertIn(str(new_person.uuid), member_ids)
+ self.assertNotIn(str(old_person.uuid), member_ids)
+
+ def test_person_metadata_cohort_membership_negated_end_to_end(self) -> None:
+ # Mirror of the is_date_after test with is_date_before, so membership inverts: the OLD
+ # person should be in the cohort and the NEW person should not. Covers the operator whose
+ # missing-value default differs in the Rust matcher (the silent-grant class).
+ utc = ZoneInfo("UTC")
+ old_dt = datetime(2023, 1, 1, tzinfo=utc)
+ new_dt = datetime(2025, 1, 1, tzinfo=utc)
+ with freeze_time(old_dt):
+ old_person = _create_person(
+ team=self.team,
+ distinct_ids=["old_neg"],
+ properties={"name": "old user"},
+ created_at=old_dt,
+ immediate=True,
+ )
+ with freeze_time(new_dt):
+ new_person = _create_person(
+ team=self.team,
+ distinct_ids=["new_neg"],
+ properties={"name": "new user"},
+ created_at=new_dt,
+ immediate=True,
+ )
+ flush_persons_and_events()
+
+ cohort = cast(
+ Cohort,
+ Cohort.objects.create(
+ team=self.team,
+ name="created before 2024",
+ filters={
+ "properties": {
+ "type": "AND",
+ "values": [
+ {
+ "type": "AND",
+ "values": [
+ {
+ "key": "created_at",
+ "type": "person_metadata",
+ "value": "2024-06-01",
+ "operator": "is_date_before",
+ }
+ ],
+ }
+ ],
+ }
+ },
+ ),
+ )
+ cohort.calculate_people_ch(pending_version=0)
+
+ from posthog.clickhouse.client.execute import sync_execute
+
+ rows = sync_execute(
+ "SELECT person_id FROM cohortpeople WHERE cohort_id = %(cohort_id)s AND team_id = %(team_id)s "
+ "GROUP BY person_id, cohort_id, team_id, version HAVING sum(sign) > 0",
+ {"cohort_id": cohort.pk, "team_id": self.team.pk},
+ )
+ member_ids = {str(row[0]) for row in rows}
+ self.assertIn(str(old_person.uuid), member_ids)
+ self.assertNotIn(str(new_person.uuid), member_ids)
+
+ def test_person_metadata_realtime_cohort_raises_error(self) -> None:
+ cohort = Cohort.objects.create(
+ team=self.team,
+ name="created after 2024 realtime",
+ filters={
+ "properties": {
+ "type": "AND",
+ "values": [
+ {
+ "type": "AND",
+ "values": [
+ {
+ "key": "created_at",
+ "type": "person_metadata",
+ "value": "2024-06-01",
+ "operator": "is_date_after",
+ "conditionHash": "test_pm_hash",
+ }
+ ],
+ }
+ ],
+ }
+ },
+ )
+
+ hogql_query = HogQLRealtimeCohortQuery(cohort=cohort)
+ with self.assertRaises(ValueError) as ctx:
+ hogql_query.query_str("clickhouse")
+ self.assertIn("person_metadata", str(ctx.exception))
+
def test_static_cohort_condition_rejects_cross_project_cohort(self) -> None:
from posthog.models.organization import Organization
diff --git a/posthog/models/property/property.py b/posthog/models/property/property.py
index e120cbe9211f..65c0c9c300f9 100644
--- a/posthog/models/property/property.py
+++ b/posthog/models/property/property.py
@@ -25,6 +25,7 @@ PropertyType = Literal[
"event_metadata",
"feature",
"person",
+ "person_metadata",
"cohort",
"element",
"static-cohort",
@@ -95,6 +96,7 @@ VALIDATE_PROP_TYPES = {
"event": ["key", "value"],
"event_metadata": ["key", "value"],
"person": ["key", "value"],
+ "person_metadata": ["key", "value"],
"data_warehouse": ["key", "value"],
"data_warehouse_person_property": ["key", "value"],
"error_tracking_issue": ["key", "value"],
diff --git a/posthog/schema.py b/posthog/schema.py
index 8d6fa9903776..cd2fbdc6264d 100644
--- a/posthog/schema.py
+++ b/posthog/schema.py
@@ -6046,6 +6046,20 @@ class PathsFilter(BaseModel):
stepLimit: int | None = 5
+class PersonMetadataPropertyFilter(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ key: str
+ label: str | None = None
+ operator: PropertyOperator
+ type: Literal["person_metadata"] = Field(
+ default="person_metadata",
+ description=("Top-level columns on the persons table (e.g. created_at), not properties JSON"),
+ )
+ value: list[str | float | bool] | str | float | bool | None = None
+
+
class PersonPropertyFilter(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -13541,6 +13555,7 @@ class ConversionGoalFilter1(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -13591,6 +13606,7 @@ class ConversionGoalFilter1(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -13628,6 +13644,7 @@ class ConversionGoalFilter2(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -13677,6 +13694,7 @@ class ConversionGoalFilter2(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -13716,6 +13734,7 @@ class ConversionGoalFilter3(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -13766,6 +13785,7 @@ class ConversionGoalFilter3(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -13806,6 +13826,7 @@ class DashboardFilter(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -14836,6 +14857,7 @@ class DataWarehouseNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -14886,6 +14908,7 @@ class DataWarehouseNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -15189,6 +15212,7 @@ class EntityNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -15237,6 +15261,7 @@ class EntityNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -15343,6 +15368,7 @@ class ErrorTrackingIssueFilteringToolOutput(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -15535,6 +15561,7 @@ class EventsNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -15585,6 +15612,7 @@ class EventsNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -15621,6 +15649,7 @@ class EventsQueryActionStep(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -15730,6 +15759,7 @@ class ExperimentDataWarehouseNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -15778,6 +15808,7 @@ class ExperimentDataWarehouseNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -15814,6 +15845,7 @@ class ExperimentEventExposureConfig(BaseModel):
properties: list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -15847,6 +15879,7 @@ class FeatureFlagGroupType(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -15929,6 +15962,7 @@ class FunnelExclusionActionsNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -15980,6 +16014,7 @@ class FunnelExclusionActionsNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -16015,6 +16050,7 @@ class FunnelExclusionEventsNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -16067,6 +16103,7 @@ class FunnelExclusionEventsNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -16103,6 +16140,7 @@ class FunnelsDataWarehouseNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -16153,6 +16191,7 @@ class FunnelsDataWarehouseNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -16325,6 +16364,7 @@ class HogQLFilters(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -16512,6 +16552,7 @@ class LifecycleDataWarehouseNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -16561,6 +16602,7 @@ class LifecycleDataWarehouseNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -17402,6 +17444,7 @@ class PersonsNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -17434,6 +17477,7 @@ class PersonsNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -17480,6 +17524,7 @@ class PropertyGroupFilterValue(BaseModel):
PropertyGroupFilterValue
| EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -21289,6 +21334,7 @@ class RetentionEntity(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -21719,6 +21765,7 @@ class TileFilters(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -21755,6 +21802,7 @@ class TraceNeighborsQuery(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -21798,6 +21846,7 @@ class TraceQuery(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -21878,6 +21927,7 @@ class TracesQuery(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -22395,6 +22445,7 @@ class ActionsNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -22444,6 +22495,7 @@ class ActionsNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -23523,6 +23575,7 @@ class MCPHarnessBreakdownQuery(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -23970,6 +24023,7 @@ class RecordingsQuery(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -24021,6 +24075,7 @@ class RecordingsQuery(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -24074,6 +24129,7 @@ class RetentionQuery(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -24128,6 +24184,7 @@ class StickinessQuery(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -24475,6 +24532,7 @@ class CalendarHeatmapQuery(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -24814,6 +24872,7 @@ class GroupNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -24868,6 +24927,7 @@ class GroupNode(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -24910,6 +24970,7 @@ class InsightsQueryBaseCalendarHeatmapResponse(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -24955,6 +25016,7 @@ class InsightsQueryBaseFunnelsQueryResponse(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -25000,6 +25062,7 @@ class InsightsQueryBaseLifecycleQueryResponse(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -25045,6 +25108,7 @@ class InsightsQueryBasePathsQueryResponse(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -25090,6 +25154,7 @@ class InsightsQueryBaseRetentionQueryResponse(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -25135,6 +25200,7 @@ class InsightsQueryBaseTrendsQueryResponse(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -25194,6 +25260,7 @@ class LifecycleQuery(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -25333,6 +25400,7 @@ class SessionsQuery(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -25364,6 +25432,7 @@ class SessionsQuery(BaseModel):
| PropertyGroupFilterValue
| EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -25398,6 +25467,7 @@ class SessionsQuery(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -25478,6 +25548,7 @@ class TrendsQuery(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -25760,6 +25831,7 @@ class FunnelsQuery(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -26141,6 +26213,7 @@ class PathsQuery(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -26884,6 +26957,7 @@ class FunnelCorrelationActorsQuery(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -26987,6 +27061,7 @@ class SessionBatchEventsQuery(BaseModel):
| PropertyGroupFilterValue
| EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -27025,6 +27100,7 @@ class SessionBatchEventsQuery(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -27063,7 +27139,14 @@ class ActorsQuery(BaseModel):
extra="forbid",
)
fixedProperties: (
- list[PersonPropertyFilter | CohortPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter] | None
+ list[
+ PersonPropertyFilter
+ | PersonMetadataPropertyFilter
+ | CohortPropertyFilter
+ | HogQLPropertyFilter
+ | EmptyPropertyFilter
+ ]
+ | None
) = Field(
default=None,
description=(
@@ -27077,7 +27160,13 @@ class ActorsQuery(BaseModel):
offset: int | None = None
orderBy: list[str] | None = None
properties: (
- list[PersonPropertyFilter | CohortPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter]
+ list[
+ PersonPropertyFilter
+ | PersonMetadataPropertyFilter
+ | CohortPropertyFilter
+ | HogQLPropertyFilter
+ | EmptyPropertyFilter
+ ]
| PropertyGroupFilterValue
| None
) = Field(
@@ -27129,6 +27218,7 @@ class EventsQuery(BaseModel):
| PropertyGroupFilterValue
| EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
@@ -27163,6 +27253,7 @@ class EventsQuery(BaseModel):
list[
EventPropertyFilter
| PersonPropertyFilter
+ | PersonMetadataPropertyFilter
| ElementPropertyFilter
| EventMetadataPropertyFilter
| SessionPropertyFilter
diff --git a/posthog/schema_enums.py b/posthog/schema_enums.py
index 861f983c4d03..f7c010bf1896 100644
--- a/posthog/schema_enums.py
+++ b/posthog/schema_enums.py
@@ -2799,6 +2799,7 @@ class PropertyFilterType(StrEnum):
INTERNAL_EVENT = "internal_event"
EVENT_METADATA = "event_metadata"
PERSON = "person"
+ PERSON_METADATA = "person_metadata"
ELEMENT = "element"
FEATURE = "feature"
SESSION = "session"
@@ -3282,6 +3283,7 @@ class TaxonomicFilterGroupType(StrEnum):
EVENT_METADATA = "event_metadata"
NUMERICAL_EVENT_PROPERTIES = "numerical_event_properties"
PERSON_PROPERTIES = "person_properties"
+ PERSON_METADATA = "person_metadata"
PAGEVIEW_URLS = "pageview_urls"
PAGEVIEW_EVENTS = "pageview_events"
SCREENS = "screens"
diff --git a/posthog/settings/web.py b/posthog/settings/web.py
index 23238a7fd233..4f0813b75070 100644
--- a/posthog/settings/web.py
+++ b/posthog/settings/web.py
@@ -572,6 +572,7 @@ SPECTACULAR_SETTINGS = {
"event_metadata",
"feature",
"person",
+ "person_metadata",
"cohort",
"element",
"static-cohort",
diff --git a/posthog/taxonomy/taxonomy.py b/posthog/taxonomy/taxonomy.py
index 23fc3c57a2cf..660db20fd500 100644
--- a/posthog/taxonomy/taxonomy.py
+++ b/posthog/taxonomy/taxonomy.py
@@ -3341,6 +3341,15 @@ CORE_FILTER_DEFINITIONS_BY_GROUP: dict[str, dict[str, CoreFilterDefinition]] = {
},
},
"numerical_event_properties": {},
+ "person_metadata": {
+ # Top-level persons-table columns surfaced as filterable "person metadata", distinct from
+ # the person properties JSON. Keep in sync with PERSON_METADATA_FIELDS in posthog/hogql/property.py.
+ "created_at": {
+ "label": "First seen",
+ "description": "The time when the person was first seen.",
+ "type": "DateTime",
+ },
+ },
"person_properties": {
"email": {
"label": "Email address",
diff --git a/posthog/types.py b/posthog/types.py
index f90a3b9b0aca..1795ac5b6c5d 100644
--- a/posthog/types.py
+++ b/posthog/types.py
@@ -30,6 +30,7 @@ from posthog.schema import (
LogEntryPropertyFilter,
LogPropertyFilter,
PathsQuery,
+ PersonMetadataPropertyFilter,
PersonPropertyFilter,
RecordingPropertyFilter,
RetentionQuery,
@@ -59,6 +60,7 @@ type InsightActorsQueryNode = Union[
type AnyPropertyFilter = Union[
EventPropertyFilter,
PersonPropertyFilter,
+ PersonMetadataPropertyFilter,
ElementPropertyFilter,
EventMetadataPropertyFilter,
RevenueAnalyticsPropertyFilter,
diff --git a/products/actions/frontend/generated/api.schemas.ts b/products/actions/frontend/generated/api.schemas.ts
index c95e084c6af1..0e7fb5ac841a 100644
--- a/products/actions/frontend/generated/api.schemas.ts
+++ b/products/actions/frontend/generated/api.schemas.ts
@@ -12,6 +12,7 @@
* * `event_metadata` - event_metadata
* * `feature` - feature
* * `person` - person
+ * * `person_metadata` - person_metadata
* * `cohort` - cohort
* * `element` - element
* * `static-cohort` - static-cohort
@@ -43,6 +44,7 @@ export const PropertyFilterTypeEnumApi = {
EventMetadata: 'event_metadata',
Feature: 'feature',
Person: 'person',
+ PersonMetadata: 'person_metadata',
Cohort: 'cohort',
Element: 'element',
StaticCohort: 'static-cohort',
@@ -99,6 +101,7 @@ export interface StringPropertyFilterApi {
* * `event_metadata` - event_metadata
* * `feature` - feature
* * `person` - person
+ * * `person_metadata` - person_metadata
* * `cohort` - cohort
* * `element` - element
* * `static-cohort` - static-cohort
@@ -168,6 +171,7 @@ export interface NumericPropertyFilterApi {
* * `event_metadata` - event_metadata
* * `feature` - feature
* * `person` - person
+ * * `person_metadata` - person_metadata
* * `cohort` - cohort
* * `element` - element
* * `static-cohort` - static-cohort
@@ -233,6 +237,7 @@ export interface ArrayPropertyFilterApi {
* * `event_metadata` - event_metadata
* * `feature` - feature
* * `person` - person
+ * * `person_metadata` - person_metadata
* * `cohort` - cohort
* * `element` - element
* * `static-cohort` - static-cohort
@@ -293,6 +298,7 @@ export interface DatePropertyFilterApi {
* * `event_metadata` - event_metadata
* * `feature` - feature
* * `person` - person
+ * * `person_metadata` - person_metadata
* * `cohort` - cohort
* * `element` - element
* * `static-cohort` - static-cohort
@@ -350,6 +356,7 @@ export interface ExistencePropertyFilterApi {
* * `event_metadata` - event_metadata
* * `feature` - feature
* * `person` - person
+ * * `person_metadata` - person_metadata
* * `cohort` - cohort
* * `element` - element
* * `static-cohort` - static-cohort
diff --git a/products/actions/frontend/generated/api.zod.ts b/products/actions/frontend/generated/api.zod.ts
index 115669dedd6c..0710f83ae94f 100644
--- a/products/actions/frontend/generated/api.zod.ts
+++ b/products/actions/frontend/generated/api.zod.ts
@@ -64,6 +64,7 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -89,11 +90,11 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
)
.default(actionsCreateBodyStepsItemPropertiesItemOneTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
),
value: zod.string().describe('String value to match against.'),
operator: zod
@@ -127,6 +128,7 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -152,11 +154,11 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
)
.default(actionsCreateBodyStepsItemPropertiesItemTwoTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
),
value: zod.number().describe('Numeric value to compare against.'),
operator: zod
@@ -183,6 +185,7 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -208,11 +211,11 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
)
.default(actionsCreateBodyStepsItemPropertiesItemThreeTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
),
value: zod
.array(zod.string())
@@ -245,6 +248,7 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -270,11 +274,11 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
)
.default(actionsCreateBodyStepsItemPropertiesItemFourTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
),
value: zod
.string()
@@ -305,6 +309,7 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -330,11 +335,11 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
)
.default(actionsCreateBodyStepsItemPropertiesItemFiveTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
),
operator: zod
.enum(['is_set', 'is_not_set'])
@@ -468,6 +473,7 @@ export const ActionsUpdateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -493,11 +499,11 @@ export const ActionsUpdateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
)
.default(actionsUpdateBodyStepsItemPropertiesItemOneTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
),
value: zod.string().describe('String value to match against.'),
operator: zod
@@ -531,6 +537,7 @@ export const ActionsUpdateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -556,11 +563,11 @@ export const ActionsUpdateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
)
.default(actionsUpdateBodyStepsItemPropertiesItemTwoTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
),
value: zod.number().describe('Numeric value to compare against.'),
operator: zod
@@ -587,6 +594,7 @@ export const ActionsUpdateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -612,11 +620,11 @@ export const ActionsUpdateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
)
.default(actionsUpdateBodyStepsItemPropertiesItemThreeTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
),
value: zod
.array(zod.string())
@@ -649,6 +657,7 @@ export const ActionsUpdateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -674,11 +683,11 @@ export const ActionsUpdateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
)
.default(actionsUpdateBodyStepsItemPropertiesItemFourTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
),
value: zod
.string()
@@ -709,6 +718,7 @@ export const ActionsUpdateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -734,11 +744,11 @@ export const ActionsUpdateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
)
.default(actionsUpdateBodyStepsItemPropertiesItemFiveTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
),
operator: zod
.enum(['is_set', 'is_not_set'])
@@ -872,6 +882,7 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -897,11 +908,11 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
)
.default(actionsPartialUpdateBodyStepsItemPropertiesItemOneTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
),
value: zod.string().describe('String value to match against.'),
operator: zod
@@ -935,6 +946,7 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -960,11 +972,11 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
)
.default(actionsPartialUpdateBodyStepsItemPropertiesItemTwoTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
),
value: zod.number().describe('Numeric value to compare against.'),
operator: zod
@@ -991,6 +1003,7 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -1016,11 +1029,11 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
)
.default(actionsPartialUpdateBodyStepsItemPropertiesItemThreeTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
),
value: zod
.array(zod.string())
@@ -1055,6 +1068,7 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -1080,11 +1094,11 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
)
.default(actionsPartialUpdateBodyStepsItemPropertiesItemFourTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
),
value: zod
.string()
@@ -1115,6 +1129,7 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -1140,11 +1155,11 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
)
.default(actionsPartialUpdateBodyStepsItemPropertiesItemFiveTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
),
operator: zod
.enum(['is_set', 'is_not_set'])
diff --git a/products/cohorts/frontend/generated/api.schemas.ts b/products/cohorts/frontend/generated/api.schemas.ts
index a96fb21d8f59..b63b65c69998 100644
--- a/products/cohorts/frontend/generated/api.schemas.ts
+++ b/products/cohorts/frontend/generated/api.schemas.ts
@@ -69,13 +69,28 @@ export interface CohortFilterApi {
}
export interface PersonFilterApi {
+ operator?: string | null
+ value?: unknown
bytecode?: unknown[] | null
bytecode_error?: string | null
conditionHash?: string | null
type: 'person'
key: string
+ negation?: boolean
+}
+
+/**
+ * Filter on a top-level persons-table column (e.g. created_at) rather than the
+ * properties JSON. The matching key must be one of PERSON_METADATA_FIELDS.
+ */
+export interface PersonMetadataFilterApi {
operator?: string | null
value?: unknown
+ bytecode?: unknown[] | null
+ bytecode_error?: string | null
+ conditionHash?: string | null
+ type: 'person_metadata'
+ key: string
negation?: boolean
}
@@ -84,7 +99,7 @@ export interface PersonFilterApi {
*/
export interface CohortFilterGroupApi {
type: PropertyGroupOperatorApi
- values: (BehavioralFilterApi | CohortFilterApi | PersonFilterApi | CohortFilterGroupApi)[]
+ values: (BehavioralFilterApi | CohortFilterApi | PersonFilterApi | PersonMetadataFilterApi | CohortFilterGroupApi)[]
}
export interface CohortFiltersApi {
diff --git a/products/dashboards/frontend/generated/api.schemas.ts b/products/dashboards/frontend/generated/api.schemas.ts
index b690b7d1ef88..73e984091da2 100644
--- a/products/dashboards/frontend/generated/api.schemas.ts
+++ b/products/dashboards/frontend/generated/api.schemas.ts
@@ -1186,6 +1186,15 @@ export interface PersonPropertyFilterApi {
value?: (string | number | boolean)[] | string | number | boolean | null
}
+export interface PersonMetadataPropertyFilterApi {
+ key: string
+ label?: string | null
+ operator: PropertyOperatorApi
+ /** Top-level columns on the persons table (e.g. created_at), not properties JSON */
+ type?: 'person_metadata'
+ value?: (string | number | boolean)[] | string | number | boolean | null
+}
+
export type Key10Api = (typeof Key10Api)[keyof typeof Key10Api]
export const Key10Api = {
@@ -1375,6 +1384,7 @@ export interface PropertyGroupFilterValueApi {
| PropertyGroupFilterValueApi
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1750,6 +1760,7 @@ export interface EventsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1797,6 +1808,7 @@ export interface EventsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1831,6 +1843,7 @@ export interface ActionsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1876,6 +1889,7 @@ export interface ActionsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1912,6 +1926,7 @@ export interface DataWarehouseNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1958,6 +1973,7 @@ export interface DataWarehouseNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1994,6 +2010,7 @@ export interface GroupNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2045,6 +2062,7 @@ export interface GroupNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2315,6 +2333,7 @@ export interface TrendsQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2369,6 +2388,7 @@ export interface FunnelExclusionEventsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2418,6 +2438,7 @@ export interface FunnelExclusionEventsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2452,6 +2473,7 @@ export interface FunnelExclusionActionsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2499,6 +2521,7 @@ export interface FunnelExclusionActionsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2643,6 +2666,7 @@ export interface FunnelsDataWarehouseNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2689,6 +2713,7 @@ export interface FunnelsDataWarehouseNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2741,6 +2766,7 @@ export interface FunnelsQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2894,6 +2920,7 @@ export interface RetentionEntityApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2982,6 +3009,7 @@ export interface RetentionQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -3113,6 +3141,7 @@ export interface PathsQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -3232,6 +3261,7 @@ export interface StickinessQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -3319,6 +3349,7 @@ export interface LifecycleDataWarehouseNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -3364,6 +3395,7 @@ export interface LifecycleDataWarehouseNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -3414,6 +3446,7 @@ export interface LifecycleQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -4742,6 +4775,7 @@ export const TaxonomicFilterGroupTypeApi = {
EventMetadata: 'event_metadata',
NumericalEventProperties: 'numerical_event_properties',
PersonProperties: 'person_properties',
+ PersonMetadata: 'person_metadata',
PageviewUrls: 'pageview_urls',
PageviewEvents: 'pageview_events',
Screens: 'screens',
@@ -4815,6 +4849,7 @@ export interface EventsQueryActionStepApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -4952,6 +4987,7 @@ export interface EventsQueryApi {
| PropertyGroupFilterValueApi
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -4988,6 +5024,7 @@ export interface EventsQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -5030,6 +5067,7 @@ export interface PersonsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -5060,6 +5098,7 @@ export interface PersonsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -5191,6 +5230,7 @@ export interface FunnelCorrelationActorsQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -5230,6 +5270,7 @@ export interface ExperimentEventExposureConfigApi {
properties: (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -5279,6 +5320,7 @@ export interface ExperimentDataWarehouseNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -5323,6 +5365,7 @@ export interface ExperimentDataWarehouseNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -5646,6 +5689,7 @@ export interface HogQLFiltersApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -5746,7 +5790,13 @@ export interface HogQLQueryApi {
export interface ActorsQueryApi {
/** Currently only person filters supported. No filters for querying groups. See `filter_conditions()` in actor_strategies.py. */
fixedProperties?:
- | (PersonPropertyFilterApi | CohortPropertyFilterApi | HogQLPropertyFilterApi | EmptyPropertyFilterApi)[]
+ | (
+ | PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
+ | CohortPropertyFilterApi
+ | HogQLPropertyFilterApi
+ | EmptyPropertyFilterApi
+ )[]
| null
kind?: 'ActorsQuery'
limit?: number | null
@@ -5756,7 +5806,13 @@ export interface ActorsQueryApi {
orderBy?: string[] | null
/** Currently only person filters supported. No filters for querying groups. See `filter_conditions()` in actor_strategies.py. */
properties?:
- | (PersonPropertyFilterApi | CohortPropertyFilterApi | HogQLPropertyFilterApi | EmptyPropertyFilterApi)[]
+ | (
+ | PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
+ | CohortPropertyFilterApi
+ | HogQLPropertyFilterApi
+ | EmptyPropertyFilterApi
+ )[]
| PropertyGroupFilterValueApi
| null
response?: ActorsQueryResponseApi | null
@@ -6164,6 +6220,7 @@ export interface SessionsQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -6193,6 +6250,7 @@ export interface SessionsQueryApi {
| PropertyGroupFilterValueApi
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -6229,6 +6287,7 @@ export interface SessionsQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -6539,6 +6598,7 @@ export interface ConversionGoalFilter1Api {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -6586,6 +6646,7 @@ export interface ConversionGoalFilter1Api {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -6625,6 +6686,7 @@ export interface ConversionGoalFilter2Api {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -6670,6 +6732,7 @@ export interface ConversionGoalFilter2Api {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -6711,6 +6774,7 @@ export interface ConversionGoalFilter3Api {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -6757,6 +6821,7 @@ export interface ConversionGoalFilter3Api {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -7267,6 +7332,7 @@ export interface TracesQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -7332,6 +7398,7 @@ export interface TraceQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
diff --git a/products/endpoints/frontend/generated/api.schemas.ts b/products/endpoints/frontend/generated/api.schemas.ts
index a30ae62ba7d8..a464cf9d268f 100644
--- a/products/endpoints/frontend/generated/api.schemas.ts
+++ b/products/endpoints/frontend/generated/api.schemas.ts
@@ -560,6 +560,15 @@ export interface PersonPropertyFilterApi {
value?: (string | number | boolean)[] | string | number | boolean | null
}
+export interface PersonMetadataPropertyFilterApi {
+ key: string
+ label?: string | null
+ operator: PropertyOperatorApi
+ /** Top-level columns on the persons table (e.g. created_at), not properties JSON */
+ type?: 'person_metadata'
+ value?: (string | number | boolean)[] | string | number | boolean | null
+}
+
export type Key10Api = (typeof Key10Api)[keyof typeof Key10Api]
export const Key10Api = {
@@ -752,6 +761,7 @@ export interface DashboardFilterApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
diff --git a/products/error_tracking/frontend/generated/api.schemas.ts b/products/error_tracking/frontend/generated/api.schemas.ts
index 9f8b49f9c1e8..1f2f89e25d8d 100644
--- a/products/error_tracking/frontend/generated/api.schemas.ts
+++ b/products/error_tracking/frontend/generated/api.schemas.ts
@@ -99,6 +99,15 @@ export interface PersonPropertyFilterApi {
value?: (string | number | boolean)[] | string | number | boolean | null
}
+export interface PersonMetadataPropertyFilterApi {
+ key: string
+ label?: string | null
+ operator: PropertyOperatorApi
+ /** Top-level columns on the persons table (e.g. created_at), not properties JSON */
+ type?: 'person_metadata'
+ value?: (string | number | boolean)[] | string | number | boolean | null
+}
+
export type Key10Api = (typeof Key10Api)[keyof typeof Key10Api]
export const Key10Api = {
@@ -288,6 +297,7 @@ export interface PropertyGroupFilterValueApi {
| PropertyGroupFilterValueApi
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -874,6 +884,7 @@ export const BlankEnumApi = {
* * `event_metadata` - event_metadata
* * `feature` - feature
* * `person` - person
+ * * `person_metadata` - person_metadata
* * `cohort` - cohort
* * `element` - element
* * `static-cohort` - static-cohort
@@ -905,6 +916,7 @@ export const PropertyFilterTypeEnumApi = {
EventMetadata: 'event_metadata',
Feature: 'feature',
Person: 'person',
+ PersonMetadata: 'person_metadata',
Cohort: 'cohort',
Element: 'element',
StaticCohort: 'static-cohort',
diff --git a/products/error_tracking/frontend/generated/api.zod.ts b/products/error_tracking/frontend/generated/api.zod.ts
index a4ade733b9ba..07ba0a180ac6 100644
--- a/products/error_tracking/frontend/generated/api.zod.ts
+++ b/products/error_tracking/frontend/generated/api.zod.ts
@@ -514,6 +514,7 @@ export const ErrorTrackingQueryIssueEventsCreateBody = /* @__PURE__ */ zod.objec
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -539,7 +540,7 @@ export const ErrorTrackingQueryIssueEventsCreateBody = /* @__PURE__ */ zod.objec
'workflow_variable',
])
.describe(
- '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
),
zod.enum(['']),
])
@@ -710,6 +711,7 @@ export const ErrorTrackingQueryIssuesListCreateBody = /* @__PURE__ */ zod.object
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -735,7 +737,7 @@ export const ErrorTrackingQueryIssuesListCreateBody = /* @__PURE__ */ zod.object
'workflow_variable',
])
.describe(
- '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
+ '\* `event` - event\n\* `event_metadata` - event_metadata\n\* `feature` - feature\n\* `person` - person\n\* `person_metadata` - person_metadata\n\* `cohort` - cohort\n\* `element` - element\n\* `static-cohort` - static-cohort\n\* `dynamic-cohort` - dynamic-cohort\n\* `precalculated-cohort` - precalculated-cohort\n\* `group` - group\n\* `recording` - recording\n\* `log_entry` - log_entry\n\* `behavioral` - behavioral\n\* `session` - session\n\* `hogql` - hogql\n\* `data_warehouse` - data_warehouse\n\* `data_warehouse_person_property` - data_warehouse_person_property\n\* `error_tracking_issue` - error_tracking_issue\n\* `log` - log\n\* `log_attribute` - log_attribute\n\* `log_resource_attribute` - log_resource_attribute\n\* `span` - span\n\* `span_attribute` - span_attribute\n\* `span_resource_attribute` - span_resource_attribute\n\* `revenue_analytics` - revenue_analytics\n\* `flag` - flag\n\* `workflow_variable` - workflow_variable'
),
zod.enum(['']),
])
diff --git a/products/feature_flags/backend/models/feature_flag.py b/products/feature_flags/backend/models/feature_flag.py
index fc208516d4ae..776e9c293884 100644
--- a/products/feature_flags/backend/models/feature_flag.py
+++ b/products/feature_flags/backend/models/feature_flag.py
@@ -364,6 +364,15 @@ class FeatureFlag(FileSystemSyncMixin, ModelActivityMixin, RootTeamMixin, models
return self.conditions
if not all(property.type == "person" for property in cohort.properties.flat):
+ # Cohorts containing non-person property types (e.g. behavioral, person_metadata)
+ # are deliberately not inlined into flag groups. They flow to SDKs as cohort
+ # references; modern SDKs raise InconclusiveMatchError on unknown property types
+ # and fall back to /flags/, where the Rust matcher handles them.
+ #
+ # Note: do NOT route person_metadata through the legacy posthog/queries/base.py
+ # paths (`property_to_Q` / `match_property`). Those don't recognize the type;
+ # `match_property` in particular dispatches purely on `key` and would silently
+ # produce a wrong-but-not-erroring result.
return self.conditions
if any(property.negation for property in cohort.properties.flat):
diff --git a/products/logs/frontend/generated/api.schemas.ts b/products/logs/frontend/generated/api.schemas.ts
index 411bc0e8a764..ebb078efe6bd 100644
--- a/products/logs/frontend/generated/api.schemas.ts
+++ b/products/logs/frontend/generated/api.schemas.ts
@@ -71,6 +71,15 @@ export interface PersonPropertyFilterApi {
value?: (string | number | boolean)[] | string | number | boolean | null
}
+export interface PersonMetadataPropertyFilterApi {
+ key: string
+ label?: string | null
+ operator: PropertyOperatorApi
+ /** Top-level columns on the persons table (e.g. created_at), not properties JSON */
+ type?: 'person_metadata'
+ value?: (string | number | boolean)[] | string | number | boolean | null
+}
+
export type Key10Api = (typeof Key10Api)[keyof typeof Key10Api]
export const Key10Api = {
@@ -260,6 +269,7 @@ export interface PropertyGroupFilterValueApi {
| PropertyGroupFilterValueApi
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
diff --git a/products/persons/frontend/generated/api.schemas.ts b/products/persons/frontend/generated/api.schemas.ts
index 4504f892b274..dc636671a50b 100644
--- a/products/persons/frontend/generated/api.schemas.ts
+++ b/products/persons/frontend/generated/api.schemas.ts
@@ -66,6 +66,7 @@ export const BlankEnumApi = {
* * `event_metadata` - event_metadata
* * `feature` - feature
* * `person` - person
+ * * `person_metadata` - person_metadata
* * `cohort` - cohort
* * `element` - element
* * `static-cohort` - static-cohort
@@ -97,6 +98,7 @@ export const PropertyFilterTypeEnumApi = {
EventMetadata: 'event_metadata',
Feature: 'feature',
Person: 'person',
+ PersonMetadata: 'person_metadata',
Cohort: 'cohort',
Element: 'element',
StaticCohort: 'static-cohort',
diff --git a/products/product_analytics/frontend/generated/api.schemas.ts b/products/product_analytics/frontend/generated/api.schemas.ts
index 9f698b350ecb..3e8ddde5be85 100644
--- a/products/product_analytics/frontend/generated/api.schemas.ts
+++ b/products/product_analytics/frontend/generated/api.schemas.ts
@@ -523,6 +523,15 @@ export interface PersonPropertyFilterApi {
value?: (string | number | boolean)[] | string | number | boolean | null
}
+export interface PersonMetadataPropertyFilterApi {
+ key: string
+ label?: string | null
+ operator: PropertyOperatorApi
+ /** Top-level columns on the persons table (e.g. created_at), not properties JSON */
+ type?: 'person_metadata'
+ value?: (string | number | boolean)[] | string | number | boolean | null
+}
+
export type Key10Api = (typeof Key10Api)[keyof typeof Key10Api]
export const Key10Api = {
@@ -712,6 +721,7 @@ export interface PropertyGroupFilterValueApi {
| PropertyGroupFilterValueApi
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1087,6 +1097,7 @@ export interface EventsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1134,6 +1145,7 @@ export interface EventsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1168,6 +1180,7 @@ export interface ActionsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1213,6 +1226,7 @@ export interface ActionsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1249,6 +1263,7 @@ export interface DataWarehouseNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1295,6 +1310,7 @@ export interface DataWarehouseNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1331,6 +1347,7 @@ export interface GroupNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1382,6 +1399,7 @@ export interface GroupNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1652,6 +1670,7 @@ export interface TrendsQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1706,6 +1725,7 @@ export interface FunnelExclusionEventsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1755,6 +1775,7 @@ export interface FunnelExclusionEventsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1789,6 +1810,7 @@ export interface FunnelExclusionActionsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1836,6 +1858,7 @@ export interface FunnelExclusionActionsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -1980,6 +2003,7 @@ export interface FunnelsDataWarehouseNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2026,6 +2050,7 @@ export interface FunnelsDataWarehouseNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2078,6 +2103,7 @@ export interface FunnelsQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2231,6 +2257,7 @@ export interface RetentionEntityApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2319,6 +2346,7 @@ export interface RetentionQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2450,6 +2478,7 @@ export interface PathsQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2569,6 +2598,7 @@ export interface StickinessQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2656,6 +2686,7 @@ export interface LifecycleDataWarehouseNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2701,6 +2732,7 @@ export interface LifecycleDataWarehouseNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -2751,6 +2783,7 @@ export interface LifecycleQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -4079,6 +4112,7 @@ export const TaxonomicFilterGroupTypeApi = {
EventMetadata: 'event_metadata',
NumericalEventProperties: 'numerical_event_properties',
PersonProperties: 'person_properties',
+ PersonMetadata: 'person_metadata',
PageviewUrls: 'pageview_urls',
PageviewEvents: 'pageview_events',
Screens: 'screens',
@@ -4152,6 +4186,7 @@ export interface EventsQueryActionStepApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -4289,6 +4324,7 @@ export interface EventsQueryApi {
| PropertyGroupFilterValueApi
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -4325,6 +4361,7 @@ export interface EventsQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -4367,6 +4404,7 @@ export interface PersonsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -4397,6 +4435,7 @@ export interface PersonsNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -4528,6 +4567,7 @@ export interface FunnelCorrelationActorsQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -4567,6 +4607,7 @@ export interface ExperimentEventExposureConfigApi {
properties: (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -4616,6 +4657,7 @@ export interface ExperimentDataWarehouseNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -4660,6 +4702,7 @@ export interface ExperimentDataWarehouseNodeApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -4983,6 +5026,7 @@ export interface HogQLFiltersApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -5083,7 +5127,13 @@ export interface HogQLQueryApi {
export interface ActorsQueryApi {
/** Currently only person filters supported. No filters for querying groups. See `filter_conditions()` in actor_strategies.py. */
fixedProperties?:
- | (PersonPropertyFilterApi | CohortPropertyFilterApi | HogQLPropertyFilterApi | EmptyPropertyFilterApi)[]
+ | (
+ | PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
+ | CohortPropertyFilterApi
+ | HogQLPropertyFilterApi
+ | EmptyPropertyFilterApi
+ )[]
| null
kind?: 'ActorsQuery'
limit?: number | null
@@ -5093,7 +5143,13 @@ export interface ActorsQueryApi {
orderBy?: string[] | null
/** Currently only person filters supported. No filters for querying groups. See `filter_conditions()` in actor_strategies.py. */
properties?:
- | (PersonPropertyFilterApi | CohortPropertyFilterApi | HogQLPropertyFilterApi | EmptyPropertyFilterApi)[]
+ | (
+ | PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
+ | CohortPropertyFilterApi
+ | HogQLPropertyFilterApi
+ | EmptyPropertyFilterApi
+ )[]
| PropertyGroupFilterValueApi
| null
response?: ActorsQueryResponseApi | null
@@ -5501,6 +5557,7 @@ export interface SessionsQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -5530,6 +5587,7 @@ export interface SessionsQueryApi {
| PropertyGroupFilterValueApi
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -5566,6 +5624,7 @@ export interface SessionsQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -5876,6 +5935,7 @@ export interface ConversionGoalFilter1Api {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -5923,6 +5983,7 @@ export interface ConversionGoalFilter1Api {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -5962,6 +6023,7 @@ export interface ConversionGoalFilter2Api {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -6007,6 +6069,7 @@ export interface ConversionGoalFilter2Api {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -6048,6 +6111,7 @@ export interface ConversionGoalFilter3Api {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -6094,6 +6158,7 @@ export interface ConversionGoalFilter3Api {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -6604,6 +6669,7 @@ export interface TracesQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
@@ -6669,6 +6735,7 @@ export interface TraceQueryApi {
| (
| EventPropertyFilterApi
| PersonPropertyFilterApi
+ | PersonMetadataPropertyFilterApi
| ElementPropertyFilterApi
| EventMetadataPropertyFilterApi
| SessionPropertyFilterApi
diff --git a/rust/feature-flags/src/api/types.rs b/rust/feature-flags/src/api/types.rs
index 787ebcc3f34a..06d1c538a99c 100644
--- a/rust/feature-flags/src/api/types.rs
+++ b/rust/feature-flags/src/api/types.rs
@@ -600,6 +600,9 @@ impl FlagDetails {
let type_str = match property.prop_type {
crate::properties::property_models::PropertyType::Person => "person",
+ crate::properties::property_models::PropertyType::PersonMetadata => {
+ "person_metadata"
+ }
crate::properties::property_models::PropertyType::Group => "group",
crate::properties::property_models::PropertyType::Cohort => "cohort",
crate::properties::property_models::PropertyType::Flag => "flag",
diff --git a/rust/feature-flags/src/flags/flag_matching.rs b/rust/feature-flags/src/flags/flag_matching.rs
index 47a97552f79e..fc67394332e0 100644
--- a/rust/feature-flags/src/flags/flag_matching.rs
+++ b/rust/feature-flags/src/flags/flag_matching.rs
@@ -258,7 +258,12 @@ impl PropertyContext<'_> {
/// an explicit type distinction.
pub fn resolve_for_filter(&self, filter: &PropertyFilter) -> &HashMap<String, Value> {
match filter.prop_type {
- PropertyType::Person => self.person_properties.unwrap_or(&*EMPTY_PROPERTY_MAP),
+ // PersonMetadata fields (e.g. created_at) are injected into the same map as
+ // regular person properties; see the `result.person` block in
+ // `apply_person_cohort_to_state` (flag_matching_utils.rs).
+ PropertyType::Person | PropertyType::PersonMetadata => {
+ self.person_properties.unwrap_or(&*EMPTY_PROPERTY_MAP)
+ }
PropertyType::Group => {
let gti = filter.group_type_index.or(self.aggregation);
gti.and_then(|idx| self.group_properties.get(&idx))
@@ -1647,7 +1652,7 @@ impl FeatureFlagMatcher {
continue;
}
match prop.prop_type {
- PropertyType::Person => needs_person = true,
+ PropertyType::Person | PropertyType::PersonMetadata => needs_person = true,
PropertyType::Group => {
if let Some(gti) = prop.group_type_index.or(effective_aggregation) {
group_types.insert(gti);
@@ -1710,7 +1715,14 @@ impl FeatureFlagMatcher {
.unwrap_or_default()
};
- // Merge in overrides (overrides take precedence)
+ // Merge in overrides (overrides take precedence).
+ //
+ // PersonMetadata fields are stored under sentinel-prefixed keys (see
+ // `lookup_key_for` in property_matching.rs). A caller could override the canonical
+ // persons-table value by setting that sentinel key in `person_property_overrides`.
+ // That's intentional for testing — no SDK has any reason to set such a key in
+ // production, and overrides are caller-trusted by design. If we ever need to lock
+ // metadata fields to the DB value, filter the prefixed keys out here.
if let Some(overrides) = property_overrides {
merged_properties.extend(overrides.iter_owned());
}
diff --git a/rust/feature-flags/src/flags/flag_matching_utils.rs b/rust/feature-flags/src/flags/flag_matching_utils.rs
index 87933f724336..a2240b42af56 100644
--- a/rust/feature-flags/src/flags/flag_matching_utils.rs
+++ b/rust/feature-flags/src/flags/flag_matching_utils.rs
@@ -501,7 +501,7 @@ fn apply_person_cohort_to_state(state: &mut FlagEvaluationState, result: PersonC
state.set_cohort_matches(cohort_matches);
}
- let person_properties: HashMap<String, Value> = if let Some(ref person) = result.person {
+ let mut person_properties: HashMap<String, Value> = if let Some(ref person) = result.person {
match person.properties.as_object() {
Some(obj) => obj.iter().map(|(k, v)| (k.clone(), v.clone())).collect(),
None => HashMap::new(),
@@ -510,6 +510,26 @@ fn apply_person_cohort_to_state(state: &mut FlagEvaluationState, result: PersonC
HashMap::new()
};
+ // PersonMetadata fields (top-level columns on the persons table) are written under a
+ // sentinel prefix to avoid colliding with user-set properties of the same name (e.g.
+ // a customer setting `properties.created_at` for their own analytics). The matcher
+ // applies the prefix when `filter.prop_type == PersonMetadata` — see `match_property`.
+ // The field list lives in `PERSON_METADATA_FIELDS`; each field needs a match arm below
+ // mapping it to the persons-table column to read. A field added to that list without an arm
+ // here falls through `_ => continue` and is silently never injected, so keep the two in sync.
+ if let Some(ref person) = result.person {
+ for field in crate::properties::property_matching::PERSON_METADATA_FIELDS {
+ let value = match *field {
+ "created_at" => Value::String(person.created_at.to_rfc3339()),
+ _ => continue,
+ };
+ person_properties.insert(
+ crate::properties::property_matching::person_metadata_key(field),
+ value,
+ );
+ }
+ }
+
state.set_person_properties(person_properties);
person_processing_timer.fin();
}
@@ -611,10 +631,13 @@ fn are_overrides_useful_for_flag(
return false;
}
- // Check if overrides contain at least one property the flag needs
- property_filters
- .iter()
- .any(|filter| overrides.contains_key(&filter.key))
+ // Check if overrides contain at least one property the flag needs.
+ // Use `lookup_key_for` so PersonMetadata filters match on the sentinel-prefixed key rather
+ // than the raw key — see the note on `requires_db_property`.
+ property_filters.iter().any(|filter| {
+ overrides
+ .contains_key(crate::properties::property_matching::lookup_key_for(filter).as_ref())
+ })
}
/// Determines if a FlagError should trigger a retry
@@ -2595,4 +2618,45 @@ mod tests {
assert!(!properties.contains_key("$initial_email"));
assert!(!properties.contains_key("$initial_name"));
}
+
+ #[test]
+ fn test_apply_person_cohort_to_state_injects_person_metadata_sentinel_key() {
+ use crate::properties::property_matching::person_metadata_key;
+ use chrono::{TimeZone, Utc};
+ use uuid::Uuid;
+
+ let created_at = Utc.with_ymd_and_hms(2024, 1, 15, 9, 30, 0).unwrap();
+ // Capture the expected RFC3339 value before `person` is moved into the result.
+ let expected = created_at.to_rfc3339();
+
+ let person = Person {
+ id: 1,
+ created_at,
+ team_id: 1,
+ uuid: Uuid::new_v4(),
+ properties: json!({}),
+ is_identified: true,
+ is_user_id: None,
+ version: Some(0),
+ };
+
+ let mut state = FlagEvaluationState::default();
+ let result = PersonCohortResult {
+ person: Some(person),
+ cohort_matches: None,
+ };
+
+ apply_person_cohort_to_state(&mut state, result);
+
+ // The injection arm writes Person.created_at under the sentinel prefix so that
+ // person_metadata filters resolve against it (see match_property). If this arm
+ // regresses, the filter silently matches nobody.
+ let props = state
+ .get_person_properties()
+ .expect("person properties should be set");
+ assert_eq!(
+ props.get(&person_metadata_key("created_at")),
+ Some(&Value::String(expected))
+ );
+ }
}
diff --git a/rust/feature-flags/src/flags/property_filter.rs b/rust/feature-flags/src/flags/property_filter.rs
index a95c4378b75a..dae7ee0749a7 100644
--- a/rust/feature-flags/src/flags/property_filter.rs
+++ b/rust/feature-flags/src/flags/property_filter.rs
@@ -4,7 +4,9 @@ use std::collections::HashMap;
use crate::cohorts::cohort_models::CohortId;
use crate::flags::flag_models::FeatureFlagId;
-use crate::properties::property_matching::{to_string_representation, REGEX_BACKTRACK_LIMIT};
+use crate::properties::property_matching::{
+ lookup_key_for, to_string_representation, REGEX_BACKTRACK_LIMIT,
+};
use crate::properties::property_models::{
CompiledRegex, OperatorType, PropertyFilter, PropertyType,
};
@@ -45,9 +47,17 @@ impl PropertyFilter {
/// Returns true if the filter requires DB properties to be evaluated.
///
- /// This is true if the filter key is not in the overrides, but only for non cohort and non flag filters
+ /// This is true if the filter key is not in the overrides, but only for non cohort and non flag filters.
+ ///
+ /// Uses `lookup_key_for` rather than the raw `self.key` so PersonMetadata filters check the
+ /// sentinel-prefixed key (e.g. `__posthog_person_metadata__created_at`). Without this, an SDK
+ /// caller sending a raw `created_at` in `person_properties` overrides would make this return
+ /// `false`, skip the DB fetch, and let the filter fall through to operator defaults — silently
+ /// bypassing the real persons-table value.
pub fn requires_db_property(&self, overrides: &HashMap<String, Value>) -> bool {
- !self.is_cohort() && !self.depends_on_feature_flag() && !overrides.contains_key(&self.key)
+ !self.is_cohort()
+ && !self.depends_on_feature_flag()
+ && !overrides.contains_key(lookup_key_for(self).as_ref())
}
/// Pre-compiles the regex pattern for Regex/NotRegex operators.
@@ -108,6 +118,28 @@ mod tests {
}
}
+ #[test]
+ fn test_person_metadata_requires_db_when_only_raw_key_overridden() {
+ use crate::properties::property_matching::person_metadata_key;
+
+ let filter = mock!(crate::properties::property_models::PropertyFilter, key: "created_at".mock_into(), prop_type: PropertyType::PersonMetadata, operator: Some(OperatorType::IsDateAfter));
+
+ // A raw `created_at` override (e.g. an SDK caller setting person_properties.created_at)
+ // must NOT satisfy the check — the persons-table value is still required from the DB.
+ let raw = HashMap::from([(
+ "created_at".to_string(),
+ Value::String("2024-01-01".to_string()),
+ )]);
+ assert!(filter.requires_db_property(&raw));
+
+ // Only the sentinel-prefixed key (which the matcher actually reads) satisfies the check.
+ let sentinel = HashMap::from([(
+ person_metadata_key("created_at"),
+ Value::String("2024-01-01".to_string()),
+ )]);
+ assert!(!filter.requires_db_property(&sentinel));
+ }
+
#[test]
fn test_filter_does_not_require_db_property_if_cohort_or_flag_filter() {
// Cohort filter.
diff --git a/rust/feature-flags/src/properties/property_matching.rs b/rust/feature-flags/src/properties/property_matching.rs
index 90a01d4e3315..46f5333661d3 100644
--- a/rust/feature-flags/src/properties/property_matching.rs
+++ b/rust/feature-flags/src/properties/property_matching.rs
@@ -1,6 +1,9 @@
+use std::borrow::Cow;
use std::collections::HashMap;
-use crate::properties::property_models::{CompiledRegex, OperatorType, PropertyFilter};
+use crate::properties::property_models::{
+ CompiledRegex, OperatorType, PropertyFilter, PropertyType,
+};
use crate::properties::relative_date;
use chrono::{DateTime, NaiveDate, NaiveDateTime, Utc};
use chrono_tz::Tz;
@@ -13,6 +16,33 @@ use serde_json::Value;
/// 10k steps completes in ~1ms worst case, which is acceptable for a hot path.
pub(crate) const REGEX_BACKTRACK_LIMIT: usize = 10_000;
+/// Prefix used when storing PersonMetadata field values (e.g. created_at) in the
+/// person properties map. Avoids collision with user-set properties of the same name.
+const PERSON_METADATA_KEY_PREFIX: &str = "__posthog_person_metadata__";
+
+/// Top-level persons-table columns exposed as PersonMetadata filters. Must stay in sync
+/// with `PERSON_METADATA_FIELDS` in `posthog/hogql/property.py` (the source of truth) and
+/// with the injection match arm in `flag_matching_utils::apply_person_cohort_to_state`.
+pub const PERSON_METADATA_FIELDS: &[&str] = &["created_at"];
+
+/// Build the lookup key for a PersonMetadata field (e.g. created_at).
+pub fn person_metadata_key(field: &str) -> String {
+ format!("{}{}", PERSON_METADATA_KEY_PREFIX, field)
+}
+
+/// Resolve the lookup key for a property filter, applying the PersonMetadata prefix when
+/// the filter targets a top-level persons-table column rather than the properties JSON.
+///
+/// Returns `Cow::Borrowed` for the common case (Person/Group/Event/Cohort/Flag) so the hot
+/// `match_property` path doesn't allocate; only PersonMetadata filters allocate the prefixed key.
+pub fn lookup_key_for(filter: &PropertyFilter) -> Cow<'_, str> {
+ if filter.prop_type == PropertyType::PersonMetadata {
+ Cow::Owned(person_metadata_key(&filter.key))
+ } else {
+ Cow::Borrowed(&filter.key)
+ }
+}
+
#[derive(Debug, PartialEq, Eq)]
pub enum FlagMatchingError {
ValidationError(String),
@@ -58,9 +88,12 @@ pub fn match_property(
partial_props: bool,
team_timezone: Tz,
) -> Result<bool, FlagMatchingError> {
+ let lookup_key = lookup_key_for(property);
+ let key: &str = lookup_key.as_ref();
+
// only looks for matches where key exists in override_property_values
// doesn't support operator is_not_set with partial_props
- if partial_props && !matching_property_values.contains_key(&property.key) {
+ if partial_props && !matching_property_values.contains_key(key) {
tracing::warn!("Missing property for matching: {}", property.key);
return Err(FlagMatchingError::MissingProperty(format!(
"can't match properties without a value. Missing property: {}",
@@ -68,7 +101,6 @@ pub fn match_property(
)));
}
- let key = &property.key;
let operator = property.operator.unwrap_or(OperatorType::Exact);
let match_value = matching_property_values.get(key);
@@ -3771,4 +3803,36 @@ mod test_match_properties {
match_date(person, &before, Tz::UTC)
);
}
+
+ #[test]
+ fn test_match_property_person_metadata_uses_sentinel_key() {
+ // PersonMetadata filters look up under a sentinel-prefixed key so they don't
+ // collide with user-set properties of the same name.
+ let filter = PropertyFilter {
+ key: "created_at".to_string(),
+ value: Some(json!("2024-01-01")),
+ operator: Some(OperatorType::IsDateAfter),
+ prop_type: PropertyType::PersonMetadata,
+ group_type_index: None,
+ negation: None,
+ compiled_regex: None,
+ extra: Default::default(),
+ };
+
+ // A user-set "created_at" property must NOT satisfy a person_metadata filter:
+ // the metadata field is intentionally segregated so user-set values can't
+ // override the canonical persons-table value.
+ let user_set_only = HashMap::from([(
+ "created_at".to_string(),
+ json!("2099-01-01"), // Far-future user-set value
+ )]);
+ assert!(match_property(&filter, &user_set_only, false).is_ok());
+ assert!(!match_property(&filter, &user_set_only, false).expect("filter evaluated"));
+
+ // The sentinel-prefixed key (which the matcher injects from Person.created_at)
+ // is what actually resolves the filter.
+ let metadata_only =
+ HashMap::from([(person_metadata_key("created_at"), json!("2025-06-01"))]);
+ assert!(match_property(&filter, &metadata_only, false).expect("filter evaluated"));
+ }
}
diff --git a/rust/feature-flags/src/properties/property_models.rs b/rust/feature-flags/src/properties/property_models.rs
index be0d8ec6c405..eee53e2b2e50 100644
--- a/rust/feature-flags/src/properties/property_models.rs
+++ b/rust/feature-flags/src/properties/property_models.rs
@@ -41,6 +41,9 @@ pub enum PropertyType {
#[default]
#[serde(rename = "person")]
Person,
+ // Top-level columns on the persons table (e.g. created_at), not the JSON properties blob.
+ #[serde(rename = "person_metadata")]
+ PersonMetadata,
#[serde(rename = "cohort")]
Cohort,
#[serde(rename = "group")]
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 774235e8bc04..cb42c9afeae5 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -644,6 +644,7 @@ export namespace Schemas {
* * `event_metadata` - event_metadata
* * `feature` - feature
* * `person` - person
+ * * `person_metadata` - person_metadata
* * `cohort` - cohort
* * `element` - element
* * `static-cohort` - static-cohort
@@ -676,6 +677,7 @@ export namespace Schemas {
EventMetadata: 'event_metadata',
Feature: 'feature',
Person: 'person',
+ PersonMetadata: 'person_metadata',
Cohort: 'cohort',
Element: 'element',
StaticCohort: 'static-cohort',
@@ -733,6 +735,7 @@ export namespace Schemas {
* * `event_metadata` - event_metadata
* * `feature` - feature
* * `person` - person
+ * * `person_metadata` - person_metadata
* * `cohort` - cohort
* * `element` - element
* * `static-cohort` - static-cohort
@@ -802,6 +805,7 @@ export namespace Schemas {
* * `event_metadata` - event_metadata
* * `feature` - feature
* * `person` - person
+ * * `person_metadata` - person_metadata
* * `cohort` - cohort
* * `element` - element
* * `static-cohort` - static-cohort
@@ -867,6 +871,7 @@ export namespace Schemas {
* * `event_metadata` - event_metadata
* * `feature` - feature
* * `person` - person
+ * * `person_metadata` - person_metadata
* * `cohort` - cohort
* * `element` - element
* * `static-cohort` - static-cohort
@@ -928,6 +933,7 @@ export namespace Schemas {
* * `event_metadata` - event_metadata
* * `feature` - feature
* * `person` - person
+ * * `person_metadata` - person_metadata
* * `cohort` - cohort
* * `element` - element
* * `static-cohort` - static-cohort
@@ -986,6 +992,7 @@ export namespace Schemas {
* * `event_metadata` - event_metadata
* * `feature` - feature
* * `person` - person
+ * * `person_metadata` - person_metadata
* * `cohort` - cohort
* * `element` - element
* * `static-cohort` - static-cohort
@@ -1248,6 +1255,15 @@ export namespace Schemas {
value?: (string | number | boolean)[] | string | number | boolean | null;
}
+ export interface PersonMetadataPropertyFilter {
+ key: string;
+ label?: string | null;
+ operator: PropertyOperator;
+ /** Top-level columns on the persons table (e.g. created_at), not properties JSON */
+ type?: 'person_metadata';
+ value?: (string | number | boolean)[] | string | number | boolean | null;
+ }
+
export type Key10 = typeof Key10[keyof typeof Key10];
@@ -1686,7 +1702,7 @@ export namespace Schemas {
export interface ActionsNode {
custom_name?: string | null;
/** Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person) */
- fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
id: number;
kind?: 'ActionsNode';
math?: BaseMathType | FunnelMathType | PropertyMathType | CountPerActorMathType | ExperimentMetricMathType | CalendarHeatmapMathType | 'unique_group' | 'hogql' | null;
@@ -1699,7 +1715,7 @@ export namespace Schemas {
name?: string | null;
optionalInFunnel?: boolean | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
response?: ActionsNodeResponse;
/** version of the node, used for schema migrations */
version?: number | null;
@@ -2032,7 +2048,7 @@ export namespace Schemas {
export interface PropertyGroupFilterValue {
type: FilterLogicalOperator;
- values: (PropertyGroupFilterValue | EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[];
+ values: (PropertyGroupFilterValue | EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[];
}
export interface ActorsQueryResponse {
@@ -2209,7 +2225,7 @@ export namespace Schemas {
/** The event or `null` for all events. */
event?: string | null;
/** Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person) */
- fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
kind?: 'EventsNode';
limit?: number | null;
math?: BaseMathType | FunnelMathType | PropertyMathType | CountPerActorMathType | ExperimentMetricMathType | CalendarHeatmapMathType | 'unique_group' | 'hogql' | null;
@@ -2224,7 +2240,7 @@ export namespace Schemas {
/** Columns to order by */
orderBy?: string[] | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
response?: EventsNodeResponse;
/** version of the node, used for schema migrations */
version?: number | null;
@@ -2237,7 +2253,7 @@ export namespace Schemas {
distinct_id_field: string;
dw_source_type?: string | null;
/** Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person) */
- fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
id: string;
id_field: string;
kind?: 'DataWarehouseNode';
@@ -2251,7 +2267,7 @@ export namespace Schemas {
name?: string | null;
optionalInFunnel?: boolean | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
response?: DataWarehouseNodeResponse;
table_name: string;
timestamp_field: string;
@@ -2264,7 +2280,7 @@ export namespace Schemas {
export interface GroupNode {
custom_name?: string | null;
/** Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person) */
- fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
kind?: 'GroupNode';
limit?: number | null;
math?: BaseMathType | FunnelMathType | PropertyMathType | CountPerActorMathType | ExperimentMetricMathType | CalendarHeatmapMathType | 'unique_group' | 'hogql' | null;
@@ -2283,7 +2299,7 @@ export namespace Schemas {
/** Columns to order by */
orderBy?: string[] | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
response?: GroupNodeResponse;
/** version of the node, used for schema migrations */
version?: number | null;
@@ -2526,7 +2542,7 @@ export namespace Schemas {
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
/** Property filters for all series */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
response?: TrendsQueryResponse | null;
/** Sampling rate */
samplingFactor?: number | null;
@@ -2557,7 +2573,7 @@ export namespace Schemas {
/** The event or `null` for all events. */
event?: string | null;
/** Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person) */
- fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
funnelFromStep: number;
funnelToStep: number;
kind?: 'EventsNode';
@@ -2574,7 +2590,7 @@ export namespace Schemas {
/** Columns to order by */
orderBy?: string[] | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
response?: FunnelExclusionEventsNodeResponse;
/** version of the node, used for schema migrations */
version?: number | null;
@@ -2585,7 +2601,7 @@ export namespace Schemas {
export interface FunnelExclusionActionsNode {
custom_name?: string | null;
/** Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person) */
- fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
funnelFromStep: number;
funnelToStep: number;
id: number;
@@ -2600,7 +2616,7 @@ export namespace Schemas {
name?: string | null;
optionalInFunnel?: boolean | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
response?: FunnelExclusionActionsNodeResponse;
/** version of the node, used for schema migrations */
version?: number | null;
@@ -2725,7 +2741,7 @@ export namespace Schemas {
custom_name?: string | null;
dw_source_type?: string | null;
/** Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person) */
- fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
id: string;
id_field: string;
kind?: 'FunnelsDataWarehouseNode';
@@ -2739,7 +2755,7 @@ export namespace Schemas {
name?: string | null;
optionalInFunnel?: boolean | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
response?: FunnelsDataWarehouseNodeResponse;
table_name: string;
timestamp_field: string;
@@ -2768,7 +2784,7 @@ export namespace Schemas {
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
/** Property filters for all series */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
response?: FunnelsQueryResponse | null;
/** Sampling rate */
samplingFactor?: number | null;
@@ -2905,7 +2921,7 @@ export namespace Schemas {
name?: string | null;
order?: number | null;
/** filters on the event */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
/** Data warehouse table name */
table_name?: string | null;
/** Data warehouse timestamp field */
@@ -2971,7 +2987,7 @@ export namespace Schemas {
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
/** Property filters for all series */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
response?: RetentionQueryResponse | null;
/** Properties specific to the retention insight */
retentionFilter: RetentionFilter;
@@ -3080,7 +3096,7 @@ export namespace Schemas {
/** Properties specific to the paths insight */
pathsFilter: PathsFilter;
/** Property filters for all series */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
response?: PathsQueryResponse | null;
/** Sampling rate */
samplingFactor?: number | null;
@@ -3173,7 +3189,7 @@ export namespace Schemas {
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
/** Property filters for all series */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
response?: StickinessQueryResponse | null;
/** Sampling rate */
samplingFactor?: number | null;
@@ -3237,7 +3253,7 @@ export namespace Schemas {
created_at_field: string;
custom_name?: string | null;
/** Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person) */
- fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
id: string;
kind?: 'LifecycleDataWarehouseNode';
math?: BaseMathType | FunnelMathType | PropertyMathType | CountPerActorMathType | ExperimentMetricMathType | CalendarHeatmapMathType | 'unique_group' | 'hogql' | null;
@@ -3250,7 +3266,7 @@ export namespace Schemas {
name?: string | null;
optionalInFunnel?: boolean | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
response?: LifecycleDataWarehouseNodeResponse;
table_name: string;
timestamp_field: string;
@@ -3277,7 +3293,7 @@ export namespace Schemas {
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
/** Property filters for all series */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
response?: LifecycleQueryResponse | null;
/** Sampling rate */
samplingFactor?: number | null;
@@ -3624,7 +3640,7 @@ export namespace Schemas {
export interface FunnelCorrelationActorsQuery {
funnelCorrelationPersonConverted?: boolean | null;
funnelCorrelationPersonEntity?: EventsNode | ActionsNode | DataWarehouseNode | null;
- funnelCorrelationPropertyValues?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ funnelCorrelationPropertyValues?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
includeRecordings?: boolean | null;
kind?: 'FunnelCorrelationActorsQuery';
/** Modifiers used when performing the query */
@@ -3641,7 +3657,7 @@ export namespace Schemas {
export interface ExperimentEventExposureConfig {
event: string;
kind?: 'ExperimentEventExposureConfig';
- properties: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[];
+ properties: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[];
response?: ExperimentEventExposureConfigResponse;
/** version of the node, used for schema migrations */
version?: number | null;
@@ -3670,7 +3686,7 @@ export namespace Schemas {
data_warehouse_join_key: string;
events_join_key: string;
/** Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person) */
- fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
kind?: 'ExperimentDataWarehouseNode';
math?: BaseMathType | FunnelMathType | PropertyMathType | CountPerActorMathType | ExperimentMetricMathType | CalendarHeatmapMathType | 'unique_group' | 'hogql' | null;
math_group_type_index?: MathGroupTypeIndex | null;
@@ -3682,7 +3698,7 @@ export namespace Schemas {
name?: string | null;
optionalInFunnel?: boolean | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
response?: ExperimentDataWarehouseNodeResponse;
table_name: string;
timestamp_field: string;
@@ -3999,7 +4015,7 @@ export namespace Schemas {
export interface HogQLFilters {
dateRange?: DateRange | null;
filterTestAccounts?: boolean | null;
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
}
export interface HogQLNotice {
@@ -4107,7 +4123,7 @@ export namespace Schemas {
export interface ActorsQuery {
/** Currently only person filters supported. No filters for querying groups. See `filter_conditions()` in actor_strategies.py. */
- fixedProperties?: (PersonPropertyFilter | CohortPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter)[] | null;
+ fixedProperties?: (PersonPropertyFilter | PersonMetadataPropertyFilter | CohortPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter)[] | null;
kind?: 'ActorsQuery';
limit?: number | null;
/** Modifiers used when performing the query */
@@ -4115,7 +4131,7 @@ export namespace Schemas {
offset?: number | null;
orderBy?: string[] | null;
/** Currently only person filters supported. No filters for querying groups. See `filter_conditions()` in actor_strategies.py. */
- properties?: (PersonPropertyFilter | CohortPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter)[] | PropertyGroupFilterValue | null;
+ properties?: (PersonPropertyFilter | PersonMetadataPropertyFilter | CohortPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter)[] | PropertyGroupFilterValue | null;
response?: ActorsQueryResponse | null;
search?: string | null;
select?: string[] | null;
@@ -5505,6 +5521,7 @@ export namespace Schemas {
EventMetadata: 'event_metadata',
NumericalEventProperties: 'numerical_event_properties',
PersonProperties: 'person_properties',
+ PersonMetadata: 'person_metadata',
PageviewUrls: 'pageview_urls',
PageviewEvents: 'pageview_events',
Screens: 'screens',
@@ -5577,7 +5594,7 @@ export namespace Schemas {
event?: string | null;
href?: string | null;
href_matching?: HrefMatching | null;
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
selector?: string | null;
tag_name?: string | null;
text?: string | null;
@@ -5629,7 +5646,7 @@ export namespace Schemas {
/** Filter test accounts */
filterTestAccounts?: boolean | null;
/** Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person) */
- fixedProperties?: (PropertyGroupFilter | PropertyGroupFilterValue | EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (PropertyGroupFilter | PropertyGroupFilterValue | EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
kind?: 'EventsQuery';
/** Number of rows to return */
limit?: number | null;
@@ -5642,7 +5659,7 @@ export namespace Schemas {
/** Show events for a given person */
personId?: string | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
response?: EventsQueryResponse | null;
/** Return a limited set of data. Required. */
select: string[];
@@ -5661,14 +5678,14 @@ export namespace Schemas {
cohort?: number | null;
distinctId?: string | null;
/** Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person) */
- fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
kind?: 'PersonsNode';
limit?: number | null;
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
offset?: number | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
response?: PersonsNodeResponse;
search?: string | null;
tags?: QueryLogTags | null;
@@ -6035,11 +6052,11 @@ export namespace Schemas {
/** Filter sessions by event name - sessions that contain this event */
event?: string | null;
/** Event property filters - filters sessions that contain events matching these properties */
- eventProperties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ eventProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
/** Filter test accounts */
filterTestAccounts?: boolean | null;
/** Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person) */
- fixedProperties?: (PropertyGroupFilter | PropertyGroupFilterValue | EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (PropertyGroupFilter | PropertyGroupFilterValue | EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
kind?: 'SessionsQuery';
/** Number of rows to return */
limit?: number | null;
@@ -6052,7 +6069,7 @@ export namespace Schemas {
/** Show sessions for a given person */
personId?: string | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
response?: SessionsQueryResponse | null;
/** Return a limited set of data. Required. */
select: string[];
@@ -6340,7 +6357,7 @@ export namespace Schemas {
/** The event or `null` for all events. */
event?: string | null;
/** Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person) */
- fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
kind?: 'EventsNode';
limit?: number | null;
math?: BaseMathType | FunnelMathType | PropertyMathType | CountPerActorMathType | ExperimentMetricMathType | CalendarHeatmapMathType | 'unique_group' | 'hogql' | null;
@@ -6355,7 +6372,7 @@ export namespace Schemas {
/** Columns to order by */
orderBy?: string[] | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
response?: ConversionGoalFilter1Response;
schema_map: ConversionGoalFilter1SchemaMap;
/** version of the node, used for schema migrations */
@@ -6371,7 +6388,7 @@ export namespace Schemas {
conversion_goal_name: string;
custom_name?: string | null;
/** Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person) */
- fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
id: number;
kind?: 'ActionsNode';
math?: BaseMathType | FunnelMathType | PropertyMathType | CountPerActorMathType | ExperimentMetricMathType | CalendarHeatmapMathType | 'unique_group' | 'hogql' | null;
@@ -6384,7 +6401,7 @@ export namespace Schemas {
name?: string | null;
optionalInFunnel?: boolean | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
response?: ConversionGoalFilter2Response;
schema_map: ConversionGoalFilter2SchemaMap;
/** version of the node, used for schema migrations */
@@ -6402,7 +6419,7 @@ export namespace Schemas {
distinct_id_field: string;
dw_source_type?: string | null;
/** Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person) */
- fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
id: string;
id_field: string;
kind?: 'DataWarehouseNode';
@@ -6416,7 +6433,7 @@ export namespace Schemas {
name?: string | null;
optionalInFunnel?: boolean | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
response?: ConversionGoalFilter3Response;
schema_map: ConversionGoalFilter3SchemaMap;
table_name: string;
@@ -6890,7 +6907,7 @@ export namespace Schemas {
/** Person who performed the event */
personId?: string | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
/** Use random ordering instead of timestamp DESC. Useful for representative sampling to avoid recency bias. */
randomOrder?: boolean | null;
response?: TracesQueryResponse | null;
@@ -6932,7 +6949,7 @@ export namespace Schemas {
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
response?: TraceQueryResponse | null;
tags?: QueryLogTags | null;
traceId: string;
@@ -12024,7 +12041,7 @@ export namespace Schemas {
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
/** Property filters for all series */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
response?: CalendarHeatmapResponse | null;
/** Sampling rate */
samplingFactor?: number | null;
@@ -12922,13 +12939,28 @@ export namespace Schemas {
}
export interface PersonFilter {
+ operator?: string | null;
+ value?: unknown;
bytecode?: unknown[] | null;
bytecode_error?: string | null;
conditionHash?: string | null;
type: 'person';
key: string;
+ negation?: boolean;
+ }
+
+ /**
+ * Filter on a top-level persons-table column (e.g. created_at) rather than the
+ * properties JSON. The matching key must be one of PERSON_METADATA_FIELDS.
+ */
+ export interface PersonMetadataFilter {
operator?: string | null;
value?: unknown;
+ bytecode?: unknown[] | null;
+ bytecode_error?: string | null;
+ conditionHash?: string | null;
+ type: 'person_metadata';
+ key: string;
negation?: boolean;
}
@@ -12937,7 +12969,7 @@ export namespace Schemas {
*/
export interface CohortFilterGroup {
type: PropertyGroupOperator;
- values: (BehavioralFilter | CohortFilter | PersonFilter | CohortFilterGroup)[];
+ values: (BehavioralFilter | CohortFilter | PersonFilter | PersonMetadataFilter | CohortFilterGroup)[];
}
export interface CohortFilters {
@@ -14392,7 +14424,7 @@ export namespace Schemas {
date_from?: string | null;
date_to?: string | null;
explicitDate?: boolean | null;
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
}
/**
@@ -21647,7 +21679,7 @@ export namespace Schemas {
export interface FeatureFlagGroupType {
aggregation_group_type_index?: number | null;
description?: string | null;
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
rollout_percentage?: number | null;
sort_key?: string | null;
users_affected?: number | null;
@@ -26358,7 +26390,7 @@ export namespace Schemas {
distinct_ids?: string[] | null;
events?: RecordingsQueryEvents;
filter_test_accounts?: boolean | null;
- having_predicates?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ having_predicates?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
/** Exclude recordings already viewed by the current user ('current-user'), by any team member ('any-user'), or none (default). Applied server-side so pagination and the result cursor operate on the filtered set. */
hide_viewed_recordings?: HideViewedRecordings | null;
kind?: 'RecordingsQuery';
@@ -26371,7 +26403,7 @@ export namespace Schemas {
/** Replay originally had all ordering as descending by specifying the field name, this runs counter to Django behavior where the field name specifies ascending sorting (e.g. the_field_name) and -the_field_name would indicate descending order to avoid invalidating or migrating all existing filters we keep DESC as the default or allow specification of an explicit order direction here */
order_direction?: RecordingOrderDirection | null;
person_uuid?: string | null;
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
response?: RecordingsQueryResponse | null;
session_ids?: string[] | null;
/** If provided, this recording will be fetched and prepended to the results, even if it doesn't match the filters */
@@ -26405,7 +26437,7 @@ export namespace Schemas {
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
response?: TraceNeighborsQueryResponse | null;
tags?: QueryLogTags | null;
/** Timestamp of the current trace to find neighbors for */
@@ -26555,7 +26587,7 @@ export namespace Schemas {
kind?: 'MCPHarnessBreakdownQuery';
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
- properties?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
response?: MCPHarnessBreakdownQueryResponse | null;
tags?: QueryLogTags | null;
/** When set, scope to a single effective tool's new-SDK calls (the per-tool "By harness" table). */
diff --git a/services/mcp/src/generated/actions/api.ts b/services/mcp/src/generated/actions/api.ts
index 5ae51e46c340..55342ff845a6 100644
--- a/services/mcp/src/generated/actions/api.ts
+++ b/services/mcp/src/generated/actions/api.ts
@@ -90,6 +90,7 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -115,11 +116,11 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
)
.default(actionsCreateBodyStepsItemPropertiesItemOneTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
),
value: zod.string().describe('String value to match against.'),
operator: zod
@@ -153,6 +154,7 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -178,11 +180,11 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
)
.default(actionsCreateBodyStepsItemPropertiesItemTwoTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
),
value: zod.number().describe('Numeric value to compare against.'),
operator: zod
@@ -209,6 +211,7 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -234,11 +237,11 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
)
.default(actionsCreateBodyStepsItemPropertiesItemThreeTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
),
value: zod
.array(zod.string())
@@ -271,6 +274,7 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -296,11 +300,11 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
)
.default(actionsCreateBodyStepsItemPropertiesItemFourTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
),
value: zod
.string()
@@ -331,6 +335,7 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -356,11 +361,11 @@ export const ActionsCreateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
)
.default(actionsCreateBodyStepsItemPropertiesItemFiveTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
),
operator: zod
.enum(['is_set', 'is_not_set'])
@@ -515,6 +520,7 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -540,11 +546,11 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
)
.default(actionsPartialUpdateBodyStepsItemPropertiesItemOneTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
),
value: zod.string().describe('String value to match against.'),
operator: zod
@@ -578,6 +584,7 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -603,11 +610,11 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
)
.default(actionsPartialUpdateBodyStepsItemPropertiesItemTwoTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
),
value: zod.number().describe('Numeric value to compare against.'),
operator: zod
@@ -634,6 +641,7 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -659,11 +667,11 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
)
.default(actionsPartialUpdateBodyStepsItemPropertiesItemThreeTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
),
value: zod
.array(zod.string())
@@ -698,6 +706,7 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -723,11 +732,11 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
)
.default(actionsPartialUpdateBodyStepsItemPropertiesItemFourTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
),
value: zod
.string()
@@ -758,6 +767,7 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -783,11 +793,11 @@ export const ActionsPartialUpdateBody = /* @__PURE__ */ zod
'workflow_variable',
])
.describe(
- '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
)
.default(actionsPartialUpdateBodyStepsItemPropertiesItemFiveTypeDefault)
.describe(
- 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ 'Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
),
operator: zod
.enum(['is_set', 'is_not_set'])
diff --git a/services/mcp/src/generated/cohorts/api.ts b/services/mcp/src/generated/cohorts/api.ts
index 8b841ad7d7a1..642068cebc0b 100644
--- a/services/mcp/src/generated/cohorts/api.ts
+++ b/services/mcp/src/generated/cohorts/api.ts
@@ -54,6 +54,7 @@ export const cohortsCreateBodyDescriptionMax = 1000
export const cohortsCreateBodyFiltersOnePropertiesValuesItemOneNegationDefault = false
export const cohortsCreateBodyFiltersOnePropertiesValuesItemTwoNegationDefault = false
export const cohortsCreateBodyFiltersOnePropertiesValuesItemThreeNegationDefault = false
+export const cohortsCreateBodyFiltersOnePropertiesValuesItemFourNegationDefault = false
export const cohortsCreateBodyCreateStaticPersonIdsDefault = []
export const CohortsCreateBody = /* @__PURE__ */ zod.object({
@@ -123,17 +124,35 @@ export const CohortsCreateBody = /* @__PURE__ */ zod.object({
.default(cohortsCreateBodyFiltersOnePropertiesValuesItemTwoNegationDefault),
}),
zod.object({
+ operator: zod.union([zod.string(), zod.null()]).optional(),
+ value: zod.unknown().optional(),
bytecode: zod.union([zod.array(zod.unknown()), zod.null()]).optional(),
bytecode_error: zod.union([zod.string(), zod.null()]).optional(),
conditionHash: zod.union([zod.string(), zod.null()]).optional(),
type: zod.literal('person'),
key: zod.string(),
- operator: zod.union([zod.string(), zod.null()]).optional(),
- value: zod.unknown().optional(),
negation: zod
.boolean()
.default(cohortsCreateBodyFiltersOnePropertiesValuesItemThreeNegationDefault),
}),
+ zod
+ .object({
+ operator: zod.union([zod.string(), zod.null()]).optional(),
+ value: zod.unknown().optional(),
+ bytecode: zod.union([zod.array(zod.unknown()), zod.null()]).optional(),
+ bytecode_error: zod.union([zod.string(), zod.null()]).optional(),
+ conditionHash: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod.literal('person_metadata'),
+ key: zod.string(),
+ negation: zod
+ .boolean()
+ .default(
+ cohortsCreateBodyFiltersOnePropertiesValuesItemFourNegationDefault
+ ),
+ })
+ .describe(
+ 'Filter on a top-level persons-table column (e.g. created_at) rather than the\nproperties JSON. The matching key must be one of PERSON_METADATA_FIELDS.'
+ ),
zod.unknown(),
])
),
@@ -190,6 +209,7 @@ export const cohortsPartialUpdateBodyDescriptionMax = 1000
export const cohortsPartialUpdateBodyFiltersOnePropertiesValuesItemOneNegationDefault = false
export const cohortsPartialUpdateBodyFiltersOnePropertiesValuesItemTwoNegationDefault = false
export const cohortsPartialUpdateBodyFiltersOnePropertiesValuesItemThreeNegationDefault = false
+export const cohortsPartialUpdateBodyFiltersOnePropertiesValuesItemFourNegationDefault = false
export const CohortsPartialUpdateBody = /* @__PURE__ */ zod.object({
name: zod.string().max(cohortsPartialUpdateBodyNameMax).nullish(),
@@ -263,19 +283,37 @@ export const CohortsPartialUpdateBody = /* @__PURE__ */ zod.object({
),
}),
zod.object({
+ operator: zod.union([zod.string(), zod.null()]).optional(),
+ value: zod.unknown().optional(),
bytecode: zod.union([zod.array(zod.unknown()), zod.null()]).optional(),
bytecode_error: zod.union([zod.string(), zod.null()]).optional(),
conditionHash: zod.union([zod.string(), zod.null()]).optional(),
type: zod.literal('person'),
key: zod.string(),
- operator: zod.union([zod.string(), zod.null()]).optional(),
- value: zod.unknown().optional(),
negation: zod
.boolean()
.default(
cohortsPartialUpdateBodyFiltersOnePropertiesValuesItemThreeNegationDefault
),
}),
+ zod
+ .object({
+ operator: zod.union([zod.string(), zod.null()]).optional(),
+ value: zod.unknown().optional(),
+ bytecode: zod.union([zod.array(zod.unknown()), zod.null()]).optional(),
+ bytecode_error: zod.union([zod.string(), zod.null()]).optional(),
+ conditionHash: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod.literal('person_metadata'),
+ key: zod.string(),
+ negation: zod
+ .boolean()
+ .default(
+ cohortsPartialUpdateBodyFiltersOnePropertiesValuesItemFourNegationDefault
+ ),
+ })
+ .describe(
+ 'Filter on a top-level persons-table column (e.g. created_at) rather than the\nproperties JSON. The matching key must be one of PERSON_METADATA_FIELDS.'
+ ),
zod.unknown(),
])
),
diff --git a/services/mcp/src/generated/endpoints/api.ts b/services/mcp/src/generated/endpoints/api.ts
index 1cbedb55bd70..8cd98d2ce6ca 100644
--- a/services/mcp/src/generated/endpoints/api.ts
+++ b/services/mcp/src/generated/endpoints/api.ts
@@ -264,25 +264,26 @@ export const endpointsRunCreateBodyFiltersOverrideOneBreakdownFilterOneBreakdown
export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOneOperatorDefault = `exact`
export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOneTypeDefault = `event`
export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwoTypeDefault = `person`
-export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemThreeTypeDefault = `element`
-export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemFourTypeDefault = `event_metadata`
-export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemFiveTypeDefault = `session`
-export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemSixKeyDefault = `id`
-export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemSixOperatorDefault = `in`
-export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemSixTypeDefault = `cohort`
-export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemSevenTypeDefault = `recording`
-export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemEightTypeDefault = `log_entry`
-export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemNineTypeDefault = `group`
-export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnezeroTypeDefault = `feature`
-export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOneoneOperatorDefault = `flag_evaluates_to`
-export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOneoneTypeDefault = `flag`
-export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnetwoTypeDefault = `hogql`
-export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnethreeTypeDefault = `empty`
-export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnefourTypeDefault = `data_warehouse`
-export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnefiveTypeDefault = `data_warehouse_person_property`
-export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnesixTypeDefault = `error_tracking_issue`
-export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnenineTypeDefault = `revenue_analytics`
-export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwozeroTypeDefault = `workflow_variable`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemThreeTypeDefault = `person_metadata`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemFourTypeDefault = `element`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemFiveTypeDefault = `event_metadata`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemSixTypeDefault = `session`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemSevenKeyDefault = `id`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemSevenOperatorDefault = `in`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemSevenTypeDefault = `cohort`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemEightTypeDefault = `recording`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemNineTypeDefault = `log_entry`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnezeroTypeDefault = `group`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOneoneTypeDefault = `feature`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnetwoOperatorDefault = `flag_evaluates_to`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnetwoTypeDefault = `flag`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnethreeTypeDefault = `hogql`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnefourTypeDefault = `empty`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnefiveTypeDefault = `data_warehouse`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnesixTypeDefault = `data_warehouse_person_property`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnesevenTypeDefault = `error_tracking_issue`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwozeroTypeDefault = `revenue_analytics`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwooneTypeDefault = `workflow_variable`
export const endpointsRunCreateBodyRefreshDefault = `cache`
export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
@@ -495,6 +496,63 @@ export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
])
.optional(),
}),
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'regex',
+ 'not_regex',
+ 'gt',
+ 'gte',
+ 'lt',
+ 'lte',
+ 'is_set',
+ 'is_not_set',
+ 'is_date_exact',
+ 'is_date_before',
+ 'is_date_after',
+ 'between',
+ 'not_between',
+ 'min',
+ 'max',
+ 'in',
+ 'not_in',
+ 'is_cleaned_path_exact',
+ 'flag_evaluates_to',
+ 'semver_eq',
+ 'semver_neq',
+ 'semver_gt',
+ 'semver_gte',
+ 'semver_lt',
+ 'semver_lte',
+ 'semver_tilde',
+ 'semver_caret',
+ 'semver_wildcard',
+ 'icontains_multi',
+ 'not_icontains_multi',
+ ]),
+ type: zod
+ .literal('person_metadata')
+ .default(
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemThreeTypeDefault
+ )
+ .describe(
+ 'Top-level columns on the persons table (e.g. created_at), not properties JSON'
+ ),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
zod.object({
key: zod.enum(['tag_name', 'text', 'href', 'selector']),
label: zod.union([zod.string(), zod.null()]).optional(),
@@ -537,7 +595,7 @@ export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('element')
.default(
- endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemThreeTypeDefault
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemFourTypeDefault
),
value: zod
.union([
@@ -591,7 +649,7 @@ export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('event_metadata')
.default(
- endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemFourTypeDefault
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemFiveTypeDefault
),
value: zod
.union([
@@ -645,7 +703,7 @@ export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('session')
.default(
- endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemFiveTypeDefault
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemSixTypeDefault
),
value: zod
.union([
@@ -662,7 +720,7 @@ export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
key: zod
.literal('id')
.default(
- endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemSixKeyDefault
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemSevenKeyDefault
),
label: zod.union([zod.string(), zod.null()]).optional(),
operator: zod
@@ -706,12 +764,12 @@ export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
zod.null(),
])
.default(
- endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemSixOperatorDefault
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemSevenOperatorDefault
),
type: zod
.literal('cohort')
.default(
- endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemSixTypeDefault
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemSevenTypeDefault
),
value: zod.number(),
}),
@@ -760,7 +818,7 @@ export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('recording')
.default(
- endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemSevenTypeDefault
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemEightTypeDefault
),
value: zod
.union([
@@ -814,7 +872,7 @@ export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('log_entry')
.default(
- endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemEightTypeDefault
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemNineTypeDefault
),
value: zod
.union([
@@ -872,7 +930,7 @@ export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('group')
.default(
- endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemNineTypeDefault
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnezeroTypeDefault
),
value: zod
.union([
@@ -926,7 +984,7 @@ export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('feature')
.default(
- endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnezeroTypeDefault
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOneoneTypeDefault
)
.describe('Event property with "$feature/" prepended'),
value: zod
@@ -945,13 +1003,13 @@ export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
operator: zod
.literal('flag_evaluates_to')
.default(
- endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOneoneOperatorDefault
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnetwoOperatorDefault
)
.describe('Only flag_evaluates_to operator is allowed for flag dependencies'),
type: zod
.literal('flag')
.default(
- endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOneoneTypeDefault
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnetwoTypeDefault
)
.describe('Feature flag dependency'),
value: zod
@@ -964,7 +1022,7 @@ export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('hogql')
.default(
- endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnetwoTypeDefault
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnethreeTypeDefault
),
value: zod
.union([
@@ -980,7 +1038,7 @@ export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('empty')
.default(
- endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnethreeTypeDefault
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnefourTypeDefault
),
}),
zod.object({
@@ -1025,7 +1083,7 @@ export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('data_warehouse')
.default(
- endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnefourTypeDefault
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnefiveTypeDefault
),
value: zod
.union([
@@ -1079,7 +1137,7 @@ export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('data_warehouse_person_property')
.default(
- endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnefiveTypeDefault
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnesixTypeDefault
),
value: zod
.union([
@@ -1133,7 +1191,7 @@ export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('error_tracking_issue')
.default(
- endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnesixTypeDefault
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnesevenTypeDefault
),
value: zod
.union([
@@ -1287,7 +1345,7 @@ export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('revenue_analytics')
.default(
- endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnenineTypeDefault
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwozeroTypeDefault
),
value: zod
.union([
@@ -1341,7 +1399,7 @@ export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('workflow_variable')
.default(
- endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwozeroTypeDefault
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwooneTypeDefault
),
value: zod
.union([
diff --git a/services/mcp/src/generated/error_tracking/api.ts b/services/mcp/src/generated/error_tracking/api.ts
index 9253f2acb22b..46573543f809 100644
--- a/services/mcp/src/generated/error_tracking/api.ts
+++ b/services/mcp/src/generated/error_tracking/api.ts
@@ -32,25 +32,26 @@ export const ErrorTrackingAssignmentRulesCreateParams = /* @__PURE__ */ zod.obje
export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwoOperatorDefault = `exact`
export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwoTypeDefault = `event`
export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemThreeTypeDefault = `person`
-export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemFourTypeDefault = `element`
-export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemFiveTypeDefault = `event_metadata`
-export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemSixTypeDefault = `session`
-export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemSevenKeyDefault = `id`
-export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemSevenOperatorDefault = `in`
-export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemSevenTypeDefault = `cohort`
-export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemEightTypeDefault = `recording`
-export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemNineTypeDefault = `log_entry`
-export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnezeroTypeDefault = `group`
-export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOneoneTypeDefault = `feature`
-export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnetwoOperatorDefault = `flag_evaluates_to`
-export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnetwoTypeDefault = `flag`
-export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnethreeTypeDefault = `hogql`
-export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnefourTypeDefault = `empty`
-export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnefiveTypeDefault = `data_warehouse`
-export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnesixTypeDefault = `data_warehouse_person_property`
-export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnesevenTypeDefault = `error_tracking_issue`
-export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwozeroTypeDefault = `revenue_analytics`
-export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwooneTypeDefault = `workflow_variable`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemFourTypeDefault = `person_metadata`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemFiveTypeDefault = `element`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemSixTypeDefault = `event_metadata`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemSevenTypeDefault = `session`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemEightKeyDefault = `id`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemEightOperatorDefault = `in`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemEightTypeDefault = `cohort`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemNineTypeDefault = `recording`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnezeroTypeDefault = `log_entry`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOneoneTypeDefault = `group`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnetwoTypeDefault = `feature`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnethreeOperatorDefault = `flag_evaluates_to`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnethreeTypeDefault = `flag`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnefourTypeDefault = `hogql`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnefiveTypeDefault = `empty`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnesixTypeDefault = `data_warehouse`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnesevenTypeDefault = `data_warehouse_person_property`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOneeightTypeDefault = `error_tracking_issue`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwooneTypeDefault = `revenue_analytics`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwotwoTypeDefault = `workflow_variable`
export const errorTrackingAssignmentRulesCreateBodyOrderKeyDefault = 0
export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object({
@@ -171,6 +172,59 @@ export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object
])
.optional(),
}),
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'regex',
+ 'not_regex',
+ 'gt',
+ 'gte',
+ 'lt',
+ 'lte',
+ 'is_set',
+ 'is_not_set',
+ 'is_date_exact',
+ 'is_date_before',
+ 'is_date_after',
+ 'between',
+ 'not_between',
+ 'min',
+ 'max',
+ 'in',
+ 'not_in',
+ 'is_cleaned_path_exact',
+ 'flag_evaluates_to',
+ 'semver_eq',
+ 'semver_neq',
+ 'semver_gt',
+ 'semver_gte',
+ 'semver_lt',
+ 'semver_lte',
+ 'semver_tilde',
+ 'semver_caret',
+ 'semver_wildcard',
+ 'icontains_multi',
+ 'not_icontains_multi',
+ ]),
+ type: zod
+ .literal('person_metadata')
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemFourTypeDefault)
+ .describe('Top-level columns on the persons table (e.g. created_at), not properties JSON'),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
zod.object({
key: zod.enum(['tag_name', 'text', 'href', 'selector']),
label: zod.union([zod.string(), zod.null()]).optional(),
@@ -212,7 +266,7 @@ export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object
]),
type: zod
.literal('element')
- .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemFourTypeDefault),
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemFiveTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -264,7 +318,7 @@ export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object
]),
type: zod
.literal('event_metadata')
- .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemFiveTypeDefault),
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemSixTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -316,7 +370,7 @@ export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object
]),
type: zod
.literal('session')
- .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemSixTypeDefault),
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemSevenTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -331,7 +385,7 @@ export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object
cohort_name: zod.union([zod.string(), zod.null()]).optional(),
key: zod
.literal('id')
- .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemSevenKeyDefault),
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemEightKeyDefault),
label: zod.union([zod.string(), zod.null()]).optional(),
operator: zod
.union([
@@ -373,10 +427,10 @@ export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object
]),
zod.null(),
])
- .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemSevenOperatorDefault),
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemEightOperatorDefault),
type: zod
.literal('cohort')
- .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemSevenTypeDefault),
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemEightTypeDefault),
value: zod.number(),
}),
zod.object({
@@ -420,7 +474,7 @@ export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object
]),
type: zod
.literal('recording')
- .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemEightTypeDefault),
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemNineTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -472,7 +526,7 @@ export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object
]),
type: zod
.literal('log_entry')
- .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemNineTypeDefault),
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnezeroTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -526,7 +580,7 @@ export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object
]),
type: zod
.literal('group')
- .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnezeroTypeDefault),
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOneoneTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -578,7 +632,7 @@ export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object
]),
type: zod
.literal('feature')
- .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOneoneTypeDefault)
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnetwoTypeDefault)
.describe('Event property with "$feature/" prepended'),
value: zod
.union([
@@ -595,11 +649,11 @@ export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object
label: zod.union([zod.string(), zod.null()]).optional(),
operator: zod
.literal('flag_evaluates_to')
- .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnetwoOperatorDefault)
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnethreeOperatorDefault)
.describe('Only flag_evaluates_to operator is allowed for flag dependencies'),
type: zod
.literal('flag')
- .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnetwoTypeDefault)
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnethreeTypeDefault)
.describe('Feature flag dependency'),
value: zod
.union([zod.boolean(), zod.string()])
@@ -610,7 +664,7 @@ export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object
label: zod.union([zod.string(), zod.null()]).optional(),
type: zod
.literal('hogql')
- .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnethreeTypeDefault),
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnefourTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -624,7 +678,7 @@ export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object
zod.object({
type: zod
.literal('empty')
- .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnefourTypeDefault),
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnefiveTypeDefault),
}),
zod.object({
key: zod.string(),
@@ -667,7 +721,7 @@ export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object
]),
type: zod
.literal('data_warehouse')
- .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnefiveTypeDefault),
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnesixTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -719,7 +773,7 @@ export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object
]),
type: zod
.literal('data_warehouse_person_property')
- .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnesixTypeDefault),
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnesevenTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -771,7 +825,7 @@ export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object
]),
type: zod
.literal('error_tracking_issue')
- .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOnesevenTypeDefault),
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemOneeightTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -923,7 +977,7 @@ export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object
]),
type: zod
.literal('revenue_analytics')
- .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwozeroTypeDefault),
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwooneTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -975,7 +1029,7 @@ export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object
]),
type: zod
.literal('workflow_variable')
- .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwooneTypeDefault),
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwotwoTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -1052,25 +1106,26 @@ export const ErrorTrackingGroupingRulesCreateParams = /* @__PURE__ */ zod.object
export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwoOperatorDefault = `exact`
export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwoTypeDefault = `event`
export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemThreeTypeDefault = `person`
-export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemFourTypeDefault = `element`
-export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemFiveTypeDefault = `event_metadata`
-export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemSixTypeDefault = `session`
-export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemSevenKeyDefault = `id`
-export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemSevenOperatorDefault = `in`
-export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemSevenTypeDefault = `cohort`
-export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemEightTypeDefault = `recording`
-export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemNineTypeDefault = `log_entry`
-export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnezeroTypeDefault = `group`
-export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOneoneTypeDefault = `feature`
-export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnetwoOperatorDefault = `flag_evaluates_to`
-export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnetwoTypeDefault = `flag`
-export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnethreeTypeDefault = `hogql`
-export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnefourTypeDefault = `empty`
-export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnefiveTypeDefault = `data_warehouse`
-export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnesixTypeDefault = `data_warehouse_person_property`
-export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnesevenTypeDefault = `error_tracking_issue`
-export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwozeroTypeDefault = `revenue_analytics`
-export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwooneTypeDefault = `workflow_variable`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemFourTypeDefault = `person_metadata`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemFiveTypeDefault = `element`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemSixTypeDefault = `event_metadata`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemSevenTypeDefault = `session`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemEightKeyDefault = `id`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemEightOperatorDefault = `in`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemEightTypeDefault = `cohort`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemNineTypeDefault = `recording`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnezeroTypeDefault = `log_entry`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOneoneTypeDefault = `group`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnetwoTypeDefault = `feature`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnethreeOperatorDefault = `flag_evaluates_to`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnethreeTypeDefault = `flag`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnefourTypeDefault = `hogql`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnefiveTypeDefault = `empty`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnesixTypeDefault = `data_warehouse`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnesevenTypeDefault = `data_warehouse_person_property`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOneeightTypeDefault = `error_tracking_issue`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwooneTypeDefault = `revenue_analytics`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwotwoTypeDefault = `workflow_variable`
export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
filters: zod
@@ -1190,6 +1245,59 @@ export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
])
.optional(),
}),
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'regex',
+ 'not_regex',
+ 'gt',
+ 'gte',
+ 'lt',
+ 'lte',
+ 'is_set',
+ 'is_not_set',
+ 'is_date_exact',
+ 'is_date_before',
+ 'is_date_after',
+ 'between',
+ 'not_between',
+ 'min',
+ 'max',
+ 'in',
+ 'not_in',
+ 'is_cleaned_path_exact',
+ 'flag_evaluates_to',
+ 'semver_eq',
+ 'semver_neq',
+ 'semver_gt',
+ 'semver_gte',
+ 'semver_lt',
+ 'semver_lte',
+ 'semver_tilde',
+ 'semver_caret',
+ 'semver_wildcard',
+ 'icontains_multi',
+ 'not_icontains_multi',
+ ]),
+ type: zod
+ .literal('person_metadata')
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemFourTypeDefault)
+ .describe('Top-level columns on the persons table (e.g. created_at), not properties JSON'),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
zod.object({
key: zod.enum(['tag_name', 'text', 'href', 'selector']),
label: zod.union([zod.string(), zod.null()]).optional(),
@@ -1231,7 +1339,7 @@ export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('element')
- .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemFourTypeDefault),
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemFiveTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -1283,7 +1391,7 @@ export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('event_metadata')
- .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemFiveTypeDefault),
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemSixTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -1335,7 +1443,7 @@ export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('session')
- .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemSixTypeDefault),
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemSevenTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -1350,7 +1458,7 @@ export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
cohort_name: zod.union([zod.string(), zod.null()]).optional(),
key: zod
.literal('id')
- .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemSevenKeyDefault),
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemEightKeyDefault),
label: zod.union([zod.string(), zod.null()]).optional(),
operator: zod
.union([
@@ -1392,10 +1500,10 @@ export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
]),
zod.null(),
])
- .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemSevenOperatorDefault),
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemEightOperatorDefault),
type: zod
.literal('cohort')
- .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemSevenTypeDefault),
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemEightTypeDefault),
value: zod.number(),
}),
zod.object({
@@ -1439,7 +1547,7 @@ export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('recording')
- .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemEightTypeDefault),
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemNineTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -1491,7 +1599,7 @@ export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('log_entry')
- .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemNineTypeDefault),
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnezeroTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -1545,7 +1653,7 @@ export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('group')
- .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnezeroTypeDefault),
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOneoneTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -1597,7 +1705,7 @@ export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('feature')
- .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOneoneTypeDefault)
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnetwoTypeDefault)
.describe('Event property with "$feature/" prepended'),
value: zod
.union([
@@ -1614,11 +1722,11 @@ export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
label: zod.union([zod.string(), zod.null()]).optional(),
operator: zod
.literal('flag_evaluates_to')
- .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnetwoOperatorDefault)
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnethreeOperatorDefault)
.describe('Only flag_evaluates_to operator is allowed for flag dependencies'),
type: zod
.literal('flag')
- .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnetwoTypeDefault)
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnethreeTypeDefault)
.describe('Feature flag dependency'),
value: zod
.union([zod.boolean(), zod.string()])
@@ -1629,7 +1737,7 @@ export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
label: zod.union([zod.string(), zod.null()]).optional(),
type: zod
.literal('hogql')
- .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnethreeTypeDefault),
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnefourTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -1643,7 +1751,7 @@ export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
zod.object({
type: zod
.literal('empty')
- .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnefourTypeDefault),
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnefiveTypeDefault),
}),
zod.object({
key: zod.string(),
@@ -1686,7 +1794,7 @@ export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('data_warehouse')
- .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnefiveTypeDefault),
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnesixTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -1738,7 +1846,7 @@ export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('data_warehouse_person_property')
- .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnesixTypeDefault),
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnesevenTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -1790,7 +1898,7 @@ export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('error_tracking_issue')
- .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOnesevenTypeDefault),
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemOneeightTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -1942,7 +2050,7 @@ export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('revenue_analytics')
- .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwozeroTypeDefault),
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwooneTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -1994,7 +2102,7 @@ export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('workflow_variable')
- .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwooneTypeDefault),
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwotwoTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -2044,25 +2152,26 @@ export const ErrorTrackingGroupingRulesUpdateParams = /* @__PURE__ */ zod.object
export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwoOperatorDefault = `exact`
export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwoTypeDefault = `event`
export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemThreeTypeDefault = `person`
-export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemFourTypeDefault = `element`
-export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemFiveTypeDefault = `event_metadata`
-export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemSixTypeDefault = `session`
-export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemSevenKeyDefault = `id`
-export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemSevenOperatorDefault = `in`
-export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemSevenTypeDefault = `cohort`
-export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemEightTypeDefault = `recording`
-export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemNineTypeDefault = `log_entry`
-export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnezeroTypeDefault = `group`
-export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOneoneTypeDefault = `feature`
-export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnetwoOperatorDefault = `flag_evaluates_to`
-export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnetwoTypeDefault = `flag`
-export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnethreeTypeDefault = `hogql`
-export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnefourTypeDefault = `empty`
-export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnefiveTypeDefault = `data_warehouse`
-export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnesixTypeDefault = `data_warehouse_person_property`
-export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnesevenTypeDefault = `error_tracking_issue`
-export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwozeroTypeDefault = `revenue_analytics`
-export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwooneTypeDefault = `workflow_variable`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemFourTypeDefault = `person_metadata`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemFiveTypeDefault = `element`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemSixTypeDefault = `event_metadata`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemSevenTypeDefault = `session`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemEightKeyDefault = `id`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemEightOperatorDefault = `in`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemEightTypeDefault = `cohort`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemNineTypeDefault = `recording`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnezeroTypeDefault = `log_entry`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOneoneTypeDefault = `group`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnetwoTypeDefault = `feature`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnethreeOperatorDefault = `flag_evaluates_to`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnethreeTypeDefault = `flag`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnefourTypeDefault = `hogql`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnefiveTypeDefault = `empty`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnesixTypeDefault = `data_warehouse`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnesevenTypeDefault = `data_warehouse_person_property`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOneeightTypeDefault = `error_tracking_issue`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwooneTypeDefault = `revenue_analytics`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwotwoTypeDefault = `workflow_variable`
export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
filters: zod
@@ -2183,6 +2292,61 @@ export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
])
.optional(),
}),
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'regex',
+ 'not_regex',
+ 'gt',
+ 'gte',
+ 'lt',
+ 'lte',
+ 'is_set',
+ 'is_not_set',
+ 'is_date_exact',
+ 'is_date_before',
+ 'is_date_after',
+ 'between',
+ 'not_between',
+ 'min',
+ 'max',
+ 'in',
+ 'not_in',
+ 'is_cleaned_path_exact',
+ 'flag_evaluates_to',
+ 'semver_eq',
+ 'semver_neq',
+ 'semver_gt',
+ 'semver_gte',
+ 'semver_lt',
+ 'semver_lte',
+ 'semver_tilde',
+ 'semver_caret',
+ 'semver_wildcard',
+ 'icontains_multi',
+ 'not_icontains_multi',
+ ]),
+ type: zod
+ .literal('person_metadata')
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemFourTypeDefault)
+ .describe(
+ 'Top-level columns on the persons table (e.g. created_at), not properties JSON'
+ ),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
zod.object({
key: zod.enum(['tag_name', 'text', 'href', 'selector']),
label: zod.union([zod.string(), zod.null()]).optional(),
@@ -2224,7 +2388,7 @@ export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('element')
- .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemFourTypeDefault),
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemFiveTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -2276,7 +2440,7 @@ export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('event_metadata')
- .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemFiveTypeDefault),
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemSixTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -2328,7 +2492,7 @@ export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('session')
- .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemSixTypeDefault),
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemSevenTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -2343,7 +2507,7 @@ export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
cohort_name: zod.union([zod.string(), zod.null()]).optional(),
key: zod
.literal('id')
- .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemSevenKeyDefault),
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemEightKeyDefault),
label: zod.union([zod.string(), zod.null()]).optional(),
operator: zod
.union([
@@ -2385,10 +2549,10 @@ export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
]),
zod.null(),
])
- .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemSevenOperatorDefault),
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemEightOperatorDefault),
type: zod
.literal('cohort')
- .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemSevenTypeDefault),
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemEightTypeDefault),
value: zod.number(),
}),
zod.object({
@@ -2435,7 +2599,7 @@ export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('recording')
- .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemEightTypeDefault),
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemNineTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -2487,7 +2651,7 @@ export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('log_entry')
- .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemNineTypeDefault),
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnezeroTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -2541,7 +2705,7 @@ export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('group')
- .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnezeroTypeDefault),
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOneoneTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -2593,7 +2757,7 @@ export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('feature')
- .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOneoneTypeDefault)
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnetwoTypeDefault)
.describe('Event property with "$feature/" prepended'),
value: zod
.union([
@@ -2610,11 +2774,13 @@ export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
label: zod.union([zod.string(), zod.null()]).optional(),
operator: zod
.literal('flag_evaluates_to')
- .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnetwoOperatorDefault)
+ .default(
+ errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnethreeOperatorDefault
+ )
.describe('Only flag_evaluates_to operator is allowed for flag dependencies'),
type: zod
.literal('flag')
- .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnetwoTypeDefault)
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnethreeTypeDefault)
.describe('Feature flag dependency'),
value: zod
.union([zod.boolean(), zod.string()])
@@ -2625,7 +2791,7 @@ export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
label: zod.union([zod.string(), zod.null()]).optional(),
type: zod
.literal('hogql')
- .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnethreeTypeDefault),
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnefourTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -2639,7 +2805,7 @@ export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
zod.object({
type: zod
.literal('empty')
- .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnefourTypeDefault),
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnefiveTypeDefault),
}),
zod.object({
key: zod.string(),
@@ -2682,7 +2848,7 @@ export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('data_warehouse')
- .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnefiveTypeDefault),
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnesixTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -2734,7 +2900,7 @@ export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('data_warehouse_person_property')
- .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnesixTypeDefault),
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnesevenTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -2786,7 +2952,7 @@ export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('error_tracking_issue')
- .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOnesevenTypeDefault),
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemOneeightTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -2938,7 +3104,7 @@ export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('revenue_analytics')
- .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwozeroTypeDefault),
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwooneTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -2990,7 +3156,7 @@ export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
]),
type: zod
.literal('workflow_variable')
- .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwooneTypeDefault),
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwotwoTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -3223,6 +3389,7 @@ export const ErrorTrackingQueryIssueEventsCreateBody = /* @__PURE__ */ zod.objec
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -3248,7 +3415,7 @@ export const ErrorTrackingQueryIssueEventsCreateBody = /* @__PURE__ */ zod.objec
'workflow_variable',
])
.describe(
- '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
),
zod.enum(['']),
])
@@ -3427,6 +3594,7 @@ export const ErrorTrackingQueryIssuesListCreateBody = /* @__PURE__ */ zod.object
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -3452,7 +3620,7 @@ export const ErrorTrackingQueryIssuesListCreateBody = /* @__PURE__ */ zod.object
'workflow_variable',
])
.describe(
- '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
),
zod.enum(['']),
])
@@ -3605,25 +3773,26 @@ export const ErrorTrackingSuppressionRulesCreateParams = /* @__PURE__ */ zod.obj
export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwoOperatorDefault = `exact`
export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwoTypeDefault = `event`
export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemThreeTypeDefault = `person`
-export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemFourTypeDefault = `element`
-export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemFiveTypeDefault = `event_metadata`
-export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemSixTypeDefault = `session`
-export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemSevenKeyDefault = `id`
-export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemSevenOperatorDefault = `in`
-export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemSevenTypeDefault = `cohort`
-export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemEightTypeDefault = `recording`
-export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemNineTypeDefault = `log_entry`
-export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnezeroTypeDefault = `group`
-export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOneoneTypeDefault = `feature`
-export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnetwoOperatorDefault = `flag_evaluates_to`
-export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnetwoTypeDefault = `flag`
-export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnethreeTypeDefault = `hogql`
-export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnefourTypeDefault = `empty`
-export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnefiveTypeDefault = `data_warehouse`
-export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnesixTypeDefault = `data_warehouse_person_property`
-export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnesevenTypeDefault = `error_tracking_issue`
-export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwozeroTypeDefault = `revenue_analytics`
-export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwooneTypeDefault = `workflow_variable`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemFourTypeDefault = `person_metadata`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemFiveTypeDefault = `element`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemSixTypeDefault = `event_metadata`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemSevenTypeDefault = `session`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemEightKeyDefault = `id`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemEightOperatorDefault = `in`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemEightTypeDefault = `cohort`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemNineTypeDefault = `recording`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnezeroTypeDefault = `log_entry`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOneoneTypeDefault = `group`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnetwoTypeDefault = `feature`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnethreeOperatorDefault = `flag_evaluates_to`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnethreeTypeDefault = `flag`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnefourTypeDefault = `hogql`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnefiveTypeDefault = `empty`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnesixTypeDefault = `data_warehouse`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnesevenTypeDefault = `data_warehouse_person_property`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOneeightTypeDefault = `error_tracking_issue`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwooneTypeDefault = `revenue_analytics`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwotwoTypeDefault = `workflow_variable`
export const errorTrackingSuppressionRulesCreateBodySamplingRateDefault = 1
export const errorTrackingSuppressionRulesCreateBodySamplingRateMin = 0
export const errorTrackingSuppressionRulesCreateBodySamplingRateMax = 1
@@ -3746,6 +3915,59 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
])
.optional(),
}),
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'regex',
+ 'not_regex',
+ 'gt',
+ 'gte',
+ 'lt',
+ 'lte',
+ 'is_set',
+ 'is_not_set',
+ 'is_date_exact',
+ 'is_date_before',
+ 'is_date_after',
+ 'between',
+ 'not_between',
+ 'min',
+ 'max',
+ 'in',
+ 'not_in',
+ 'is_cleaned_path_exact',
+ 'flag_evaluates_to',
+ 'semver_eq',
+ 'semver_neq',
+ 'semver_gt',
+ 'semver_gte',
+ 'semver_lt',
+ 'semver_lte',
+ 'semver_tilde',
+ 'semver_caret',
+ 'semver_wildcard',
+ 'icontains_multi',
+ 'not_icontains_multi',
+ ]),
+ type: zod
+ .literal('person_metadata')
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemFourTypeDefault)
+ .describe('Top-level columns on the persons table (e.g. created_at), not properties JSON'),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
zod.object({
key: zod.enum(['tag_name', 'text', 'href', 'selector']),
label: zod.union([zod.string(), zod.null()]).optional(),
@@ -3787,7 +4009,7 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('element')
- .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemFourTypeDefault),
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemFiveTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -3839,7 +4061,7 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('event_metadata')
- .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemFiveTypeDefault),
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemSixTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -3891,7 +4113,7 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('session')
- .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemSixTypeDefault),
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemSevenTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -3906,7 +4128,7 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
cohort_name: zod.union([zod.string(), zod.null()]).optional(),
key: zod
.literal('id')
- .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemSevenKeyDefault),
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemEightKeyDefault),
label: zod.union([zod.string(), zod.null()]).optional(),
operator: zod
.union([
@@ -3948,10 +4170,10 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
]),
zod.null(),
])
- .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemSevenOperatorDefault),
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemEightOperatorDefault),
type: zod
.literal('cohort')
- .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemSevenTypeDefault),
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemEightTypeDefault),
value: zod.number(),
}),
zod.object({
@@ -3995,7 +4217,7 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('recording')
- .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemEightTypeDefault),
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemNineTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -4047,7 +4269,7 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('log_entry')
- .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemNineTypeDefault),
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnezeroTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -4101,7 +4323,7 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('group')
- .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnezeroTypeDefault),
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOneoneTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -4153,7 +4375,7 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('feature')
- .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOneoneTypeDefault)
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnetwoTypeDefault)
.describe('Event property with "$feature/" prepended'),
value: zod
.union([
@@ -4170,11 +4392,11 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
label: zod.union([zod.string(), zod.null()]).optional(),
operator: zod
.literal('flag_evaluates_to')
- .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnetwoOperatorDefault)
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnethreeOperatorDefault)
.describe('Only flag_evaluates_to operator is allowed for flag dependencies'),
type: zod
.literal('flag')
- .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnetwoTypeDefault)
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnethreeTypeDefault)
.describe('Feature flag dependency'),
value: zod
.union([zod.boolean(), zod.string()])
@@ -4185,7 +4407,7 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
label: zod.union([zod.string(), zod.null()]).optional(),
type: zod
.literal('hogql')
- .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnethreeTypeDefault),
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnefourTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -4199,7 +4421,7 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
zod.object({
type: zod
.literal('empty')
- .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnefourTypeDefault),
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnefiveTypeDefault),
}),
zod.object({
key: zod.string(),
@@ -4242,7 +4464,7 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('data_warehouse')
- .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnefiveTypeDefault),
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnesixTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -4294,7 +4516,7 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('data_warehouse_person_property')
- .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnesixTypeDefault),
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnesevenTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -4346,7 +4568,7 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('error_tracking_issue')
- .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOnesevenTypeDefault),
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemOneeightTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -4498,7 +4720,7 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('revenue_analytics')
- .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwozeroTypeDefault),
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwooneTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -4550,7 +4772,7 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('workflow_variable')
- .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwooneTypeDefault),
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwotwoTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -4590,25 +4812,26 @@ export const ErrorTrackingSuppressionRulesUpdateParams = /* @__PURE__ */ zod.obj
export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwoOperatorDefault = `exact`
export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwoTypeDefault = `event`
export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemThreeTypeDefault = `person`
-export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFourTypeDefault = `element`
-export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFiveTypeDefault = `event_metadata`
-export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSixTypeDefault = `session`
-export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSevenKeyDefault = `id`
-export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSevenOperatorDefault = `in`
-export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSevenTypeDefault = `cohort`
-export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemEightTypeDefault = `recording`
-export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemNineTypeDefault = `log_entry`
-export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnezeroTypeDefault = `group`
-export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOneoneTypeDefault = `feature`
-export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnetwoOperatorDefault = `flag_evaluates_to`
-export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnetwoTypeDefault = `flag`
-export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnethreeTypeDefault = `hogql`
-export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnefourTypeDefault = `empty`
-export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnefiveTypeDefault = `data_warehouse`
-export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesixTypeDefault = `data_warehouse_person_property`
-export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesevenTypeDefault = `error_tracking_issue`
-export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwozeroTypeDefault = `revenue_analytics`
-export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwooneTypeDefault = `workflow_variable`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFourTypeDefault = `person_metadata`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFiveTypeDefault = `element`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSixTypeDefault = `event_metadata`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSevenTypeDefault = `session`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemEightKeyDefault = `id`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemEightOperatorDefault = `in`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemEightTypeDefault = `cohort`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemNineTypeDefault = `recording`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnezeroTypeDefault = `log_entry`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOneoneTypeDefault = `group`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnetwoTypeDefault = `feature`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnethreeOperatorDefault = `flag_evaluates_to`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnethreeTypeDefault = `flag`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnefourTypeDefault = `hogql`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnefiveTypeDefault = `empty`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesixTypeDefault = `data_warehouse`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesevenTypeDefault = `data_warehouse_person_property`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOneeightTypeDefault = `error_tracking_issue`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwooneTypeDefault = `revenue_analytics`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwotwoTypeDefault = `workflow_variable`
export const errorTrackingSuppressionRulesUpdateBodySamplingRateMin = 0
export const errorTrackingSuppressionRulesUpdateBodySamplingRateMax = 1
@@ -4730,6 +4953,59 @@ export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.objec
])
.optional(),
}),
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'regex',
+ 'not_regex',
+ 'gt',
+ 'gte',
+ 'lt',
+ 'lte',
+ 'is_set',
+ 'is_not_set',
+ 'is_date_exact',
+ 'is_date_before',
+ 'is_date_after',
+ 'between',
+ 'not_between',
+ 'min',
+ 'max',
+ 'in',
+ 'not_in',
+ 'is_cleaned_path_exact',
+ 'flag_evaluates_to',
+ 'semver_eq',
+ 'semver_neq',
+ 'semver_gt',
+ 'semver_gte',
+ 'semver_lt',
+ 'semver_lte',
+ 'semver_tilde',
+ 'semver_caret',
+ 'semver_wildcard',
+ 'icontains_multi',
+ 'not_icontains_multi',
+ ]),
+ type: zod
+ .literal('person_metadata')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFourTypeDefault)
+ .describe('Top-level columns on the persons table (e.g. created_at), not properties JSON'),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
zod.object({
key: zod.enum(['tag_name', 'text', 'href', 'selector']),
label: zod.union([zod.string(), zod.null()]).optional(),
@@ -4771,7 +5047,7 @@ export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('element')
- .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFourTypeDefault),
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFiveTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -4823,7 +5099,7 @@ export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('event_metadata')
- .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemFiveTypeDefault),
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSixTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -4875,7 +5151,7 @@ export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('session')
- .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSixTypeDefault),
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSevenTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -4890,7 +5166,7 @@ export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.objec
cohort_name: zod.union([zod.string(), zod.null()]).optional(),
key: zod
.literal('id')
- .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSevenKeyDefault),
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemEightKeyDefault),
label: zod.union([zod.string(), zod.null()]).optional(),
operator: zod
.union([
@@ -4932,10 +5208,10 @@ export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.objec
]),
zod.null(),
])
- .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSevenOperatorDefault),
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemEightOperatorDefault),
type: zod
.literal('cohort')
- .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemSevenTypeDefault),
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemEightTypeDefault),
value: zod.number(),
}),
zod.object({
@@ -4979,7 +5255,7 @@ export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('recording')
- .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemEightTypeDefault),
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemNineTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -5031,7 +5307,7 @@ export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('log_entry')
- .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemNineTypeDefault),
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnezeroTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -5085,7 +5361,7 @@ export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('group')
- .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnezeroTypeDefault),
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOneoneTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -5137,7 +5413,7 @@ export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('feature')
- .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOneoneTypeDefault)
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnetwoTypeDefault)
.describe('Event property with "$feature/" prepended'),
value: zod
.union([
@@ -5154,11 +5430,11 @@ export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.objec
label: zod.union([zod.string(), zod.null()]).optional(),
operator: zod
.literal('flag_evaluates_to')
- .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnetwoOperatorDefault)
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnethreeOperatorDefault)
.describe('Only flag_evaluates_to operator is allowed for flag dependencies'),
type: zod
.literal('flag')
- .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnetwoTypeDefault)
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnethreeTypeDefault)
.describe('Feature flag dependency'),
value: zod
.union([zod.boolean(), zod.string()])
@@ -5169,7 +5445,7 @@ export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.objec
label: zod.union([zod.string(), zod.null()]).optional(),
type: zod
.literal('hogql')
- .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnethreeTypeDefault),
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnefourTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -5183,7 +5459,7 @@ export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.objec
zod.object({
type: zod
.literal('empty')
- .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnefourTypeDefault),
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnefiveTypeDefault),
}),
zod.object({
key: zod.string(),
@@ -5226,7 +5502,7 @@ export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('data_warehouse')
- .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnefiveTypeDefault),
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesixTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -5278,7 +5554,7 @@ export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('data_warehouse_person_property')
- .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesixTypeDefault),
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesevenTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -5330,7 +5606,7 @@ export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('error_tracking_issue')
- .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOnesevenTypeDefault),
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemOneeightTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -5482,7 +5758,7 @@ export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('revenue_analytics')
- .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwozeroTypeDefault),
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwooneTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
@@ -5534,7 +5810,7 @@ export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.objec
]),
type: zod
.literal('workflow_variable')
- .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwooneTypeDefault),
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwotwoTypeDefault),
value: zod
.union([
zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
diff --git a/services/mcp/src/generated/logs/api.ts b/services/mcp/src/generated/logs/api.ts
index c16efc75a649..93dcbb8ca45b 100644
--- a/services/mcp/src/generated/logs/api.ts
+++ b/services/mcp/src/generated/logs/api.ts
@@ -35,25 +35,26 @@ export const logsAlertsCreateBodyEnabledDefault = true
export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwoOperatorDefault = `exact`
export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwoTypeDefault = `event`
export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemThreeTypeDefault = `person`
-export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemFourTypeDefault = `element`
-export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemFiveTypeDefault = `event_metadata`
-export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSixTypeDefault = `session`
-export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenKeyDefault = `id`
-export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenOperatorDefault = `in`
-export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenTypeDefault = `cohort`
-export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightTypeDefault = `recording`
-export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemNineTypeDefault = `log_entry`
-export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnezeroTypeDefault = `group`
-export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOneoneTypeDefault = `feature`
-export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnetwoOperatorDefault = `flag_evaluates_to`
-export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnetwoTypeDefault = `flag`
-export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnethreeTypeDefault = `hogql`
-export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefourTypeDefault = `empty`
-export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefiveTypeDefault = `data_warehouse`
-export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesixTypeDefault = `data_warehouse_person_property`
-export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesevenTypeDefault = `error_tracking_issue`
-export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwozeroTypeDefault = `revenue_analytics`
-export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwooneTypeDefault = `workflow_variable`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemFourTypeDefault = `person_metadata`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemFiveTypeDefault = `element`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSixTypeDefault = `event_metadata`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenTypeDefault = `session`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightKeyDefault = `id`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightOperatorDefault = `in`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightTypeDefault = `cohort`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemNineTypeDefault = `recording`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnezeroTypeDefault = `log_entry`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOneoneTypeDefault = `group`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnetwoTypeDefault = `feature`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnethreeOperatorDefault = `flag_evaluates_to`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnethreeTypeDefault = `flag`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefourTypeDefault = `hogql`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefiveTypeDefault = `empty`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesixTypeDefault = `data_warehouse`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesevenTypeDefault = `data_warehouse_person_property`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOneeightTypeDefault = `error_tracking_issue`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwooneTypeDefault = `revenue_analytics`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwotwoTypeDefault = `workflow_variable`
export const logsAlertsCreateBodyThresholdCountDefault = 100
export const logsAlertsCreateBodyThresholdCountMin = 0
@@ -207,6 +208,63 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
])
.optional(),
}),
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'regex',
+ 'not_regex',
+ 'gt',
+ 'gte',
+ 'lt',
+ 'lte',
+ 'is_set',
+ 'is_not_set',
+ 'is_date_exact',
+ 'is_date_before',
+ 'is_date_after',
+ 'between',
+ 'not_between',
+ 'min',
+ 'max',
+ 'in',
+ 'not_in',
+ 'is_cleaned_path_exact',
+ 'flag_evaluates_to',
+ 'semver_eq',
+ 'semver_neq',
+ 'semver_gt',
+ 'semver_gte',
+ 'semver_lt',
+ 'semver_lte',
+ 'semver_tilde',
+ 'semver_caret',
+ 'semver_wildcard',
+ 'icontains_multi',
+ 'not_icontains_multi',
+ ]),
+ type: zod
+ .literal('person_metadata')
+ .default(
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemFourTypeDefault
+ )
+ .describe(
+ 'Top-level columns on the persons table (e.g. created_at), not properties JSON'
+ ),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
zod.object({
key: zod.enum(['tag_name', 'text', 'href', 'selector']),
label: zod.union([zod.string(), zod.null()]).optional(),
@@ -249,7 +307,7 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('element')
.default(
- logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemFourTypeDefault
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemFiveTypeDefault
),
value: zod
.union([
@@ -303,7 +361,7 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('event_metadata')
.default(
- logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemFiveTypeDefault
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSixTypeDefault
),
value: zod
.union([
@@ -357,7 +415,7 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('session')
.default(
- logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSixTypeDefault
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenTypeDefault
),
value: zod
.union([
@@ -374,7 +432,7 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
key: zod
.literal('id')
.default(
- logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenKeyDefault
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightKeyDefault
),
label: zod.union([zod.string(), zod.null()]).optional(),
operator: zod
@@ -418,12 +476,12 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
zod.null(),
])
.default(
- logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenOperatorDefault
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightOperatorDefault
),
type: zod
.literal('cohort')
.default(
- logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenTypeDefault
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightTypeDefault
),
value: zod.number(),
}),
@@ -472,7 +530,7 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('recording')
.default(
- logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightTypeDefault
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemNineTypeDefault
),
value: zod
.union([
@@ -526,7 +584,7 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('log_entry')
.default(
- logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemNineTypeDefault
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnezeroTypeDefault
),
value: zod
.union([
@@ -584,7 +642,7 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('group')
.default(
- logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnezeroTypeDefault
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOneoneTypeDefault
),
value: zod
.union([
@@ -638,7 +696,7 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('feature')
.default(
- logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOneoneTypeDefault
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnetwoTypeDefault
)
.describe('Event property with "$feature/" prepended'),
value: zod
@@ -657,7 +715,7 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
operator: zod
.literal('flag_evaluates_to')
.default(
- logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnetwoOperatorDefault
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnethreeOperatorDefault
)
.describe(
'Only flag_evaluates_to operator is allowed for flag dependencies'
@@ -665,7 +723,7 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('flag')
.default(
- logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnetwoTypeDefault
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnethreeTypeDefault
)
.describe('Feature flag dependency'),
value: zod
@@ -678,7 +736,7 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('hogql')
.default(
- logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnethreeTypeDefault
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefourTypeDefault
),
value: zod
.union([
@@ -694,7 +752,7 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('empty')
.default(
- logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefourTypeDefault
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefiveTypeDefault
),
}),
zod.object({
@@ -739,7 +797,7 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('data_warehouse')
.default(
- logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefiveTypeDefault
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesixTypeDefault
),
value: zod
.union([
@@ -793,7 +851,7 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('data_warehouse_person_property')
.default(
- logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesixTypeDefault
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesevenTypeDefault
),
value: zod
.union([
@@ -847,7 +905,7 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('error_tracking_issue')
.default(
- logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesevenTypeDefault
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOneeightTypeDefault
),
value: zod
.union([
@@ -1001,7 +1059,7 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('revenue_analytics')
.default(
- logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwozeroTypeDefault
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwooneTypeDefault
),
value: zod
.union([
@@ -1055,7 +1113,7 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('workflow_variable')
.default(
- logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwooneTypeDefault
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwotwoTypeDefault
),
value: zod
.union([
@@ -1148,25 +1206,26 @@ export const logsAlertsPartialUpdateBodyNameMax = 255
export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwoOperatorDefault = `exact`
export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwoTypeDefault = `event`
export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemThreeTypeDefault = `person`
-export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemFourTypeDefault = `element`
-export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemFiveTypeDefault = `event_metadata`
-export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemSixTypeDefault = `session`
-export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenKeyDefault = `id`
-export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenOperatorDefault = `in`
-export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenTypeDefault = `cohort`
-export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightTypeDefault = `recording`
-export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemNineTypeDefault = `log_entry`
-export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnezeroTypeDefault = `group`
-export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOneoneTypeDefault = `feature`
-export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnetwoOperatorDefault = `flag_evaluates_to`
-export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnetwoTypeDefault = `flag`
-export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnethreeTypeDefault = `hogql`
-export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefourTypeDefault = `empty`
-export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefiveTypeDefault = `data_warehouse`
-export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesixTypeDefault = `data_warehouse_person_property`
-export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesevenTypeDefault = `error_tracking_issue`
-export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwozeroTypeDefault = `revenue_analytics`
-export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwooneTypeDefault = `workflow_variable`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemFourTypeDefault = `person_metadata`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemFiveTypeDefault = `element`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemSixTypeDefault = `event_metadata`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenTypeDefault = `session`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightKeyDefault = `id`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightOperatorDefault = `in`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightTypeDefault = `cohort`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemNineTypeDefault = `recording`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnezeroTypeDefault = `log_entry`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOneoneTypeDefault = `group`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnetwoTypeDefault = `feature`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnethreeOperatorDefault = `flag_evaluates_to`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnethreeTypeDefault = `flag`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefourTypeDefault = `hogql`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefiveTypeDefault = `empty`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesixTypeDefault = `data_warehouse`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesevenTypeDefault = `data_warehouse_person_property`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOneeightTypeDefault = `error_tracking_issue`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwooneTypeDefault = `revenue_analytics`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwotwoTypeDefault = `workflow_variable`
export const logsAlertsPartialUpdateBodyThresholdCountMin = 0
export const logsAlertsPartialUpdateBodyEvaluationPeriodsMax = 10
@@ -1314,6 +1373,63 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
])
.optional(),
}),
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'regex',
+ 'not_regex',
+ 'gt',
+ 'gte',
+ 'lt',
+ 'lte',
+ 'is_set',
+ 'is_not_set',
+ 'is_date_exact',
+ 'is_date_before',
+ 'is_date_after',
+ 'between',
+ 'not_between',
+ 'min',
+ 'max',
+ 'in',
+ 'not_in',
+ 'is_cleaned_path_exact',
+ 'flag_evaluates_to',
+ 'semver_eq',
+ 'semver_neq',
+ 'semver_gt',
+ 'semver_gte',
+ 'semver_lt',
+ 'semver_lte',
+ 'semver_tilde',
+ 'semver_caret',
+ 'semver_wildcard',
+ 'icontains_multi',
+ 'not_icontains_multi',
+ ]),
+ type: zod
+ .literal('person_metadata')
+ .default(
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemFourTypeDefault
+ )
+ .describe(
+ 'Top-level columns on the persons table (e.g. created_at), not properties JSON'
+ ),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
zod.object({
key: zod.enum(['tag_name', 'text', 'href', 'selector']),
label: zod.union([zod.string(), zod.null()]).optional(),
@@ -1356,7 +1472,7 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('element')
.default(
- logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemFourTypeDefault
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemFiveTypeDefault
),
value: zod
.union([
@@ -1410,7 +1526,7 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('event_metadata')
.default(
- logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemFiveTypeDefault
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemSixTypeDefault
),
value: zod
.union([
@@ -1464,7 +1580,7 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('session')
.default(
- logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemSixTypeDefault
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenTypeDefault
),
value: zod
.union([
@@ -1481,7 +1597,7 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
key: zod
.literal('id')
.default(
- logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenKeyDefault
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightKeyDefault
),
label: zod.union([zod.string(), zod.null()]).optional(),
operator: zod
@@ -1525,12 +1641,12 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
zod.null(),
])
.default(
- logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenOperatorDefault
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightOperatorDefault
),
type: zod
.literal('cohort')
.default(
- logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenTypeDefault
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightTypeDefault
),
value: zod.number(),
}),
@@ -1579,7 +1695,7 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('recording')
.default(
- logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightTypeDefault
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemNineTypeDefault
),
value: zod
.union([
@@ -1633,7 +1749,7 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('log_entry')
.default(
- logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemNineTypeDefault
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnezeroTypeDefault
),
value: zod
.union([
@@ -1691,7 +1807,7 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('group')
.default(
- logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnezeroTypeDefault
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOneoneTypeDefault
),
value: zod
.union([
@@ -1745,7 +1861,7 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('feature')
.default(
- logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOneoneTypeDefault
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnetwoTypeDefault
)
.describe('Event property with "$feature/" prepended'),
value: zod
@@ -1764,7 +1880,7 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
operator: zod
.literal('flag_evaluates_to')
.default(
- logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnetwoOperatorDefault
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnethreeOperatorDefault
)
.describe(
'Only flag_evaluates_to operator is allowed for flag dependencies'
@@ -1772,7 +1888,7 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('flag')
.default(
- logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnetwoTypeDefault
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnethreeTypeDefault
)
.describe('Feature flag dependency'),
value: zod
@@ -1785,7 +1901,7 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('hogql')
.default(
- logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnethreeTypeDefault
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefourTypeDefault
),
value: zod
.union([
@@ -1801,7 +1917,7 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('empty')
.default(
- logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefourTypeDefault
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefiveTypeDefault
),
}),
zod.object({
@@ -1846,7 +1962,7 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('data_warehouse')
.default(
- logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefiveTypeDefault
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesixTypeDefault
),
value: zod
.union([
@@ -1900,7 +2016,7 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('data_warehouse_person_property')
.default(
- logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesixTypeDefault
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesevenTypeDefault
),
value: zod
.union([
@@ -1954,7 +2070,7 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('error_tracking_issue')
.default(
- logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesevenTypeDefault
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemOneeightTypeDefault
),
value: zod
.union([
@@ -2108,7 +2224,7 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('revenue_analytics')
.default(
- logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwozeroTypeDefault
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwooneTypeDefault
),
value: zod
.union([
@@ -2162,7 +2278,7 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('workflow_variable')
.default(
- logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwooneTypeDefault
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwotwoTypeDefault
),
value: zod
.union([
@@ -2322,25 +2438,26 @@ export const LogsAlertsSimulateCreateParams = /* @__PURE__ */ zod.object({
export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwoOperatorDefault = `exact`
export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwoTypeDefault = `event`
export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemThreeTypeDefault = `person`
-export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemFourTypeDefault = `element`
-export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemFiveTypeDefault = `event_metadata`
-export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSixTypeDefault = `session`
-export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenKeyDefault = `id`
-export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenOperatorDefault = `in`
-export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenTypeDefault = `cohort`
-export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightTypeDefault = `recording`
-export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemNineTypeDefault = `log_entry`
-export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnezeroTypeDefault = `group`
-export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOneoneTypeDefault = `feature`
-export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnetwoOperatorDefault = `flag_evaluates_to`
-export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnetwoTypeDefault = `flag`
-export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnethreeTypeDefault = `hogql`
-export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefourTypeDefault = `empty`
-export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefiveTypeDefault = `data_warehouse`
-export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesixTypeDefault = `data_warehouse_person_property`
-export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesevenTypeDefault = `error_tracking_issue`
-export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwozeroTypeDefault = `revenue_analytics`
-export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwooneTypeDefault = `workflow_variable`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemFourTypeDefault = `person_metadata`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemFiveTypeDefault = `element`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSixTypeDefault = `event_metadata`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenTypeDefault = `session`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightKeyDefault = `id`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightOperatorDefault = `in`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightTypeDefault = `cohort`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemNineTypeDefault = `recording`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnezeroTypeDefault = `log_entry`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOneoneTypeDefault = `group`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnetwoTypeDefault = `feature`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnethreeOperatorDefault = `flag_evaluates_to`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnethreeTypeDefault = `flag`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefourTypeDefault = `hogql`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefiveTypeDefault = `empty`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesixTypeDefault = `data_warehouse`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesevenTypeDefault = `data_warehouse_person_property`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOneeightTypeDefault = `error_tracking_issue`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwooneTypeDefault = `revenue_analytics`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwotwoTypeDefault = `workflow_variable`
export const logsAlertsSimulateCreateBodyThresholdCountMin = 0
export const logsAlertsSimulateCreateBodyCheckIntervalMinutesDefault = 5
@@ -2485,6 +2602,63 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
])
.optional(),
}),
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'regex',
+ 'not_regex',
+ 'gt',
+ 'gte',
+ 'lt',
+ 'lte',
+ 'is_set',
+ 'is_not_set',
+ 'is_date_exact',
+ 'is_date_before',
+ 'is_date_after',
+ 'between',
+ 'not_between',
+ 'min',
+ 'max',
+ 'in',
+ 'not_in',
+ 'is_cleaned_path_exact',
+ 'flag_evaluates_to',
+ 'semver_eq',
+ 'semver_neq',
+ 'semver_gt',
+ 'semver_gte',
+ 'semver_lt',
+ 'semver_lte',
+ 'semver_tilde',
+ 'semver_caret',
+ 'semver_wildcard',
+ 'icontains_multi',
+ 'not_icontains_multi',
+ ]),
+ type: zod
+ .literal('person_metadata')
+ .default(
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemFourTypeDefault
+ )
+ .describe(
+ 'Top-level columns on the persons table (e.g. created_at), not properties JSON'
+ ),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
zod.object({
key: zod.enum(['tag_name', 'text', 'href', 'selector']),
label: zod.union([zod.string(), zod.null()]).optional(),
@@ -2527,7 +2701,7 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('element')
.default(
- logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemFourTypeDefault
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemFiveTypeDefault
),
value: zod
.union([
@@ -2581,7 +2755,7 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('event_metadata')
.default(
- logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemFiveTypeDefault
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSixTypeDefault
),
value: zod
.union([
@@ -2635,7 +2809,7 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('session')
.default(
- logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSixTypeDefault
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenTypeDefault
),
value: zod
.union([
@@ -2652,7 +2826,7 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
key: zod
.literal('id')
.default(
- logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenKeyDefault
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightKeyDefault
),
label: zod.union([zod.string(), zod.null()]).optional(),
operator: zod
@@ -2696,12 +2870,12 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
zod.null(),
])
.default(
- logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenOperatorDefault
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightOperatorDefault
),
type: zod
.literal('cohort')
.default(
- logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemSevenTypeDefault
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightTypeDefault
),
value: zod.number(),
}),
@@ -2750,7 +2924,7 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('recording')
.default(
- logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemEightTypeDefault
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemNineTypeDefault
),
value: zod
.union([
@@ -2804,7 +2978,7 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('log_entry')
.default(
- logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemNineTypeDefault
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnezeroTypeDefault
),
value: zod
.union([
@@ -2862,7 +3036,7 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('group')
.default(
- logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnezeroTypeDefault
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOneoneTypeDefault
),
value: zod
.union([
@@ -2916,7 +3090,7 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('feature')
.default(
- logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOneoneTypeDefault
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnetwoTypeDefault
)
.describe('Event property with "$feature/" prepended'),
value: zod
@@ -2935,7 +3109,7 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
operator: zod
.literal('flag_evaluates_to')
.default(
- logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnetwoOperatorDefault
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnethreeOperatorDefault
)
.describe(
'Only flag_evaluates_to operator is allowed for flag dependencies'
@@ -2943,7 +3117,7 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('flag')
.default(
- logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnetwoTypeDefault
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnethreeTypeDefault
)
.describe('Feature flag dependency'),
value: zod
@@ -2956,7 +3130,7 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('hogql')
.default(
- logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnethreeTypeDefault
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefourTypeDefault
),
value: zod
.union([
@@ -2972,7 +3146,7 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('empty')
.default(
- logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefourTypeDefault
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefiveTypeDefault
),
}),
zod.object({
@@ -3017,7 +3191,7 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('data_warehouse')
.default(
- logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnefiveTypeDefault
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesixTypeDefault
),
value: zod
.union([
@@ -3071,7 +3245,7 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('data_warehouse_person_property')
.default(
- logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesixTypeDefault
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesevenTypeDefault
),
value: zod
.union([
@@ -3125,7 +3299,7 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('error_tracking_issue')
.default(
- logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOnesevenTypeDefault
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemOneeightTypeDefault
),
value: zod
.union([
@@ -3279,7 +3453,7 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('revenue_analytics')
.default(
- logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwozeroTypeDefault
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwooneTypeDefault
),
value: zod
.union([
@@ -3333,7 +3507,7 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
type: zod
.literal('workflow_variable')
.default(
- logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwooneTypeDefault
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwotwoTypeDefault
),
value: zod
.union([
diff --git a/services/mcp/src/generated/persons/api.ts b/services/mcp/src/generated/persons/api.ts
index 0ff6dc650589..a3f35b2e9a61 100644
--- a/services/mcp/src/generated/persons/api.ts
+++ b/services/mcp/src/generated/persons/api.ts
@@ -90,6 +90,7 @@ export const PersonsListQueryParams = /* @__PURE__ */ zod.object({
'event_metadata',
'feature',
'person',
+ 'person_metadata',
'cohort',
'element',
'static-cohort',
@@ -115,7 +116,7 @@ export const PersonsListQueryParams = /* @__PURE__ */ zod.object({
'workflow_variable',
])
.describe(
- '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
+ '* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable'
),
zod.enum(['']),
])
diff --git a/services/mcp/src/tools/generated/mcp_analytics.ts b/services/mcp/src/tools/generated/mcp_analytics.ts
index 7b180b267227..c92bb785fcb1 100644
--- a/services/mcp/src/tools/generated/mcp_analytics.ts
+++ b/services/mcp/src/tools/generated/mcp_analytics.ts
@@ -229,6 +229,17 @@ const PersonPropertyFilter = z.object({
value: PropertyFilterValue.optional(),
})
+const PersonMetadataPropertyFilter = z.object({
+ key: z.string(),
+ label: z.string().optional(),
+ operator: PropertyOperator,
+ type: z
+ .literal('person_metadata')
+ .describe('Top-level columns on the persons table (e.g. created_at), not properties JSON')
+ .default('person_metadata'),
+ value: PropertyFilterValue.optional(),
+})
+
const ElementPropertyFilter = z.object({
key: z.enum(['tag_name', 'text', 'href', 'selector']),
label: z.string().optional(),
@@ -391,6 +402,7 @@ const WorkflowVariablePropertyFilter = z.object({
const AnyPropertyFilter = z.union([
EventPropertyFilter,
PersonPropertyFilter,
+ PersonMetadataPropertyFilter,
ElementPropertyFilter,
EventMetadataPropertyFilter,
SessionPropertyFilter,
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/action-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/action-create.json
index 92f63d12ab70..723d87a7ee2d 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/action-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/action-create.json
@@ -105,12 +105,13 @@
},
"type": {
"default": "event",
- "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
+ "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
"enum": [
"event",
"event_metadata",
"feature",
"person",
+ "person_metadata",
"cohort",
"element",
"static-cohort",
@@ -160,12 +161,13 @@
},
"type": {
"default": "event",
- "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
+ "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
"enum": [
"event",
"event_metadata",
"feature",
"person",
+ "person_metadata",
"cohort",
"element",
"static-cohort",
@@ -215,12 +217,13 @@
},
"type": {
"default": "event",
- "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
+ "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
"enum": [
"event",
"event_metadata",
"feature",
"person",
+ "person_metadata",
"cohort",
"element",
"static-cohort",
@@ -273,12 +276,13 @@
},
"type": {
"default": "event",
- "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
+ "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
"enum": [
"event",
"event_metadata",
"feature",
"person",
+ "person_metadata",
"cohort",
"element",
"static-cohort",
@@ -327,12 +331,13 @@
},
"type": {
"default": "event",
- "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
+ "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
"enum": [
"event",
"event_metadata",
"feature",
"person",
+ "person_metadata",
"cohort",
"element",
"static-cohort",
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/action-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/action-update.json
index 3d550a49b72f..09a811178d0e 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/action-update.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/action-update.json
@@ -109,12 +109,13 @@
},
"type": {
"default": "event",
- "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
+ "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
"enum": [
"event",
"event_metadata",
"feature",
"person",
+ "person_metadata",
"cohort",
"element",
"static-cohort",
@@ -164,12 +165,13 @@
},
"type": {
"default": "event",
- "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
+ "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
"enum": [
"event",
"event_metadata",
"feature",
"person",
+ "person_metadata",
"cohort",
"element",
"static-cohort",
@@ -219,12 +221,13 @@
},
"type": {
"default": "event",
- "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
+ "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
"enum": [
"event",
"event_metadata",
"feature",
"person",
+ "person_metadata",
"cohort",
"element",
"static-cohort",
@@ -277,12 +280,13 @@
},
"type": {
"default": "event",
- "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
+ "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
"enum": [
"event",
"event_metadata",
"feature",
"person",
+ "person_metadata",
"cohort",
"element",
"static-cohort",
@@ -331,12 +335,13 @@
},
"type": {
"default": "event",
- "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
+ "description": "Property type (event, person, session, etc.).\n\n* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
"enum": [
"event",
"event_metadata",
"feature",
"person",
+ "person_metadata",
"cohort",
"element",
"static-cohort",
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-create.json
index 5fc423a5eb65..45be844959bf 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-create.json
@@ -383,6 +383,66 @@
"required": ["type", "key"],
"type": "object"
},
+ {
+ "description": "Filter on a top-level persons-table column (e.g. created_at) rather than the\nproperties JSON. The matching key must be one of PERSON_METADATA_FIELDS.",
+ "properties": {
+ "bytecode": {
+ "anyOf": [
+ {
+ "items": {},
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "bytecode_error": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "conditionHash": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "type": "string"
+ },
+ "negation": {
+ "default": false,
+ "type": "boolean"
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "const": "person_metadata",
+ "type": "string"
+ },
+ "value": {}
+ },
+ "required": ["type", "key"],
+ "type": "object"
+ },
{}
]
},
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-partial-update.json
index 6a89812af492..130a5686031c 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-partial-update.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-partial-update.json
@@ -386,6 +386,66 @@
"required": ["type", "key"],
"type": "object"
},
+ {
+ "description": "Filter on a top-level persons-table column (e.g. created_at) rather than the\nproperties JSON. The matching key must be one of PERSON_METADATA_FIELDS.",
+ "properties": {
+ "bytecode": {
+ "anyOf": [
+ {
+ "items": {},
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "bytecode_error": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "conditionHash": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "type": "string"
+ },
+ "negation": {
+ "default": false,
+ "type": "boolean"
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "const": "person_metadata",
+ "type": "string"
+ },
+ "value": {}
+ },
+ "required": ["type", "key"],
+ "type": "object"
+ },
{}
]
},
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-assignment-rules-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-assignment-rules-create.json
index c55589f7d0f3..79bebad83121 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-assignment-rules-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-assignment-rules-create.json
@@ -235,6 +235,102 @@
"required": ["key", "operator"],
"type": "object"
},
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "regex",
+ "not_regex",
+ "gt",
+ "gte",
+ "lt",
+ "lte",
+ "is_set",
+ "is_not_set",
+ "is_date_exact",
+ "is_date_before",
+ "is_date_after",
+ "between",
+ "not_between",
+ "min",
+ "max",
+ "in",
+ "not_in",
+ "is_cleaned_path_exact",
+ "flag_evaluates_to",
+ "semver_eq",
+ "semver_neq",
+ "semver_gt",
+ "semver_gte",
+ "semver_lt",
+ "semver_lte",
+ "semver_tilde",
+ "semver_caret",
+ "semver_wildcard",
+ "icontains_multi",
+ "not_icontains_multi"
+ ],
+ "type": "string"
+ },
+ "type": {
+ "const": "person_metadata",
+ "default": "person_metadata",
+ "description": "Top-level columns on the persons table (e.g. created_at), not properties JSON",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key", "operator"],
+ "type": "object"
+ },
{
"properties": {
"key": {
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-grouping-rules-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-grouping-rules-create.json
index 98ae2ad4f89d..b01a1a8b6e50 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-grouping-rules-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-grouping-rules-create.json
@@ -253,6 +253,102 @@
"required": ["key", "operator"],
"type": "object"
},
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "regex",
+ "not_regex",
+ "gt",
+ "gte",
+ "lt",
+ "lte",
+ "is_set",
+ "is_not_set",
+ "is_date_exact",
+ "is_date_before",
+ "is_date_after",
+ "between",
+ "not_between",
+ "min",
+ "max",
+ "in",
+ "not_in",
+ "is_cleaned_path_exact",
+ "flag_evaluates_to",
+ "semver_eq",
+ "semver_neq",
+ "semver_gt",
+ "semver_gte",
+ "semver_lt",
+ "semver_lte",
+ "semver_tilde",
+ "semver_caret",
+ "semver_wildcard",
+ "icontains_multi",
+ "not_icontains_multi"
+ ],
+ "type": "string"
+ },
+ "type": {
+ "const": "person_metadata",
+ "default": "person_metadata",
+ "description": "Top-level columns on the persons table (e.g. created_at), not properties JSON",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key", "operator"],
+ "type": "object"
+ },
{
"properties": {
"key": {
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-grouping-rules-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-grouping-rules-update.json
index d3f149f1273a..c35f6b4e9f8e 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-grouping-rules-update.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-grouping-rules-update.json
@@ -213,6 +213,102 @@
"required": ["key", "operator"],
"type": "object"
},
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "regex",
+ "not_regex",
+ "gt",
+ "gte",
+ "lt",
+ "lte",
+ "is_set",
+ "is_not_set",
+ "is_date_exact",
+ "is_date_before",
+ "is_date_after",
+ "between",
+ "not_between",
+ "min",
+ "max",
+ "in",
+ "not_in",
+ "is_cleaned_path_exact",
+ "flag_evaluates_to",
+ "semver_eq",
+ "semver_neq",
+ "semver_gt",
+ "semver_gte",
+ "semver_lt",
+ "semver_lte",
+ "semver_tilde",
+ "semver_caret",
+ "semver_wildcard",
+ "icontains_multi",
+ "not_icontains_multi"
+ ],
+ "type": "string"
+ },
+ "type": {
+ "const": "person_metadata",
+ "default": "person_metadata",
+ "description": "Top-level columns on the persons table (e.g. created_at), not properties JSON",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key", "operator"],
+ "type": "object"
+ },
{
"properties": {
"key": {
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-suppression-rules-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-suppression-rules-create.json
index 4d2da49e41ae..1aa9353b4f43 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-suppression-rules-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-suppression-rules-create.json
@@ -212,6 +212,102 @@
"required": ["key", "operator"],
"type": "object"
},
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "regex",
+ "not_regex",
+ "gt",
+ "gte",
+ "lt",
+ "lte",
+ "is_set",
+ "is_not_set",
+ "is_date_exact",
+ "is_date_before",
+ "is_date_after",
+ "between",
+ "not_between",
+ "min",
+ "max",
+ "in",
+ "not_in",
+ "is_cleaned_path_exact",
+ "flag_evaluates_to",
+ "semver_eq",
+ "semver_neq",
+ "semver_gt",
+ "semver_gte",
+ "semver_lt",
+ "semver_lte",
+ "semver_tilde",
+ "semver_caret",
+ "semver_wildcard",
+ "icontains_multi",
+ "not_icontains_multi"
+ ],
+ "type": "string"
+ },
+ "type": {
+ "const": "person_metadata",
+ "default": "person_metadata",
+ "description": "Top-level columns on the persons table (e.g. created_at), not properties JSON",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key", "operator"],
+ "type": "object"
+ },
{
"properties": {
"key": {
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-suppression-rules-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-suppression-rules-update.json
index ff17df9d8855..657292f90ea5 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-suppression-rules-update.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-suppression-rules-update.json
@@ -212,6 +212,102 @@
"required": ["key", "operator"],
"type": "object"
},
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "regex",
+ "not_regex",
+ "gt",
+ "gte",
+ "lt",
+ "lte",
+ "is_set",
+ "is_not_set",
+ "is_date_exact",
+ "is_date_before",
+ "is_date_after",
+ "between",
+ "not_between",
+ "min",
+ "max",
+ "in",
+ "not_in",
+ "is_cleaned_path_exact",
+ "flag_evaluates_to",
+ "semver_eq",
+ "semver_neq",
+ "semver_gt",
+ "semver_gte",
+ "semver_lt",
+ "semver_lte",
+ "semver_tilde",
+ "semver_caret",
+ "semver_wildcard",
+ "icontains_multi",
+ "not_icontains_multi"
+ ],
+ "type": "string"
+ },
+ "type": {
+ "const": "person_metadata",
+ "default": "person_metadata",
+ "description": "Top-level columns on the persons table (e.g. created_at), not properties JSON",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key", "operator"],
+ "type": "object"
+ },
{
"properties": {
"key": {
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issue-events.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issue-events.json
index 01ae284c8cb5..8b25f956ca23 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issue-events.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issue-events.json
@@ -68,12 +68,13 @@
"type": {
"anyOf": [
{
- "description": "* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
+ "description": "* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
"enum": [
"event",
"event_metadata",
"feature",
"person",
+ "person_metadata",
"cohort",
"element",
"static-cohort",
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issues-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issues-list.json
index 85613e1ae0f4..70f54cad9243 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issues-list.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issues-list.json
@@ -106,12 +106,13 @@
"type": {
"anyOf": [
{
- "description": "* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
+ "description": "* `event` - event\n* `event_metadata` - event_metadata\n* `feature` - feature\n* `person` - person\n* `person_metadata` - person_metadata\n* `cohort` - cohort\n* `element` - element\n* `static-cohort` - static-cohort\n* `dynamic-cohort` - dynamic-cohort\n* `precalculated-cohort` - precalculated-cohort\n* `group` - group\n* `recording` - recording\n* `log_entry` - log_entry\n* `behavioral` - behavioral\n* `session` - session\n* `hogql` - hogql\n* `data_warehouse` - data_warehouse\n* `data_warehouse_person_property` - data_warehouse_person_property\n* `error_tracking_issue` - error_tracking_issue\n* `log` - log\n* `log_attribute` - log_attribute\n* `log_resource_attribute` - log_resource_attribute\n* `span` - span\n* `span_attribute` - span_attribute\n* `span_resource_attribute` - span_resource_attribute\n* `revenue_analytics` - revenue_analytics\n* `flag` - flag\n* `workflow_variable` - workflow_variable",
"enum": [
"event",
"event_metadata",
"feature",
"person",
+ "person_metadata",
"cohort",
"element",
"static-cohort",