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(insights): inline behavioral (performed event) property filter (#83738)

Sam Pennington3fd65b8483f9
diff --git a/bin/patch-schema-property-filter-discriminator.py b/bin/patch-schema-property-filter-discriminator.py
index c69273753c50..50d2a6694798 100644
--- a/bin/patch-schema-property-filter-discriminator.py
+++ b/bin/patch-schema-property-filter-discriminator.py
@@ -59,6 +59,7 @@ MEMBER_TAGS: dict[str, str] = {
"RevenueAnalyticsPropertyFilter": "revenue_analytics",
"AccountCustomPropertyFilter": "account_custom_property",
"WorkflowVariablePropertyFilter": "workflow_variable",
+ "BehavioralPropertyFilter": "behavioral",
}
# How many union sites each rewrite must hit. A mismatch means the schema changed
diff --git a/frontend/src/lib/components/PropertyFilters/utils.ts b/frontend/src/lib/components/PropertyFilters/utils.ts
index 911db49194d3..58663122eae2 100644
--- a/frontend/src/lib/components/PropertyFilters/utils.ts
+++ b/frontend/src/lib/components/PropertyFilters/utils.ts
@@ -123,6 +123,7 @@ export const PROPERTY_FILTER_TYPE_TO_TAXONOMIC_FILTER_GROUP_TYPE: Record<Propert
[PropertyFilterType.PersonMetadata]: TaxonomicFilterGroupType.PersonMetadata,
[PropertyFilterType.Feature]: TaxonomicFilterGroupType.EventFeatureFlags,
[PropertyFilterType.Cohort]: TaxonomicFilterGroupType.Cohorts,
+ [PropertyFilterType.Behavioral]: TaxonomicFilterGroupType.Events,
[PropertyFilterType.Element]: TaxonomicFilterGroupType.Elements,
[PropertyFilterType.Session]: TaxonomicFilterGroupType.SessionProperties,
[PropertyFilterType.HogQL]: TaxonomicFilterGroupType.HogQLExpression,
diff --git a/frontend/src/queries/schema.json b/frontend/src/queries/schema.json
index 1abaada4c983..69c7dfb98276 100644
--- a/frontend/src/queries/schema.json
+++ b/frontend/src/queries/schema.json
@@ -1906,6 +1906,9 @@
},
{
"$ref": "#/definitions/WorkflowVariablePropertyFilter"
+ },
+ {
+ "$ref": "#/definitions/BehavioralPropertyFilter"
}
]
},
@@ -5890,6 +5893,86 @@
],
"type": "string"
},
+ "BehavioralEventSource": {
+ "description": "Whether a behavioral filter's `key` refers to an event name or an action id",
+ "enum": ["events", "actions"],
+ "type": "string"
+ },
+ "BehavioralPropertyFilter": {
+ "additionalProperties": false,
+ "description": "Filters persons on whether they performed an event in a time window, without a saved cohort. Event scope only.",
+ "properties": {
+ "event_filters": {
+ "description": "Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/EventPropertyFilter"
+ },
+ {
+ "$ref": "#/definitions/PersonPropertyFilter"
+ },
+ {
+ "$ref": "#/definitions/ElementPropertyFilter"
+ },
+ {
+ "$ref": "#/definitions/FeaturePropertyFilter"
+ },
+ {
+ "$ref": "#/definitions/HogQLPropertyFilter"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "event_type": {
+ "$ref": "#/definitions/BehavioralEventSource"
+ },
+ "explicit_datetime": {
+ "description": "Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval",
+ "type": "string"
+ },
+ "explicit_datetime_to": {
+ "type": "string"
+ },
+ "key": {
+ "description": "Event name, or action id when event_type is 'actions'",
+ "type": "string"
+ },
+ "label": {
+ "type": "string"
+ },
+ "negation": {
+ "description": "Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators",
+ "type": "boolean"
+ },
+ "operator": {
+ "$ref": "#/definitions/PropertyOperator",
+ "description": "Count comparison for performed_event_multiple, defaults to exact"
+ },
+ "operator_value": {
+ "description": "Count threshold for performed_event_multiple",
+ "type": "integer"
+ },
+ "time_interval": {
+ "$ref": "#/definitions/TimeUnitType"
+ },
+ "time_value": {
+ "description": "Relative time window size, paired with time_interval",
+ "type": "integer"
+ },
+ "type": {
+ "const": "behavioral",
+ "description": "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP",
+ "type": "string"
+ },
+ "value": {
+ "$ref": "#/definitions/InlineBehavioralType"
+ }
+ },
+ "required": ["event_type", "key", "type", "value"],
+ "type": "object"
+ },
"BiasRisk": {
"additionalProperties": false,
"description": "Empirically observed multi-variant exclusion bias risk: uneven split + `EXCLUDE` handling + observed `$multiple` share above the threshold. Present on the response only when the experiment is currently at risk.",
@@ -28937,6 +29020,11 @@
"enum": [999999, -999999],
"type": "number"
},
+ "InlineBehavioralType": {
+ "description": "The subset of cohort behavioral criteria supported by the inline `BehavioralPropertyFilter`",
+ "enum": ["performed_event", "performed_event_multiple"],
+ "type": "string"
+ },
"InsightActorsQuery": {
"additionalProperties": false,
"properties": {
@@ -38522,6 +38610,7 @@
"feature",
"session",
"cohort",
+ "behavioral",
"recording",
"log_entry",
"group",
@@ -51797,6 +51886,10 @@
},
"type": "object"
},
+ "TimeUnitType": {
+ "enum": ["day", "week", "month", "year"],
+ "type": "string"
+ },
"TimelineEntry": {
"additionalProperties": false,
"properties": {
diff --git a/frontend/src/queries/validators.js b/frontend/src/queries/validators.js
index 6aaefa035e3e..38966a656699 100644
--- a/frontend/src/queries/validators.js
+++ b/frontend/src/queries/validators.js
@@ -26,6 +26,7 @@ const schema12 = {
{ $ref: '#/definitions/RevenueAnalyticsPropertyFilter' },
{ $ref: '#/definitions/AccountCustomPropertyFilter' },
{ $ref: '#/definitions/WorkflowVariablePropertyFilter' },
+ { $ref: '#/definitions/BehavioralPropertyFilter' },
],
}
const schema39 = {
@@ -5701,6 +5702,657 @@ function validate72(data, { instancePath = '', parentData, parentDataProperty, r
validate72.errors = vErrors
return errors === 0
}
+const schema62 = {
+ additionalProperties: false,
+ description:
+ 'Filters persons on whether they performed an event in a time window, without a saved cohort. Event scope only.',
+ properties: {
+ event_filters: {
+ description:
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups',
+ items: {
+ anyOf: [
+ { $ref: '#/definitions/EventPropertyFilter' },
+ { $ref: '#/definitions/PersonPropertyFilter' },
+ { $ref: '#/definitions/ElementPropertyFilter' },
+ { $ref: '#/definitions/FeaturePropertyFilter' },
+ { $ref: '#/definitions/HogQLPropertyFilter' },
+ ],
+ },
+ type: 'array',
+ },
+ event_type: { $ref: '#/definitions/BehavioralEventSource' },
+ explicit_datetime: {
+ description: 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval',
+ type: 'string',
+ },
+ explicit_datetime_to: { type: 'string' },
+ key: { description: "Event name, or action id when event_type is 'actions'", type: 'string' },
+ label: { type: 'string' },
+ negation: {
+ description:
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators',
+ type: 'boolean',
+ },
+ operator: {
+ $ref: '#/definitions/PropertyOperator',
+ description: 'Count comparison for performed_event_multiple, defaults to exact',
+ },
+ operator_value: { description: 'Count threshold for performed_event_multiple', type: 'integer' },
+ time_interval: { $ref: '#/definitions/TimeUnitType' },
+ time_value: { description: 'Relative time window size, paired with time_interval', type: 'integer' },
+ type: {
+ const: 'behavioral',
+ description:
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP",
+ type: 'string',
+ },
+ value: { $ref: '#/definitions/InlineBehavioralType' },
+ },
+ required: ['event_type', 'key', 'type', 'value'],
+ type: 'object',
+}
+const schema63 = {
+ description: "Whether a behavioral filter's `key` refers to an event name or an action id",
+ enum: ['events', 'actions'],
+ type: 'string',
+}
+const schema65 = { enum: ['day', 'week', 'month', 'year'], type: 'string' }
+const schema66 = {
+ description: 'The subset of cohort behavioral criteria supported by the inline `BehavioralPropertyFilter`',
+ enum: ['performed_event', 'performed_event_multiple'],
+ type: 'string',
+}
+const func2 = Object.prototype.hasOwnProperty
+function validate75(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.event_type === undefined && (missing0 = 'event_type')) ||
+ (data.key === undefined && (missing0 = 'key')) ||
+ (data.type === undefined && (missing0 = 'type')) ||
+ (data.value === undefined && (missing0 = 'value'))
+ ) {
+ validate75.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 (!func2.call(schema62.properties, key0)) {
+ validate75.errors = [
+ {
+ instancePath,
+ schemaPath: '#/additionalProperties',
+ keyword: 'additionalProperties',
+ params: { additionalProperty: key0 },
+ message: 'must NOT have additional properties',
+ },
+ ]
+ return false
+ break
+ }
+ }
+ if (_errs1 === errors) {
+ if (data.event_filters !== undefined) {
+ let data0 = data.event_filters
+ const _errs2 = errors
+ if (errors === _errs2) {
+ if (Array.isArray(data0)) {
+ var valid1 = true
+ const len0 = data0.length
+ for (let i0 = 0; i0 < len0; i0++) {
+ let data1 = data0[i0]
+ const _errs4 = errors
+ const _errs5 = errors
+ let valid2 = false
+ const _errs6 = errors
+ if (
+ !validate12(data1, {
+ instancePath: instancePath + '/event_filters/' + i0,
+ parentData: data0,
+ parentDataProperty: i0,
+ rootData,
+ })
+ ) {
+ vErrors =
+ vErrors === null ? validate12.errors : vErrors.concat(validate12.errors)
+ errors = vErrors.length
+ }
+ var _valid0 = _errs6 === errors
+ valid2 = valid2 || _valid0
+ if (!valid2) {
+ const _errs7 = errors
+ if (
+ !validate16(data1, {
+ instancePath: instancePath + '/event_filters/' + i0,
+ parentData: data0,
+ parentDataProperty: i0,
+ rootData,
+ })
+ ) {
+ vErrors =
+ vErrors === null ? validate16.errors : vErrors.concat(validate16.errors)
+ errors = vErrors.length
+ }
+ var _valid0 = _errs7 === errors
+ valid2 = valid2 || _valid0
+ if (!valid2) {
+ const _errs8 = errors
+ if (
+ !validate22(data1, {
+ instancePath: instancePath + '/event_filters/' + i0,
+ parentData: data0,
+ parentDataProperty: i0,
+ rootData,
+ })
+ ) {
+ vErrors =
+ vErrors === null
+ ? validate22.errors
+ : vErrors.concat(validate22.errors)
+ errors = vErrors.length
+ }
+ var _valid0 = _errs8 === errors
+ valid2 = valid2 || _valid0
+ if (!valid2) {
+ const _errs9 = errors
+ if (
+ !validate42(data1, {
+ instancePath: instancePath + '/event_filters/' + i0,
+ parentData: data0,
+ parentDataProperty: i0,
+ rootData,
+ })
+ ) {
+ vErrors =
+ vErrors === null
+ ? validate42.errors
+ : vErrors.concat(validate42.errors)
+ errors = vErrors.length
+ }
+ var _valid0 = _errs9 === errors
+ valid2 = valid2 || _valid0
+ if (!valid2) {
+ const _errs10 = errors
+ if (
+ !validate45(data1, {
+ instancePath: instancePath + '/event_filters/' + i0,
+ parentData: data0,
+ parentDataProperty: i0,
+ rootData,
+ })
+ ) {
+ vErrors =
+ vErrors === null
+ ? validate45.errors
+ : vErrors.concat(validate45.errors)
+ errors = vErrors.length
+ }
+ var _valid0 = _errs10 === errors
+ valid2 = valid2 || _valid0
+ }
+ }
+ }
+ }
+ if (!valid2) {
+ const err0 = {
+ instancePath: instancePath + '/event_filters/' + i0,
+ schemaPath: '#/properties/event_filters/items/anyOf',
+ keyword: 'anyOf',
+ params: {},
+ message: 'must match a schema in anyOf',
+ }
+ if (vErrors === null) {
+ vErrors = [err0]
+ } else {
+ vErrors.push(err0)
+ }
+ errors++
+ validate75.errors = vErrors
+ return false
+ } else {
+ errors = _errs5
+ if (vErrors !== null) {
+ if (_errs5) {
+ vErrors.length = _errs5
+ } else {
+ vErrors = null
+ }
+ }
+ }
+ var valid1 = _errs4 === errors
+ if (!valid1) {
+ break
+ }
+ }
+ } else {
+ validate75.errors = [
+ {
+ instancePath: instancePath + '/event_filters',
+ schemaPath: '#/properties/event_filters/type',
+ keyword: 'type',
+ params: { type: 'array' },
+ message: 'must be array',
+ },
+ ]
+ return false
+ }
+ }
+ var valid0 = _errs2 === errors
+ } else {
+ var valid0 = true
+ }
+ if (valid0) {
+ if (data.event_type !== undefined) {
+ let data2 = data.event_type
+ const _errs11 = errors
+ if (typeof data2 !== 'string') {
+ validate75.errors = [
+ {
+ instancePath: instancePath + '/event_type',
+ schemaPath: '#/definitions/BehavioralEventSource/type',
+ keyword: 'type',
+ params: { type: 'string' },
+ message: 'must be string',
+ },
+ ]
+ return false
+ }
+ if (!(data2 === 'events' || data2 === 'actions')) {
+ validate75.errors = [
+ {
+ instancePath: instancePath + '/event_type',
+ schemaPath: '#/definitions/BehavioralEventSource/enum',
+ keyword: 'enum',
+ params: { allowedValues: schema63.enum },
+ message: 'must be equal to one of the allowed values',
+ },
+ ]
+ return false
+ }
+ var valid0 = _errs11 === errors
+ } else {
+ var valid0 = true
+ }
+ if (valid0) {
+ if (data.explicit_datetime !== undefined) {
+ const _errs14 = errors
+ if (typeof data.explicit_datetime !== 'string') {
+ validate75.errors = [
+ {
+ instancePath: instancePath + '/explicit_datetime',
+ schemaPath: '#/properties/explicit_datetime/type',
+ keyword: 'type',
+ params: { type: 'string' },
+ message: 'must be string',
+ },
+ ]
+ return false
+ }
+ var valid0 = _errs14 === errors
+ } else {
+ var valid0 = true
+ }
+ if (valid0) {
+ if (data.explicit_datetime_to !== undefined) {
+ const _errs16 = errors
+ if (typeof data.explicit_datetime_to !== 'string') {
+ validate75.errors = [
+ {
+ instancePath: instancePath + '/explicit_datetime_to',
+ schemaPath: '#/properties/explicit_datetime_to/type',
+ keyword: 'type',
+ params: { type: 'string' },
+ message: 'must be string',
+ },
+ ]
+ return false
+ }
+ var valid0 = _errs16 === errors
+ } else {
+ var valid0 = true
+ }
+ if (valid0) {
+ if (data.key !== undefined) {
+ const _errs18 = errors
+ if (typeof data.key !== 'string') {
+ validate75.errors = [
+ {
+ instancePath: instancePath + '/key',
+ schemaPath: '#/properties/key/type',
+ keyword: 'type',
+ params: { type: 'string' },
+ message: 'must be string',
+ },
+ ]
+ return false
+ }
+ var valid0 = _errs18 === errors
+ } else {
+ var valid0 = true
+ }
+ if (valid0) {
+ if (data.label !== undefined) {
+ const _errs20 = errors
+ if (typeof data.label !== 'string') {
+ validate75.errors = [
+ {
+ instancePath: instancePath + '/label',
+ schemaPath: '#/properties/label/type',
+ keyword: 'type',
+ params: { type: 'string' },
+ message: 'must be string',
+ },
+ ]
+ return false
+ }
+ var valid0 = _errs20 === errors
+ } else {
+ var valid0 = true
+ }
+ if (valid0) {
+ if (data.negation !== undefined) {
+ const _errs22 = errors
+ if (typeof data.negation !== 'boolean') {
+ validate75.errors = [
+ {
+ instancePath: instancePath + '/negation',
+ schemaPath: '#/properties/negation/type',
+ keyword: 'type',
+ params: { type: 'boolean' },
+ message: 'must be boolean',
+ },
+ ]
+ return false
+ }
+ var valid0 = _errs22 === errors
+ } else {
+ var valid0 = true
+ }
+ if (valid0) {
+ if (data.operator !== undefined) {
+ let data8 = data.operator
+ const _errs24 = errors
+ if (typeof data8 !== 'string') {
+ validate75.errors = [
+ {
+ instancePath: instancePath + '/operator',
+ schemaPath: '#/definitions/PropertyOperator/type',
+ keyword: 'type',
+ params: { type: 'string' },
+ message: 'must be string',
+ },
+ ]
+ return false
+ }
+ if (
+ !(
+ data8 === 'exact' ||
+ data8 === 'is_not' ||
+ data8 === 'icontains' ||
+ data8 === 'not_icontains' ||
+ data8 === 'starts_with' ||
+ data8 === 'not_starts_with' ||
+ data8 === 'ends_with' ||
+ data8 === 'not_ends_with' ||
+ data8 === 'regex' ||
+ data8 === 'not_regex' ||
+ data8 === 'gt' ||
+ data8 === 'gte' ||
+ data8 === 'lt' ||
+ data8 === 'lte' ||
+ data8 === 'is_set' ||
+ data8 === 'is_not_set' ||
+ data8 === 'is_date_exact' ||
+ data8 === 'is_date_before' ||
+ data8 === 'is_date_after' ||
+ data8 === 'between' ||
+ data8 === 'not_between' ||
+ data8 === 'min' ||
+ data8 === 'max' ||
+ data8 === 'in' ||
+ data8 === 'not_in' ||
+ data8 === 'is_cleaned_path_exact' ||
+ data8 === 'flag_evaluates_to' ||
+ data8 === 'semver_eq' ||
+ data8 === 'semver_neq' ||
+ data8 === 'semver_gt' ||
+ data8 === 'semver_gte' ||
+ data8 === 'semver_lt' ||
+ data8 === 'semver_lte' ||
+ data8 === 'semver_tilde' ||
+ data8 === 'semver_caret' ||
+ data8 === 'semver_wildcard' ||
+ data8 === 'icontains_multi' ||
+ data8 === 'not_icontains_multi'
+ )
+ ) {
+ validate75.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 = _errs24 === errors
+ } else {
+ var valid0 = true
+ }
+ if (valid0) {
+ if (data.operator_value !== undefined) {
+ let data9 = data.operator_value
+ const _errs27 = errors
+ if (
+ !(
+ typeof data9 == 'number' &&
+ !(data9 % 1) &&
+ !isNaN(data9) &&
+ isFinite(data9)
+ )
+ ) {
+ validate75.errors = [
+ {
+ instancePath: instancePath + '/operator_value',
+ schemaPath: '#/properties/operator_value/type',
+ keyword: 'type',
+ params: { type: 'integer' },
+ message: 'must be integer',
+ },
+ ]
+ return false
+ }
+ var valid0 = _errs27 === errors
+ } else {
+ var valid0 = true
+ }
+ if (valid0) {
+ if (data.time_interval !== undefined) {
+ let data10 = data.time_interval
+ const _errs29 = errors
+ if (typeof data10 !== 'string') {
+ validate75.errors = [
+ {
+ instancePath: instancePath + '/time_interval',
+ schemaPath: '#/definitions/TimeUnitType/type',
+ keyword: 'type',
+ params: { type: 'string' },
+ message: 'must be string',
+ },
+ ]
+ return false
+ }
+ if (
+ !(
+ data10 === 'day' ||
+ data10 === 'week' ||
+ data10 === 'month' ||
+ data10 === 'year'
+ )
+ ) {
+ validate75.errors = [
+ {
+ instancePath: instancePath + '/time_interval',
+ schemaPath: '#/definitions/TimeUnitType/enum',
+ keyword: 'enum',
+ params: { allowedValues: schema65.enum },
+ message:
+ 'must be equal to one of the allowed values',
+ },
+ ]
+ return false
+ }
+ var valid0 = _errs29 === errors
+ } else {
+ var valid0 = true
+ }
+ if (valid0) {
+ if (data.time_value !== undefined) {
+ let data11 = data.time_value
+ const _errs32 = errors
+ if (
+ !(
+ typeof data11 == 'number' &&
+ !(data11 % 1) &&
+ !isNaN(data11) &&
+ isFinite(data11)
+ )
+ ) {
+ validate75.errors = [
+ {
+ instancePath: instancePath + '/time_value',
+ schemaPath: '#/properties/time_value/type',
+ keyword: 'type',
+ params: { type: 'integer' },
+ message: 'must be integer',
+ },
+ ]
+ return false
+ }
+ var valid0 = _errs32 === errors
+ } else {
+ var valid0 = true
+ }
+ if (valid0) {
+ if (data.type !== undefined) {
+ let data12 = data.type
+ const _errs34 = errors
+ if (typeof data12 !== 'string') {
+ validate75.errors = [
+ {
+ instancePath: instancePath + '/type',
+ schemaPath: '#/properties/type/type',
+ keyword: 'type',
+ params: { type: 'string' },
+ message: 'must be string',
+ },
+ ]
+ return false
+ }
+ if ('behavioral' !== data12) {
+ validate75.errors = [
+ {
+ instancePath: instancePath + '/type',
+ schemaPath: '#/properties/type/const',
+ keyword: 'const',
+ params: { allowedValue: 'behavioral' },
+ message: 'must be equal to constant',
+ },
+ ]
+ return false
+ }
+ var valid0 = _errs34 === errors
+ } else {
+ var valid0 = true
+ }
+ if (valid0) {
+ if (data.value !== undefined) {
+ let data13 = data.value
+ const _errs36 = errors
+ if (typeof data13 !== 'string') {
+ validate75.errors = [
+ {
+ instancePath:
+ instancePath + '/value',
+ schemaPath:
+ '#/definitions/InlineBehavioralType/type',
+ keyword: 'type',
+ params: { type: 'string' },
+ message: 'must be string',
+ },
+ ]
+ return false
+ }
+ if (
+ !(
+ data13 === 'performed_event' ||
+ data13 === 'performed_event_multiple'
+ )
+ ) {
+ validate75.errors = [
+ {
+ instancePath:
+ instancePath + '/value',
+ schemaPath:
+ '#/definitions/InlineBehavioralType/enum',
+ keyword: 'enum',
+ params: {
+ allowedValues: schema66.enum,
+ },
+ message:
+ 'must be equal to one of the allowed values',
+ },
+ ]
+ return false
+ }
+ var valid0 = _errs36 === errors
+ } else {
+ var valid0 = true
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ } else {
+ validate75.errors = [
+ {
+ instancePath,
+ schemaPath: '#/type',
+ keyword: 'type',
+ params: { type: 'object' },
+ message: 'must be object',
+ },
+ ]
+ return false
+ }
+ }
+ validate75.errors = vErrors
+ return errors === 0
+}
function validate11(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
@@ -6338,6 +6990,30 @@ function validate11(data, { instancePath = '', parentData, parentDataProperty, r
var _valid0 =
_errs41 === errors
valid0 = valid0 || _valid0
+ if (!valid0) {
+ const _errs42 = errors
+ if (
+ !validate75(data, {
+ instancePath,
+ parentData,
+ parentDataProperty,
+ rootData,
+ })
+ ) {
+ vErrors =
+ vErrors === null
+ ? validate75.errors
+ : vErrors.concat(
+ validate75.errors
+ )
+ errors =
+ vErrors.length
+ }
+ var _valid0 =
+ _errs42 === errors
+ valid0 =
+ valid0 || _valid0
+ }
}
}
}
@@ -6389,9 +7065,9 @@ function validate11(data, { instancePath = '', parentData, parentDataProperty, r
validate11.errors = vErrors
return errors === 0
}
-export const WebAnalyticsPropertyFilters = validate75
-const schema62 = { items: { $ref: '#/definitions/WebAnalyticsPropertyFilter' }, type: 'array' }
-const schema63 = {
+export const WebAnalyticsPropertyFilters = validate82
+const schema67 = { items: { $ref: '#/definitions/WebAnalyticsPropertyFilter' }, type: 'array' }
+const schema68 = {
anyOf: [
{ $ref: '#/definitions/EventPropertyFilter' },
{ $ref: '#/definitions/PersonPropertyFilter' },
@@ -6399,7 +7075,7 @@ const schema63 = {
{ $ref: '#/definitions/CohortPropertyFilter' },
],
}
-function validate76(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate83(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
const _errs0 = errors
@@ -6452,7 +7128,7 @@ function validate76(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err0)
}
errors++
- validate76.errors = vErrors
+ validate83.errors = vErrors
return false
} else {
errors = _errs0
@@ -6464,10 +7140,10 @@ function validate76(data, { instancePath = '', parentData, parentDataProperty, r
}
}
}
- validate76.errors = vErrors
+ validate83.errors = vErrors
return errors === 0
}
-function validate75(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate82(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -6477,14 +7153,14 @@ function validate75(data, { instancePath = '', parentData, parentDataProperty, r
for (let i0 = 0; i0 < len0; i0++) {
const _errs1 = errors
if (
- !validate76(data[i0], {
+ !validate83(data[i0], {
instancePath: instancePath + '/' + i0,
parentData: data,
parentDataProperty: i0,
rootData,
})
) {
- vErrors = vErrors === null ? validate76.errors : vErrors.concat(validate76.errors)
+ vErrors = vErrors === null ? validate83.errors : vErrors.concat(validate83.errors)
errors = vErrors.length
}
var valid0 = _errs1 === errors
@@ -6493,7 +7169,7 @@ function validate75(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate75.errors = [
+ validate82.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -6505,11 +7181,11 @@ function validate75(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate75.errors = vErrors
+ validate82.errors = vErrors
return errors === 0
}
-export const SessionPropertyFilter = validate82
-function validate82(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+export const SessionPropertyFilter = validate89
+function validate89(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -6520,7 +7196,7 @@ function validate82(data, { instancePath = '', parentData, parentDataProperty, r
(data.operator === undefined && (missing0 = 'operator')) ||
(data.type === undefined && (missing0 = 'type'))
) {
- validate82.errors = [
+ validate89.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -6542,7 +7218,7 @@ function validate82(data, { instancePath = '', parentData, parentDataProperty, r
key0 === 'value'
)
) {
- validate82.errors = [
+ validate89.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -6559,7 +7235,7 @@ function validate82(data, { instancePath = '', parentData, parentDataProperty, r
if (data.key !== undefined) {
const _errs2 = errors
if (typeof data.key !== 'string') {
- validate82.errors = [
+ validate89.errors = [
{
instancePath: instancePath + '/key',
schemaPath: '#/properties/key/type',
@@ -6578,7 +7254,7 @@ function validate82(data, { instancePath = '', parentData, parentDataProperty, r
if (data.label !== undefined) {
const _errs4 = errors
if (typeof data.label !== 'string') {
- validate82.errors = [
+ validate89.errors = [
{
instancePath: instancePath + '/label',
schemaPath: '#/properties/label/type',
@@ -6598,7 +7274,7 @@ function validate82(data, { instancePath = '', parentData, parentDataProperty, r
let data2 = data.operator
const _errs6 = errors
if (typeof data2 !== 'string') {
- validate82.errors = [
+ validate89.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/type',
@@ -6651,7 +7327,7 @@ function validate82(data, { instancePath = '', parentData, parentDataProperty, r
data2 === 'not_icontains_multi'
)
) {
- validate82.errors = [
+ validate89.errors = [
{
instancePath: instancePath + '/operator',
schemaPath: '#/definitions/PropertyOperator/enum',
@@ -6671,7 +7347,7 @@ function validate82(data, { instancePath = '', parentData, parentDataProperty, r
let data3 = data.type
const _errs9 = errors
if (typeof data3 !== 'string') {
- validate82.errors = [
+ validate89.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/type',
@@ -6683,7 +7359,7 @@ function validate82(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('session' !== data3) {
- validate82.errors = [
+ validate89.errors = [
{
instancePath: instancePath + '/type',
schemaPath: '#/properties/type/const',
@@ -6724,7 +7400,7 @@ function validate82(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate82.errors = [
+ validate89.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -6736,11 +7412,11 @@ function validate82(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate82.errors = vErrors
+ validate89.errors = vErrors
return errors === 0
}
-export const CompareFilter = validate84
-const schema66 = {
+export const CompareFilter = validate91
+const schema71 = {
additionalProperties: false,
properties: {
compare: {
@@ -6756,7 +7432,7 @@ const schema66 = {
},
type: 'object',
}
-function validate84(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate91(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -6764,7 +7440,7 @@ function validate84(data, { instancePath = '', parentData, parentDataProperty, r
const _errs1 = errors
for (const key0 in data) {
if (!(key0 === 'compare' || key0 === 'compare_to')) {
- validate84.errors = [
+ validate91.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -6781,7 +7457,7 @@ function validate84(data, { instancePath = '', parentData, parentDataProperty, r
if (data.compare !== undefined) {
const _errs2 = errors
if (typeof data.compare !== 'boolean') {
- validate84.errors = [
+ validate91.errors = [
{
instancePath: instancePath + '/compare',
schemaPath: '#/properties/compare/type',
@@ -6800,7 +7476,7 @@ function validate84(data, { instancePath = '', parentData, parentDataProperty, r
if (data.compare_to !== undefined) {
const _errs4 = errors
if (typeof data.compare_to !== 'string') {
- validate84.errors = [
+ validate91.errors = [
{
instancePath: instancePath + '/compare_to',
schemaPath: '#/properties/compare_to/type',
@@ -6818,7 +7494,7 @@ function validate84(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate84.errors = [
+ validate91.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -6830,11 +7506,11 @@ function validate84(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate84.errors = vErrors
+ validate91.errors = vErrors
return errors === 0
}
-export const ExperimentMetric = validate85
-const schema67 = {
+export const ExperimentMetric = validate92
+const schema72 = {
discriminator: { propertyName: 'metric_type' },
oneOf: [
{ $ref: '#/definitions/ExperimentMeanMetric' },
@@ -6845,7 +7521,7 @@ const schema67 = {
required: ['metric_type'],
type: 'object',
}
-const schema68 = {
+const schema73 = {
additionalProperties: false,
properties: {
breakdownFilter: { $ref: '#/definitions/BreakdownFilter' },
@@ -6886,11 +7562,10 @@ const schema68 = {
required: ['kind', 'metric_type', 'source'],
type: 'object',
}
-const schema70 = { type: 'integer' }
-const schema82 = { enum: ['second', 'minute', 'hour', 'day', 'week', 'month'], type: 'string' }
-const schema83 = { enum: ['increase', 'decrease'], type: 'string' }
-const func2 = Object.prototype.hasOwnProperty
-const schema69 = {
+const schema75 = { type: 'integer' }
+const schema87 = { enum: ['second', 'minute', 'hour', 'day', 'week', 'month'], type: 'string' }
+const schema88 = { enum: ['increase', 'decrease'], type: 'string' }
+const schema74 = {
additionalProperties: false,
properties: {
breakdown: {
@@ -6912,7 +7587,7 @@ const schema69 = {
},
type: 'object',
}
-const schema75 = {
+const schema80 = {
enum: [
'cohort',
'person',
@@ -6927,7 +7602,7 @@ const schema75 = {
],
type: 'string',
}
-const schema76 = {
+const schema81 = {
additionalProperties: false,
properties: {
group_type_index: { anyOf: [{ $ref: '#/definitions/integer' }, { type: 'null' }] },
@@ -6939,7 +7614,7 @@ const schema76 = {
required: ['property'],
type: 'object',
}
-const schema80 = {
+const schema85 = {
enum: [
'person',
'event',
@@ -6954,14 +7629,14 @@ const schema80 = {
],
type: 'string',
}
-function validate88(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate95(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')) {
- validate88.errors = [
+ validate95.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -6983,7 +7658,7 @@ function validate88(data, { instancePath = '', parentData, parentDataProperty, r
key0 === 'type'
)
) {
- validate88.errors = [
+ validate95.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -7054,7 +7729,7 @@ function validate88(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err2)
}
errors++
- validate88.errors = vErrors
+ validate95.errors = vErrors
return false
} else {
errors = _errs3
@@ -7075,7 +7750,7 @@ function validate88(data, { instancePath = '', parentData, parentDataProperty, r
let data1 = data.histogram_bin_count
const _errs9 = errors
if (!(typeof data1 == 'number' && !(data1 % 1) && !isNaN(data1) && isFinite(data1))) {
- validate88.errors = [
+ validate95.errors = [
{
instancePath: instancePath + '/histogram_bin_count',
schemaPath: '#/definitions/integer/type',
@@ -7094,7 +7769,7 @@ function validate88(data, { instancePath = '', parentData, parentDataProperty, r
if (data.normalize_url !== undefined) {
const _errs12 = errors
if (typeof data.normalize_url !== 'boolean') {
- validate88.errors = [
+ validate95.errors = [
{
instancePath: instancePath + '/normalize_url',
schemaPath: '#/properties/normalize_url/type',
@@ -7174,7 +7849,7 @@ function validate88(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err5)
}
errors++
- validate88.errors = vErrors
+ validate95.errors = vErrors
return false
} else {
errors = _errs15
@@ -7230,7 +7905,7 @@ function validate88(data, { instancePath = '', parentData, parentDataProperty, r
instancePath: instancePath + '/type',
schemaPath: '#/definitions/MultipleBreakdownType/enum',
keyword: 'enum',
- params: { allowedValues: schema80.enum },
+ params: { allowedValues: schema85.enum },
message: 'must be equal to one of the allowed values',
}
if (vErrors === null) {
@@ -7276,7 +7951,7 @@ function validate88(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err9)
}
errors++
- validate88.errors = vErrors
+ validate95.errors = vErrors
return false
} else {
errors = _errs22
@@ -7299,7 +7974,7 @@ function validate88(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate88.errors = [
+ validate95.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -7311,18 +7986,18 @@ function validate88(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate88.errors = vErrors
+ validate95.errors = vErrors
return errors === 0
}
-function validate87(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate94(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(schema69.properties, key0)) {
- validate87.errors = [
+ if (!func2.call(schema74.properties, key0)) {
+ validate94.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -7517,7 +8192,7 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err7)
}
errors++
- validate87.errors = vErrors
+ validate94.errors = vErrors
return false
} else {
errors = _errs3
@@ -7591,7 +8266,7 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err10)
}
errors++
- validate87.errors = vErrors
+ validate94.errors = vErrors
return false
} else {
errors = _errs21
@@ -7612,12 +8287,12 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
let data3 = data.breakdown_hide_other_aggregation
const _errs27 = errors
if (typeof data3 !== 'boolean' && data3 !== null) {
- validate87.errors = [
+ validate94.errors = [
{
instancePath: instancePath + '/breakdown_hide_other_aggregation',
schemaPath: '#/properties/breakdown_hide_other_aggregation/type',
keyword: 'type',
- params: { type: schema69.properties.breakdown_hide_other_aggregation.type },
+ params: { type: schema74.properties.breakdown_hide_other_aggregation.type },
message: 'must be boolean,null',
},
]
@@ -7632,7 +8307,7 @@ function validate87(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))) {
- validate87.errors = [
+ validate94.errors = [
{
instancePath: instancePath + '/breakdown_histogram_bin_count',
schemaPath: '#/definitions/integer/type',
@@ -7654,7 +8329,7 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
if (
!(typeof data5 == 'number' && !(data5 % 1) && !isNaN(data5) && isFinite(data5))
) {
- validate87.errors = [
+ validate94.errors = [
{
instancePath: instancePath + '/breakdown_limit',
schemaPath: '#/definitions/integer/type',
@@ -7673,7 +8348,7 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
if (data.breakdown_normalize_url !== undefined) {
const _errs35 = errors
if (typeof data.breakdown_normalize_url !== 'boolean') {
- validate87.errors = [
+ validate94.errors = [
{
instancePath: instancePath + '/breakdown_normalize_url',
schemaPath: '#/properties/breakdown_normalize_url/type',
@@ -7692,7 +8367,7 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
if (data.breakdown_path_cleaning !== undefined) {
const _errs37 = errors
if (typeof data.breakdown_path_cleaning !== 'boolean') {
- validate87.errors = [
+ validate94.errors = [
{
instancePath: instancePath + '/breakdown_path_cleaning',
schemaPath: '#/properties/breakdown_path_cleaning/type',
@@ -7747,7 +8422,7 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
instancePath: instancePath + '/breakdown_type',
schemaPath: '#/definitions/BreakdownType/enum',
keyword: 'enum',
- params: { allowedValues: schema75.enum },
+ params: { allowedValues: schema80.enum },
message: 'must be equal to one of the allowed values',
}
if (vErrors === null) {
@@ -7793,7 +8468,7 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err14)
}
errors++
- validate87.errors = vErrors
+ validate94.errors = vErrors
return false
} else {
errors = _errs40
@@ -7816,7 +8491,7 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
if (errors === _errs46) {
if (Array.isArray(data9)) {
if (data9.length > 3) {
- validate87.errors = [
+ validate94.errors = [
{
instancePath: instancePath + '/breakdowns',
schemaPath: '#/properties/breakdowns/maxItems',
@@ -7832,7 +8507,7 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
for (let i1 = 0; i1 < len1; i1++) {
const _errs48 = errors
if (
- !validate88(data9[i1], {
+ !validate95(data9[i1], {
instancePath:
instancePath + '/breakdowns/' + i1,
parentData: data9,
@@ -7842,8 +8517,8 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
) {
vErrors =
vErrors === null
- ? validate88.errors
- : vErrors.concat(validate88.errors)
+ ? validate95.errors
+ : vErrors.concat(validate95.errors)
errors = vErrors.length
}
var valid12 = _errs48 === errors
@@ -7853,7 +8528,7 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate87.errors = [
+ validate94.errors = [
{
instancePath: instancePath + '/breakdowns',
schemaPath: '#/properties/breakdowns/type',
@@ -7879,7 +8554,7 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate87.errors = [
+ validate94.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -7891,10 +8566,10 @@ function validate87(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate87.errors = vErrors
+ validate94.errors = vErrors
return errors === 0
}
-const schema84 = {
+const schema89 = {
discriminator: { propertyName: 'kind' },
oneOf: [
{ $ref: '#/definitions/EventsNode' },
@@ -7904,7 +8579,7 @@ const schema84 = {
required: ['kind'],
type: 'object',
}
-const schema85 = {
+const schema90 = {
additionalProperties: false,
properties: {
custom_name: { type: 'string' },
@@ -7938,7 +8613,7 @@ const schema85 = {
required: ['kind'],
type: 'object',
}
-const schema87 = {
+const schema92 = {
anyOf: [
{ $ref: '#/definitions/BaseMathType' },
{ $ref: '#/definitions/FunnelMathType' },
@@ -7950,7 +8625,7 @@ const schema87 = {
{ $ref: '#/definitions/CalendarHeatmapMathType' },
],
}
-const schema88 = {
+const schema93 = {
enum: [
'total',
'dau',
@@ -7962,9 +8637,9 @@ const schema88 = {
],
type: 'string',
}
-const schema89 = { enum: ['total', 'first_time_for_user', 'first_time_for_user_with_filters'], type: 'string' }
-const schema90 = { enum: ['avg', 'sum', 'min', 'max', 'median', 'p75', 'p90', 'p95', 'p99'], type: 'string' }
-const schema91 = {
+const schema94 = { enum: ['total', 'first_time_for_user', 'first_time_for_user_with_filters'], type: 'string' }
+const schema95 = { enum: ['avg', 'sum', 'min', 'max', 'median', 'p75', 'p90', 'p95', 'p99'], type: 'string' }
+const schema96 = {
enum: [
'avg_count_per_actor',
'min_count_per_actor',
@@ -7977,14 +8652,14 @@ const schema91 = {
],
type: 'string',
}
-const schema92 = { enum: ['unique_group', 'first_time_for_group', 'first_matching_event_for_group'], type: 'string' }
-const schema93 = { const: 'hogql', type: 'string' }
-const schema94 = {
+const schema97 = { enum: ['unique_group', 'first_time_for_group', 'first_matching_event_for_group'], type: 'string' }
+const schema98 = { const: 'hogql', type: 'string' }
+const schema99 = {
enum: ['total', 'sum', 'unique_session', 'min', 'max', 'avg', 'dau', 'unique_group', 'hogql'],
type: 'string',
}
-const schema95 = { enum: ['total', 'dau'], type: 'string' }
-function validate94(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+const schema100 = { enum: ['total', 'dau'], type: 'string' }
+function validate101(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
const _errs0 = errors
@@ -8020,7 +8695,7 @@ function validate94(data, { instancePath = '', parentData, parentDataProperty, r
instancePath,
schemaPath: '#/definitions/BaseMathType/enum',
keyword: 'enum',
- params: { allowedValues: schema88.enum },
+ params: { allowedValues: schema93.enum },
message: 'must be equal to one of the allowed values',
}
if (vErrors === null) {
@@ -8054,7 +8729,7 @@ function validate94(data, { instancePath = '', parentData, parentDataProperty, r
instancePath,
schemaPath: '#/definitions/FunnelMathType/enum',
keyword: 'enum',
- params: { allowedValues: schema89.enum },
+ params: { allowedValues: schema94.enum },
message: 'must be equal to one of the allowed values',
}
if (vErrors === null) {
@@ -8100,7 +8775,7 @@ function validate94(data, { instancePath = '', parentData, parentDataProperty, r
instancePath,
schemaPath: '#/definitions/PropertyMathType/enum',
keyword: 'enum',
- params: { allowedValues: schema90.enum },
+ params: { allowedValues: schema95.enum },
message: 'must be equal to one of the allowed values',
}
if (vErrors === null) {
@@ -8145,7 +8820,7 @@ function validate94(data, { instancePath = '', parentData, parentDataProperty, r
instancePath,
schemaPath: '#/definitions/CountPerActorMathType/enum',
keyword: 'enum',
- params: { allowedValues: schema91.enum },
+ params: { allowedValues: schema96.enum },
message: 'must be equal to one of the allowed values',
}
if (vErrors === null) {
@@ -8185,7 +8860,7 @@ function validate94(data, { instancePath = '', parentData, parentDataProperty, r
instancePath,
schemaPath: '#/definitions/GroupMathType/enum',
keyword: 'enum',
- params: { allowedValues: schema92.enum },
+ params: { allowedValues: schema97.enum },
message: 'must be equal to one of the allowed values',
}
if (vErrors === null) {
@@ -8265,7 +8940,7 @@ function validate94(data, { instancePath = '', parentData, parentDataProperty, r
instancePath,
schemaPath: '#/definitions/ExperimentMetricMathType/enum',
keyword: 'enum',
- params: { allowedValues: schema94.enum },
+ params: { allowedValues: schema99.enum },
message: 'must be equal to one of the allowed values',
}
if (vErrors === null) {
@@ -8299,7 +8974,7 @@ function validate94(data, { instancePath = '', parentData, parentDataProperty, r
instancePath,
schemaPath: '#/definitions/CalendarHeatmapMathType/enum',
keyword: 'enum',
- params: { allowedValues: schema95.enum },
+ params: { allowedValues: schema100.enum },
message: 'must be equal to one of the allowed values',
}
if (vErrors === null) {
@@ -8332,7 +9007,7 @@ function validate94(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err16)
}
errors++
- validate94.errors = vErrors
+ validate101.errors = vErrors
return false
} else {
errors = _errs0
@@ -8344,15 +9019,15 @@ function validate94(data, { instancePath = '', parentData, parentDataProperty, r
}
}
}
- validate94.errors = vErrors
+ validate101.errors = vErrors
return errors === 0
}
-const schema96 = {
+const schema101 = {
additionalProperties: false,
properties: { property: { type: 'string' }, static: { $ref: '#/definitions/CurrencyCode' } },
type: 'object',
}
-const schema97 = {
+const schema102 = {
enum: [
'AED',
'AFN',
@@ -8509,7 +9184,7 @@ const schema97 = {
],
type: 'string',
}
-function validate96(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate103(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -8517,7 +9192,7 @@ function validate96(data, { instancePath = '', parentData, parentDataProperty, r
const _errs1 = errors
for (const key0 in data) {
if (!(key0 === 'property' || key0 === 'static')) {
- validate96.errors = [
+ validate103.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -8534,7 +9209,7 @@ function validate96(data, { instancePath = '', parentData, parentDataProperty, r
if (data.property !== undefined) {
const _errs2 = errors
if (typeof data.property !== 'string') {
- validate96.errors = [
+ validate103.errors = [
{
instancePath: instancePath + '/property',
schemaPath: '#/properties/property/type',
@@ -8554,7 +9229,7 @@ function validate96(data, { instancePath = '', parentData, parentDataProperty, r
let data1 = data.static
const _errs4 = errors
if (typeof data1 !== 'string') {
- validate96.errors = [
+ validate103.errors = [
{
instancePath: instancePath + '/static',
schemaPath: '#/definitions/CurrencyCode/type',
@@ -8721,12 +9396,12 @@ function validate96(data, { instancePath = '', parentData, parentDataProperty, r
data1 === 'ZMW'
)
) {
- validate96.errors = [
+ validate103.errors = [
{
instancePath: instancePath + '/static',
schemaPath: '#/definitions/CurrencyCode/enum',
keyword: 'enum',
- params: { allowedValues: schema97.enum },
+ params: { allowedValues: schema102.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -8739,7 +9414,7 @@ function validate96(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate96.errors = [
+ validate103.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -8751,17 +9426,17 @@ function validate96(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate96.errors = vErrors
+ validate103.errors = vErrors
return errors === 0
}
-function validate92(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate99(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')) {
- validate92.errors = [
+ validate99.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -8774,8 +9449,8 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
} else {
const _errs1 = errors
for (const key0 in data) {
- if (!func2.call(schema85.properties, key0)) {
- validate92.errors = [
+ if (!func2.call(schema90.properties, key0)) {
+ validate99.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -8792,7 +9467,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
if (data.custom_name !== undefined) {
const _errs2 = errors
if (typeof data.custom_name !== 'string') {
- validate92.errors = [
+ validate99.errors = [
{
instancePath: instancePath + '/custom_name',
schemaPath: '#/properties/custom_name/type',
@@ -8812,12 +9487,12 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
let data1 = data.event
const _errs4 = errors
if (typeof data1 !== 'string' && data1 !== null) {
- validate92.errors = [
+ validate99.errors = [
{
instancePath: instancePath + '/event',
schemaPath: '#/properties/event/type',
keyword: 'type',
- params: { type: schema85.properties.event.type },
+ params: { type: schema90.properties.event.type },
message: 'must be string,null',
},
]
@@ -8857,7 +9532,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate92.errors = [
+ validate99.errors = [
{
instancePath: instancePath + '/fixedProperties',
schemaPath: '#/properties/fixedProperties/type',
@@ -8878,7 +9553,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
let data4 = data.kind
const _errs9 = errors
if (typeof data4 !== 'string') {
- validate92.errors = [
+ validate99.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/type',
@@ -8890,7 +9565,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('EventsNode' !== data4) {
- validate92.errors = [
+ validate99.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/const',
@@ -8917,7 +9592,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
isFinite(data5)
)
) {
- validate92.errors = [
+ validate99.errors = [
{
instancePath: instancePath + '/limit',
schemaPath: '#/definitions/integer/type',
@@ -8936,7 +9611,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math !== undefined) {
const _errs14 = errors
if (
- !validate94(data.math, {
+ !validate101(data.math, {
instancePath: instancePath + '/math',
parentData: data,
parentDataProperty: 'math',
@@ -8945,8 +9620,8 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
) {
vErrors =
vErrors === null
- ? validate94.errors
- : vErrors.concat(validate94.errors)
+ ? validate101.errors
+ : vErrors.concat(validate101.errors)
errors = vErrors.length
}
var valid0 = _errs14 === errors
@@ -8958,7 +9633,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
let data7 = data.math_group_type_index
const _errs15 = errors
if (!(typeof data7 == 'number' && isFinite(data7))) {
- validate92.errors = [
+ validate99.errors = [
{
instancePath: instancePath + '/math_group_type_index',
schemaPath: '#/properties/math_group_type_index/type',
@@ -8978,14 +9653,14 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
data7 === 4
)
) {
- validate92.errors = [
+ validate99.errors = [
{
instancePath: instancePath + '/math_group_type_index',
schemaPath: '#/properties/math_group_type_index/enum',
keyword: 'enum',
params: {
allowedValues:
- schema85.properties.math_group_type_index.enum,
+ schema90.properties.math_group_type_index.enum,
},
message: 'must be equal to one of the allowed values',
},
@@ -9000,7 +9675,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math_hogql !== undefined) {
const _errs17 = errors
if (typeof data.math_hogql !== 'string') {
- validate92.errors = [
+ validate99.errors = [
{
instancePath: instancePath + '/math_hogql',
schemaPath: '#/properties/math_hogql/type',
@@ -9020,7 +9695,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
let data9 = data.math_multiplier
const _errs19 = errors
if (!(typeof data9 == 'number' && isFinite(data9))) {
- validate92.errors = [
+ validate99.errors = [
{
instancePath: instancePath + '/math_multiplier',
schemaPath: '#/properties/math_multiplier/type',
@@ -9039,7 +9714,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math_property !== undefined) {
const _errs21 = errors
if (typeof data.math_property !== 'string') {
- validate92.errors = [
+ validate99.errors = [
{
instancePath: instancePath + '/math_property',
schemaPath: '#/properties/math_property/type',
@@ -9058,7 +9733,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math_property_revenue_currency !== undefined) {
const _errs23 = errors
if (
- !validate96(data.math_property_revenue_currency, {
+ !validate103(data.math_property_revenue_currency, {
instancePath:
instancePath +
'/math_property_revenue_currency',
@@ -9070,8 +9745,8 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
) {
vErrors =
vErrors === null
- ? validate96.errors
- : vErrors.concat(validate96.errors)
+ ? validate103.errors
+ : vErrors.concat(validate103.errors)
errors = vErrors.length
}
var valid0 = _errs23 === errors
@@ -9082,7 +9757,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
if (data.math_property_type !== undefined) {
const _errs24 = errors
if (typeof data.math_property_type !== 'string') {
- validate92.errors = [
+ validate99.errors = [
{
instancePath:
instancePath +
@@ -9104,7 +9779,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
if (data.name !== undefined) {
const _errs26 = errors
if (typeof data.name !== 'string') {
- validate92.errors = [
+ validate99.errors = [
{
instancePath:
instancePath + '/name',
@@ -9128,7 +9803,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
typeof data.optionalInFunnel !==
'boolean'
) {
- validate92.errors = [
+ validate99.errors = [
{
instancePath:
instancePath +
@@ -9164,7 +9839,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
typeof data15[i1] !==
'string'
) {
- validate92.errors = [
+ validate99.errors = [
{
instancePath:
instancePath +
@@ -9189,7 +9864,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate92.errors = [
+ validate99.errors = [
{
instancePath:
instancePath +
@@ -9257,7 +9932,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate92.errors = [
+ validate99.errors = [
{
instancePath:
instancePath +
@@ -9291,7 +9966,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
!Array.isArray(data19)
)
) {
- validate92.errors = [
+ validate99.errors = [
{
instancePath:
instancePath +
@@ -9325,7 +10000,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
isFinite(data20)
)
) {
- validate92.errors = [
+ validate99.errors = [
{
instancePath:
instancePath +
@@ -9367,7 +10042,7 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate92.errors = [
+ validate99.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -9379,10 +10054,10 @@ function validate92(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate92.errors = vErrors
+ validate99.errors = vErrors
return errors === 0
}
-const schema98 = {
+const schema103 = {
additionalProperties: false,
properties: {
custom_name: { type: 'string' },
@@ -9414,14 +10089,14 @@ const schema98 = {
required: ['id', 'kind'],
type: 'object',
}
-function validate100(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate107(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'))) {
- validate100.errors = [
+ validate107.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -9434,8 +10109,8 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
} else {
const _errs1 = errors
for (const key0 in data) {
- if (!func2.call(schema98.properties, key0)) {
- validate100.errors = [
+ if (!func2.call(schema103.properties, key0)) {
+ validate107.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -9452,7 +10127,7 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
if (data.custom_name !== undefined) {
const _errs2 = errors
if (typeof data.custom_name !== 'string') {
- validate100.errors = [
+ validate107.errors = [
{
instancePath: instancePath + '/custom_name',
schemaPath: '#/properties/custom_name/type',
@@ -9495,7 +10170,7 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate100.errors = [
+ validate107.errors = [
{
instancePath: instancePath + '/fixedProperties',
schemaPath: '#/properties/fixedProperties/type',
@@ -9516,7 +10191,7 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
let data3 = data.id
const _errs7 = errors
if (!(typeof data3 == 'number' && !(data3 % 1) && !isNaN(data3) && isFinite(data3))) {
- validate100.errors = [
+ validate107.errors = [
{
instancePath: instancePath + '/id',
schemaPath: '#/definitions/integer/type',
@@ -9536,7 +10211,7 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
let data4 = data.kind
const _errs10 = errors
if (typeof data4 !== 'string') {
- validate100.errors = [
+ validate107.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/type',
@@ -9548,7 +10223,7 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if ('ActionsNode' !== data4) {
- validate100.errors = [
+ validate107.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/const',
@@ -9567,7 +10242,7 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
if (data.math !== undefined) {
const _errs12 = errors
if (
- !validate94(data.math, {
+ !validate101(data.math, {
instancePath: instancePath + '/math',
parentData: data,
parentDataProperty: 'math',
@@ -9575,7 +10250,9 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
})
) {
vErrors =
- vErrors === null ? validate94.errors : vErrors.concat(validate94.errors)
+ vErrors === null
+ ? validate101.errors
+ : vErrors.concat(validate101.errors)
errors = vErrors.length
}
var valid0 = _errs12 === errors
@@ -9587,7 +10264,7 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
let data6 = data.math_group_type_index
const _errs13 = errors
if (!(typeof data6 == 'number' && isFinite(data6))) {
- validate100.errors = [
+ validate107.errors = [
{
instancePath: instancePath + '/math_group_type_index',
schemaPath: '#/properties/math_group_type_index/type',
@@ -9607,14 +10284,14 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
data6 === 4
)
) {
- validate100.errors = [
+ validate107.errors = [
{
instancePath: instancePath + '/math_group_type_index',
schemaPath: '#/properties/math_group_type_index/enum',
keyword: 'enum',
params: {
allowedValues:
- schema98.properties.math_group_type_index.enum,
+ schema103.properties.math_group_type_index.enum,
},
message: 'must be equal to one of the allowed values',
},
@@ -9629,7 +10306,7 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
if (data.math_hogql !== undefined) {
const _errs15 = errors
if (typeof data.math_hogql !== 'string') {
- validate100.errors = [
+ validate107.errors = [
{
instancePath: instancePath + '/math_hogql',
schemaPath: '#/properties/math_hogql/type',
@@ -9649,7 +10326,7 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
let data8 = data.math_multiplier
const _errs17 = errors
if (!(typeof data8 == 'number' && isFinite(data8))) {
- validate100.errors = [
+ validate107.errors = [
{
instancePath: instancePath + '/math_multiplier',
schemaPath: '#/properties/math_multiplier/type',
@@ -9668,7 +10345,7 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
if (data.math_property !== undefined) {
const _errs19 = errors
if (typeof data.math_property !== 'string') {
- validate100.errors = [
+ validate107.errors = [
{
instancePath: instancePath + '/math_property',
schemaPath: '#/properties/math_property/type',
@@ -9687,7 +10364,7 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
if (data.math_property_revenue_currency !== undefined) {
const _errs21 = errors
if (
- !validate96(data.math_property_revenue_currency, {
+ !validate103(data.math_property_revenue_currency, {
instancePath:
instancePath +
'/math_property_revenue_currency',
@@ -9699,8 +10376,8 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
) {
vErrors =
vErrors === null
- ? validate96.errors
- : vErrors.concat(validate96.errors)
+ ? validate103.errors
+ : vErrors.concat(validate103.errors)
errors = vErrors.length
}
var valid0 = _errs21 === errors
@@ -9711,7 +10388,7 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
if (data.math_property_type !== undefined) {
const _errs22 = errors
if (typeof data.math_property_type !== 'string') {
- validate100.errors = [
+ validate107.errors = [
{
instancePath:
instancePath + '/math_property_type',
@@ -9732,7 +10409,7 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
if (data.name !== undefined) {
const _errs24 = errors
if (typeof data.name !== 'string') {
- validate100.errors = [
+ validate107.errors = [
{
instancePath: instancePath + '/name',
schemaPath: '#/properties/name/type',
@@ -9753,7 +10430,7 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
if (
typeof data.optionalInFunnel !== 'boolean'
) {
- validate100.errors = [
+ validate107.errors = [
{
instancePath:
instancePath +
@@ -9806,7 +10483,7 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate100.errors = [
+ validate107.errors = [
{
instancePath:
instancePath +
@@ -9836,7 +10513,7 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
!Array.isArray(data16)
)
) {
- validate100.errors = [
+ validate107.errors = [
{
instancePath:
instancePath +
@@ -9864,7 +10541,7 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
isFinite(data17)
)
) {
- validate100.errors = [
+ validate107.errors = [
{
instancePath:
instancePath +
@@ -9903,7 +10580,7 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate100.errors = [
+ validate107.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -9915,10 +10592,10 @@ function validate100(data, { instancePath = '', parentData, parentDataProperty,
return false
}
}
- validate100.errors = vErrors
+ validate107.errors = vErrors
return errors === 0
}
-const schema100 = {
+const schema105 = {
additionalProperties: false,
properties: {
custom_name: { type: 'string' },
@@ -9953,7 +10630,7 @@ const schema100 = {
required: ['data_warehouse_join_key', 'events_join_key', 'kind', 'table_name', 'timestamp_field'],
type: 'object',
}
-function validate106(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate113(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -9966,7 +10643,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
(data.table_name === undefined && (missing0 = 'table_name')) ||
(data.timestamp_field === undefined && (missing0 = 'timestamp_field'))
) {
- validate106.errors = [
+ validate113.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -9979,8 +10656,8 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
} else {
const _errs1 = errors
for (const key0 in data) {
- if (!func2.call(schema100.properties, key0)) {
- validate106.errors = [
+ if (!func2.call(schema105.properties, key0)) {
+ validate113.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -9997,7 +10674,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
if (data.custom_name !== undefined) {
const _errs2 = errors
if (typeof data.custom_name !== 'string') {
- validate106.errors = [
+ validate113.errors = [
{
instancePath: instancePath + '/custom_name',
schemaPath: '#/properties/custom_name/type',
@@ -10016,7 +10693,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
if (data.data_warehouse_join_key !== undefined) {
const _errs4 = errors
if (typeof data.data_warehouse_join_key !== 'string') {
- validate106.errors = [
+ validate113.errors = [
{
instancePath: instancePath + '/data_warehouse_join_key',
schemaPath: '#/properties/data_warehouse_join_key/type',
@@ -10035,7 +10712,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
if (data.events_join_key !== undefined) {
const _errs6 = errors
if (typeof data.events_join_key !== 'string') {
- validate106.errors = [
+ validate113.errors = [
{
instancePath: instancePath + '/events_join_key',
schemaPath: '#/properties/events_join_key/type',
@@ -10080,7 +10757,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate106.errors = [
+ validate113.errors = [
{
instancePath: instancePath + '/fixedProperties',
schemaPath: '#/properties/fixedProperties/type',
@@ -10101,7 +10778,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
let data5 = data.kind
const _errs11 = errors
if (typeof data5 !== 'string') {
- validate106.errors = [
+ validate113.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/type',
@@ -10113,7 +10790,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if ('ExperimentDataWarehouseNode' !== data5) {
- validate106.errors = [
+ validate113.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/const',
@@ -10132,7 +10809,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
if (data.math !== undefined) {
const _errs13 = errors
if (
- !validate94(data.math, {
+ !validate101(data.math, {
instancePath: instancePath + '/math',
parentData: data,
parentDataProperty: 'math',
@@ -10141,8 +10818,8 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
) {
vErrors =
vErrors === null
- ? validate94.errors
- : vErrors.concat(validate94.errors)
+ ? validate101.errors
+ : vErrors.concat(validate101.errors)
errors = vErrors.length
}
var valid0 = _errs13 === errors
@@ -10154,7 +10831,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
let data7 = data.math_group_type_index
const _errs14 = errors
if (!(typeof data7 == 'number' && isFinite(data7))) {
- validate106.errors = [
+ validate113.errors = [
{
instancePath: instancePath + '/math_group_type_index',
schemaPath: '#/properties/math_group_type_index/type',
@@ -10174,14 +10851,14 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
data7 === 4
)
) {
- validate106.errors = [
+ validate113.errors = [
{
instancePath: instancePath + '/math_group_type_index',
schemaPath: '#/properties/math_group_type_index/enum',
keyword: 'enum',
params: {
allowedValues:
- schema100.properties.math_group_type_index.enum,
+ schema105.properties.math_group_type_index.enum,
},
message: 'must be equal to one of the allowed values',
},
@@ -10196,7 +10873,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
if (data.math_hogql !== undefined) {
const _errs16 = errors
if (typeof data.math_hogql !== 'string') {
- validate106.errors = [
+ validate113.errors = [
{
instancePath: instancePath + '/math_hogql',
schemaPath: '#/properties/math_hogql/type',
@@ -10216,7 +10893,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
let data9 = data.math_multiplier
const _errs18 = errors
if (!(typeof data9 == 'number' && isFinite(data9))) {
- validate106.errors = [
+ validate113.errors = [
{
instancePath: instancePath + '/math_multiplier',
schemaPath: '#/properties/math_multiplier/type',
@@ -10235,7 +10912,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
if (data.math_property !== undefined) {
const _errs20 = errors
if (typeof data.math_property !== 'string') {
- validate106.errors = [
+ validate113.errors = [
{
instancePath: instancePath + '/math_property',
schemaPath: '#/properties/math_property/type',
@@ -10254,7 +10931,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
if (data.math_property_revenue_currency !== undefined) {
const _errs22 = errors
if (
- !validate96(data.math_property_revenue_currency, {
+ !validate103(data.math_property_revenue_currency, {
instancePath:
instancePath +
'/math_property_revenue_currency',
@@ -10266,8 +10943,8 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
) {
vErrors =
vErrors === null
- ? validate96.errors
- : vErrors.concat(validate96.errors)
+ ? validate103.errors
+ : vErrors.concat(validate103.errors)
errors = vErrors.length
}
var valid0 = _errs22 === errors
@@ -10278,7 +10955,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
if (data.math_property_type !== undefined) {
const _errs23 = errors
if (typeof data.math_property_type !== 'string') {
- validate106.errors = [
+ validate113.errors = [
{
instancePath:
instancePath +
@@ -10300,7 +10977,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
if (data.name !== undefined) {
const _errs25 = errors
if (typeof data.name !== 'string') {
- validate106.errors = [
+ validate113.errors = [
{
instancePath:
instancePath + '/name',
@@ -10324,7 +11001,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
typeof data.optionalInFunnel !==
'boolean'
) {
- validate106.errors = [
+ validate113.errors = [
{
instancePath:
instancePath +
@@ -10387,7 +11064,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate106.errors = [
+ validate113.errors = [
{
instancePath:
instancePath +
@@ -10420,7 +11097,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
!Array.isArray(data17)
)
) {
- validate106.errors = [
+ validate113.errors = [
{
instancePath:
instancePath +
@@ -10448,7 +11125,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
typeof data.table_name !==
'string'
) {
- validate106.errors = [
+ validate113.errors = [
{
instancePath:
instancePath +
@@ -10479,7 +11156,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
typeof data.timestamp_field !==
'string'
) {
- validate106.errors = [
+ validate113.errors = [
{
instancePath:
instancePath +
@@ -10516,7 +11193,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
isFinite(data20)
)
) {
- validate106.errors =
+ validate113.errors =
[
{
instancePath:
@@ -10561,7 +11238,7 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate106.errors = [
+ validate113.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -10573,18 +11250,18 @@ function validate106(data, { instancePath = '', parentData, parentDataProperty,
return false
}
}
- validate106.errors = vErrors
+ validate113.errors = vErrors
return errors === 0
}
-function validate91(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate98(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 (!validate92(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate92.errors : vErrors.concat(validate92.errors)
+ if (!validate99(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate99.errors : vErrors.concat(validate99.errors)
errors = vErrors.length
}
var _valid0 = _errs2 === errors
@@ -10593,8 +11270,8 @@ function validate91(data, { instancePath = '', parentData, parentDataProperty, r
passing0 = 0
}
const _errs3 = errors
- if (!validate100(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate100.errors : vErrors.concat(validate100.errors)
+ if (!validate107(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate107.errors : vErrors.concat(validate107.errors)
errors = vErrors.length
}
var _valid0 = _errs3 === errors
@@ -10607,8 +11284,8 @@ function validate91(data, { instancePath = '', parentData, parentDataProperty, r
passing0 = 1
}
const _errs4 = errors
- if (!validate106(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate106.errors : vErrors.concat(validate106.errors)
+ if (!validate113(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate113.errors : vErrors.concat(validate113.errors)
errors = vErrors.length
}
var _valid0 = _errs4 === errors
@@ -10636,7 +11313,7 @@ function validate91(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err0)
}
errors++
- validate91.errors = vErrors
+ validate98.errors = vErrors
return false
} else {
errors = _errs1
@@ -10652,7 +11329,7 @@ function validate91(data, { instancePath = '', parentData, parentDataProperty, r
if (data && typeof data == 'object' && !Array.isArray(data)) {
let missing0
if (data.kind === undefined && (missing0 = 'kind')) {
- validate91.errors = [
+ validate98.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -10664,7 +11341,7 @@ function validate91(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
} else {
- validate91.errors = [
+ validate98.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -10676,10 +11353,10 @@ function validate91(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate91.errors = vErrors
+ validate98.errors = vErrors
return errors === 0
}
-function validate86(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate93(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -10690,7 +11367,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
(data.metric_type === undefined && (missing0 = 'metric_type')) ||
(data.source === undefined && (missing0 = 'source'))
) {
- validate86.errors = [
+ validate93.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -10703,8 +11380,8 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
} else {
const _errs1 = errors
for (const key0 in data) {
- if (!func2.call(schema68.properties, key0)) {
- validate86.errors = [
+ if (!func2.call(schema73.properties, key0)) {
+ validate93.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -10721,14 +11398,14 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
if (data.breakdownFilter !== undefined) {
const _errs2 = errors
if (
- !validate87(data.breakdownFilter, {
+ !validate94(data.breakdownFilter, {
instancePath: instancePath + '/breakdownFilter',
parentData: data,
parentDataProperty: 'breakdownFilter',
rootData,
})
) {
- vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors)
+ vErrors = vErrors === null ? validate94.errors : vErrors.concat(validate94.errors)
errors = vErrors.length
}
var valid0 = _errs2 === errors
@@ -10740,7 +11417,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
let data1 = data.conversion_window
const _errs3 = errors
if (!(typeof data1 == 'number' && !(data1 % 1) && !isNaN(data1) && isFinite(data1))) {
- validate86.errors = [
+ validate93.errors = [
{
instancePath: instancePath + '/conversion_window',
schemaPath: '#/definitions/integer/type',
@@ -10760,7 +11437,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
let data2 = data.conversion_window_unit
const _errs6 = errors
if (typeof data2 !== 'string') {
- validate86.errors = [
+ validate93.errors = [
{
instancePath: instancePath + '/conversion_window_unit',
schemaPath: '#/definitions/FunnelConversionWindowTimeUnit/type',
@@ -10781,12 +11458,12 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
data2 === 'month'
)
) {
- validate86.errors = [
+ validate93.errors = [
{
instancePath: instancePath + '/conversion_window_unit',
schemaPath: '#/definitions/FunnelConversionWindowTimeUnit/enum',
keyword: 'enum',
- params: { allowedValues: schema82.enum },
+ params: { allowedValues: schema87.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -10800,7 +11477,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
if (data.fingerprint !== undefined) {
const _errs9 = errors
if (typeof data.fingerprint !== 'string') {
- validate86.errors = [
+ validate93.errors = [
{
instancePath: instancePath + '/fingerprint',
schemaPath: '#/properties/fingerprint/type',
@@ -10820,7 +11497,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
let data4 = data.goal
const _errs11 = errors
if (typeof data4 !== 'string') {
- validate86.errors = [
+ validate93.errors = [
{
instancePath: instancePath + '/goal',
schemaPath: '#/definitions/ExperimentMetricGoal/type',
@@ -10832,12 +11509,12 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if (!(data4 === 'increase' || data4 === 'decrease')) {
- validate86.errors = [
+ validate93.errors = [
{
instancePath: instancePath + '/goal',
schemaPath: '#/definitions/ExperimentMetricGoal/enum',
keyword: 'enum',
- params: { allowedValues: schema83.enum },
+ params: { allowedValues: schema88.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -10851,7 +11528,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
if (data.ignore_zeros !== undefined) {
const _errs14 = errors
if (typeof data.ignore_zeros !== 'boolean') {
- validate86.errors = [
+ validate93.errors = [
{
instancePath: instancePath + '/ignore_zeros',
schemaPath: '#/properties/ignore_zeros/type',
@@ -10870,7 +11547,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
if (data.isSharedMetric !== undefined) {
const _errs16 = errors
if (typeof data.isSharedMetric !== 'boolean') {
- validate86.errors = [
+ validate93.errors = [
{
instancePath: instancePath + '/isSharedMetric',
schemaPath: '#/properties/isSharedMetric/type',
@@ -10890,7 +11567,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
let data7 = data.kind
const _errs18 = errors
if (typeof data7 !== 'string') {
- validate86.errors = [
+ validate93.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/type',
@@ -10902,7 +11579,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('ExperimentMetric' !== data7) {
- validate86.errors = [
+ validate93.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/const',
@@ -10924,7 +11601,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
if (errors === _errs20) {
if (typeof data8 == 'number' && isFinite(data8)) {
if (data8 > 1 || isNaN(data8)) {
- validate86.errors = [
+ validate93.errors = [
{
instancePath:
instancePath +
@@ -10939,7 +11616,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
return false
} else {
if (data8 < 0 || isNaN(data8)) {
- validate86.errors = [
+ validate93.errors = [
{
instancePath:
instancePath +
@@ -10955,7 +11632,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate86.errors = [
+ validate93.errors = [
{
instancePath:
instancePath + '/lower_bound_percentile',
@@ -10978,7 +11655,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
let data9 = data.metric_type
const _errs22 = errors
if (typeof data9 !== 'string') {
- validate86.errors = [
+ validate93.errors = [
{
instancePath: instancePath + '/metric_type',
schemaPath: '#/properties/metric_type/type',
@@ -10990,7 +11667,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
if ('mean' !== data9) {
- validate86.errors = [
+ validate93.errors = [
{
instancePath: instancePath + '/metric_type',
schemaPath: '#/properties/metric_type/const',
@@ -11009,7 +11686,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
if (data.name !== undefined) {
const _errs24 = errors
if (typeof data.name !== 'string') {
- validate86.errors = [
+ validate93.errors = [
{
instancePath: instancePath + '/name',
schemaPath: '#/properties/name/type',
@@ -11035,7 +11712,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
!Array.isArray(data11)
)
) {
- validate86.errors = [
+ validate93.errors = [
{
instancePath:
instancePath + '/response',
@@ -11062,7 +11739,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
isFinite(data12)
)
) {
- validate86.errors = [
+ validate93.errors = [
{
instancePath:
instancePath +
@@ -11084,7 +11761,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
if (data.source !== undefined) {
const _errs30 = errors
if (
- !validate91(data.source, {
+ !validate98(data.source, {
instancePath:
instancePath + '/source',
parentData: data,
@@ -11094,9 +11771,9 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
) {
vErrors =
vErrors === null
- ? validate91.errors
+ ? validate98.errors
: vErrors.concat(
- validate91.errors
+ validate98.errors
)
errors = vErrors.length
}
@@ -11114,7 +11791,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
isFinite(data14)
)
) {
- validate86.errors = [
+ validate93.errors = [
{
instancePath:
instancePath +
@@ -11149,7 +11826,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
data15 > 1 ||
isNaN(data15)
) {
- validate86.errors = [
+ validate93.errors = [
{
instancePath:
instancePath +
@@ -11173,7 +11850,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
data15 < 0 ||
isNaN(data15)
) {
- validate86.errors =
+ validate93.errors =
[
{
instancePath:
@@ -11196,7 +11873,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate86.errors = [
+ validate93.errors = [
{
instancePath:
instancePath +
@@ -11225,7 +11902,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
typeof data.uuid !==
'string'
) {
- validate86.errors = [
+ validate93.errors = [
{
instancePath:
instancePath +
@@ -11259,7 +11936,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
isFinite(data17)
)
) {
- validate86.errors = [
+ validate93.errors = [
{
instancePath:
instancePath +
@@ -11301,7 +11978,7 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
}
}
} else {
- validate86.errors = [
+ validate93.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -11313,10 +11990,10 @@ function validate86(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate86.errors = vErrors
+ validate93.errors = vErrors
return errors === 0
}
-const schema101 = {
+const schema106 = {
additionalProperties: false,
properties: {
breakdownAttributionType: {
@@ -11347,9 +12024,9 @@ const schema101 = {
required: ['kind', 'metric_type', 'series'],
type: 'object',
}
-const schema102 = { enum: ['first_touch', 'last_touch', 'all_events', 'step'], type: 'string' }
-const schema105 = { enum: ['strict', 'unordered', 'ordered'], type: 'string' }
-const schema107 = {
+const schema107 = { enum: ['first_touch', 'last_touch', 'all_events', 'step'], type: 'string' }
+const schema110 = { enum: ['strict', 'unordered', 'ordered'], type: 'string' }
+const schema112 = {
discriminator: { propertyName: 'kind' },
oneOf: [
{ $ref: '#/definitions/EventsNode' },
@@ -11359,15 +12036,15 @@ const schema107 = {
required: ['kind'],
type: 'object',
}
-function validate116(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate123(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 (!validate92(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate92.errors : vErrors.concat(validate92.errors)
+ if (!validate99(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate99.errors : vErrors.concat(validate99.errors)
errors = vErrors.length
}
var _valid0 = _errs2 === errors
@@ -11376,8 +12053,8 @@ function validate116(data, { instancePath = '', parentData, parentDataProperty,
passing0 = 0
}
const _errs3 = errors
- if (!validate100(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate100.errors : vErrors.concat(validate100.errors)
+ if (!validate107(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate107.errors : vErrors.concat(validate107.errors)
errors = vErrors.length
}
var _valid0 = _errs3 === errors
@@ -11390,8 +12067,8 @@ function validate116(data, { instancePath = '', parentData, parentDataProperty,
passing0 = 1
}
const _errs4 = errors
- if (!validate106(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate106.errors : vErrors.concat(validate106.errors)
+ if (!validate113(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate113.errors : vErrors.concat(validate113.errors)
errors = vErrors.length
}
var _valid0 = _errs4 === errors
@@ -11419,7 +12096,7 @@ function validate116(data, { instancePath = '', parentData, parentDataProperty,
vErrors.push(err0)
}
errors++
- validate116.errors = vErrors
+ validate123.errors = vErrors
return false
} else {
errors = _errs1
@@ -11435,7 +12112,7 @@ function validate116(data, { instancePath = '', parentData, parentDataProperty,
if (data && typeof data == 'object' && !Array.isArray(data)) {
let missing0
if (data.kind === undefined && (missing0 = 'kind')) {
- validate116.errors = [
+ validate123.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -11447,7 +12124,7 @@ function validate116(data, { instancePath = '', parentData, parentDataProperty,
return false
}
} else {
- validate116.errors = [
+ validate123.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -11459,10 +12136,10 @@ function validate116(data, { instancePath = '', parentData, parentDataProperty,
return false
}
}
- validate116.errors = vErrors
+ validate123.errors = vErrors
return errors === 0
}
-function validate114(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate121(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -11473,7 +12150,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
(data.metric_type === undefined && (missing0 = 'metric_type')) ||
(data.series === undefined && (missing0 = 'series'))
) {
- validate114.errors = [
+ validate121.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -11486,8 +12163,8 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
} else {
const _errs1 = errors
for (const key0 in data) {
- if (!func2.call(schema101.properties, key0)) {
- validate114.errors = [
+ if (!func2.call(schema106.properties, key0)) {
+ validate121.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -11505,7 +12182,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
let data0 = data.breakdownAttributionType
const _errs2 = errors
if (typeof data0 !== 'string') {
- validate114.errors = [
+ validate121.errors = [
{
instancePath: instancePath + '/breakdownAttributionType',
schemaPath: '#/definitions/BreakdownAttributionType/type',
@@ -11524,12 +12201,12 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
data0 === 'step'
)
) {
- validate114.errors = [
+ validate121.errors = [
{
instancePath: instancePath + '/breakdownAttributionType',
schemaPath: '#/definitions/BreakdownAttributionType/enum',
keyword: 'enum',
- params: { allowedValues: schema102.enum },
+ params: { allowedValues: schema107.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -11544,7 +12221,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
let data1 = data.breakdownAttributionValue
const _errs5 = errors
if (!(typeof data1 == 'number' && !(data1 % 1) && !isNaN(data1) && isFinite(data1))) {
- validate114.errors = [
+ validate121.errors = [
{
instancePath: instancePath + '/breakdownAttributionValue',
schemaPath: '#/properties/breakdownAttributionValue/type',
@@ -11563,14 +12240,14 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
if (data.breakdownFilter !== undefined) {
const _errs7 = errors
if (
- !validate87(data.breakdownFilter, {
+ !validate94(data.breakdownFilter, {
instancePath: instancePath + '/breakdownFilter',
parentData: data,
parentDataProperty: 'breakdownFilter',
rootData,
})
) {
- vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors)
+ vErrors = vErrors === null ? validate94.errors : vErrors.concat(validate94.errors)
errors = vErrors.length
}
var valid0 = _errs7 === errors
@@ -11584,7 +12261,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
if (
!(typeof data3 == 'number' && !(data3 % 1) && !isNaN(data3) && isFinite(data3))
) {
- validate114.errors = [
+ validate121.errors = [
{
instancePath: instancePath + '/conversion_window',
schemaPath: '#/definitions/integer/type',
@@ -11604,7 +12281,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
let data4 = data.conversion_window_unit
const _errs11 = errors
if (typeof data4 !== 'string') {
- validate114.errors = [
+ validate121.errors = [
{
instancePath: instancePath + '/conversion_window_unit',
schemaPath: '#/definitions/FunnelConversionWindowTimeUnit/type',
@@ -11625,12 +12302,12 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
data4 === 'month'
)
) {
- validate114.errors = [
+ validate121.errors = [
{
instancePath: instancePath + '/conversion_window_unit',
schemaPath: '#/definitions/FunnelConversionWindowTimeUnit/enum',
keyword: 'enum',
- params: { allowedValues: schema82.enum },
+ params: { allowedValues: schema87.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -11644,7 +12321,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
if (data.fingerprint !== undefined) {
const _errs14 = errors
if (typeof data.fingerprint !== 'string') {
- validate114.errors = [
+ validate121.errors = [
{
instancePath: instancePath + '/fingerprint',
schemaPath: '#/properties/fingerprint/type',
@@ -11664,7 +12341,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
let data6 = data.funnel_order_type
const _errs16 = errors
if (typeof data6 !== 'string') {
- validate114.errors = [
+ validate121.errors = [
{
instancePath: instancePath + '/funnel_order_type',
schemaPath: '#/definitions/StepOrderValue/type',
@@ -11682,12 +12359,12 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
data6 === 'ordered'
)
) {
- validate114.errors = [
+ validate121.errors = [
{
instancePath: instancePath + '/funnel_order_type',
schemaPath: '#/definitions/StepOrderValue/enum',
keyword: 'enum',
- params: { allowedValues: schema105.enum },
+ params: { allowedValues: schema110.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -11702,7 +12379,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
let data7 = data.goal
const _errs19 = errors
if (typeof data7 !== 'string') {
- validate114.errors = [
+ validate121.errors = [
{
instancePath: instancePath + '/goal',
schemaPath: '#/definitions/ExperimentMetricGoal/type',
@@ -11714,12 +12391,12 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if (!(data7 === 'increase' || data7 === 'decrease')) {
- validate114.errors = [
+ validate121.errors = [
{
instancePath: instancePath + '/goal',
schemaPath: '#/definitions/ExperimentMetricGoal/enum',
keyword: 'enum',
- params: { allowedValues: schema83.enum },
+ params: { allowedValues: schema88.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -11733,7 +12410,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
if (data.isSharedMetric !== undefined) {
const _errs22 = errors
if (typeof data.isSharedMetric !== 'boolean') {
- validate114.errors = [
+ validate121.errors = [
{
instancePath: instancePath + '/isSharedMetric',
schemaPath: '#/properties/isSharedMetric/type',
@@ -11753,7 +12430,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
let data9 = data.kind
const _errs24 = errors
if (typeof data9 !== 'string') {
- validate114.errors = [
+ validate121.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/type',
@@ -11765,7 +12442,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if ('ExperimentMetric' !== data9) {
- validate114.errors = [
+ validate121.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/const',
@@ -11785,7 +12462,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
let data10 = data.metric_type
const _errs26 = errors
if (typeof data10 !== 'string') {
- validate114.errors = [
+ validate121.errors = [
{
instancePath: instancePath + '/metric_type',
schemaPath: '#/properties/metric_type/type',
@@ -11797,7 +12474,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if ('funnel' !== data10) {
- validate114.errors = [
+ validate121.errors = [
{
instancePath: instancePath + '/metric_type',
schemaPath:
@@ -11817,7 +12494,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
if (data.name !== undefined) {
const _errs28 = errors
if (typeof data.name !== 'string') {
- validate114.errors = [
+ validate121.errors = [
{
instancePath: instancePath + '/name',
schemaPath: '#/properties/name/type',
@@ -11843,7 +12520,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
!Array.isArray(data12)
)
) {
- validate114.errors = [
+ validate121.errors = [
{
instancePath:
instancePath + '/response',
@@ -11871,7 +12548,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
for (let i0 = 0; i0 < len0; i0++) {
const _errs34 = errors
if (
- !validate116(data13[i0], {
+ !validate123(data13[i0], {
instancePath:
instancePath +
'/series/' +
@@ -11883,9 +12560,9 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
) {
vErrors =
vErrors === null
- ? validate116.errors
+ ? validate123.errors
: vErrors.concat(
- validate116.errors
+ validate123.errors
)
errors = vErrors.length
}
@@ -11895,7 +12572,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate114.errors = [
+ validate121.errors = [
{
instancePath:
instancePath +
@@ -11924,7 +12601,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
isFinite(data15)
)
) {
- validate114.errors = [
+ validate121.errors = [
{
instancePath:
instancePath +
@@ -11946,7 +12623,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
if (data.uuid !== undefined) {
const _errs37 = errors
if (typeof data.uuid !== 'string') {
- validate114.errors = [
+ validate121.errors = [
{
instancePath:
instancePath +
@@ -11978,7 +12655,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
isFinite(data17)
)
) {
- validate114.errors = [
+ validate121.errors = [
{
instancePath:
instancePath +
@@ -12018,7 +12695,7 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate114.errors = [
+ validate121.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -12030,10 +12707,10 @@ function validate114(data, { instancePath = '', parentData, parentDataProperty,
return false
}
}
- validate114.errors = vErrors
+ validate121.errors = vErrors
return errors === 0
}
-const schema108 = {
+const schema113 = {
additionalProperties: false,
properties: {
breakdownFilter: { $ref: '#/definitions/BreakdownFilter' },
@@ -12057,7 +12734,7 @@ const schema108 = {
required: ['denominator', 'kind', 'metric_type', 'numerator'],
type: 'object',
}
-const schema111 = {
+const schema116 = {
additionalProperties: false,
properties: {
ignore_zeros: { type: 'boolean' },
@@ -12078,7 +12755,7 @@ const schema111 = {
},
type: 'object',
}
-function validate122(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate129(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -12090,7 +12767,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
(data.metric_type === undefined && (missing0 = 'metric_type')) ||
(data.numerator === undefined && (missing0 = 'numerator'))
) {
- validate122.errors = [
+ validate129.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -12103,8 +12780,8 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
} else {
const _errs1 = errors
for (const key0 in data) {
- if (!func2.call(schema108.properties, key0)) {
- validate122.errors = [
+ if (!func2.call(schema113.properties, key0)) {
+ validate129.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -12121,14 +12798,14 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
if (data.breakdownFilter !== undefined) {
const _errs2 = errors
if (
- !validate87(data.breakdownFilter, {
+ !validate94(data.breakdownFilter, {
instancePath: instancePath + '/breakdownFilter',
parentData: data,
parentDataProperty: 'breakdownFilter',
rootData,
})
) {
- vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors)
+ vErrors = vErrors === null ? validate94.errors : vErrors.concat(validate94.errors)
errors = vErrors.length
}
var valid0 = _errs2 === errors
@@ -12140,7 +12817,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
let data1 = data.conversion_window
const _errs3 = errors
if (!(typeof data1 == 'number' && !(data1 % 1) && !isNaN(data1) && isFinite(data1))) {
- validate122.errors = [
+ validate129.errors = [
{
instancePath: instancePath + '/conversion_window',
schemaPath: '#/definitions/integer/type',
@@ -12160,7 +12837,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
let data2 = data.conversion_window_unit
const _errs6 = errors
if (typeof data2 !== 'string') {
- validate122.errors = [
+ validate129.errors = [
{
instancePath: instancePath + '/conversion_window_unit',
schemaPath: '#/definitions/FunnelConversionWindowTimeUnit/type',
@@ -12181,12 +12858,12 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
data2 === 'month'
)
) {
- validate122.errors = [
+ validate129.errors = [
{
instancePath: instancePath + '/conversion_window_unit',
schemaPath: '#/definitions/FunnelConversionWindowTimeUnit/enum',
keyword: 'enum',
- params: { allowedValues: schema82.enum },
+ params: { allowedValues: schema87.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -12200,7 +12877,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
if (data.denominator !== undefined) {
const _errs9 = errors
if (
- !validate91(data.denominator, {
+ !validate98(data.denominator, {
instancePath: instancePath + '/denominator',
parentData: data,
parentDataProperty: 'denominator',
@@ -12208,7 +12885,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
})
) {
vErrors =
- vErrors === null ? validate91.errors : vErrors.concat(validate91.errors)
+ vErrors === null ? validate98.errors : vErrors.concat(validate98.errors)
errors = vErrors.length
}
var valid0 = _errs9 === errors
@@ -12231,7 +12908,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
key1 === 'upper_bound_percentile'
)
) {
- validate122.errors = [
+ validate129.errors = [
{
instancePath:
instancePath + '/denominator_outlier_handling',
@@ -12250,7 +12927,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
if (data4.ignore_zeros !== undefined) {
const _errs14 = errors
if (typeof data4.ignore_zeros !== 'boolean') {
- validate122.errors = [
+ validate129.errors = [
{
instancePath:
instancePath +
@@ -12275,7 +12952,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
if (errors === _errs16) {
if (typeof data6 == 'number' && isFinite(data6)) {
if (data6 > 1 || isNaN(data6)) {
- validate122.errors = [
+ validate129.errors = [
{
instancePath:
instancePath +
@@ -12290,7 +12967,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
return false
} else {
if (data6 < 0 || isNaN(data6)) {
- validate122.errors = [
+ validate129.errors = [
{
instancePath:
instancePath +
@@ -12309,7 +12986,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate122.errors = [
+ validate129.errors = [
{
instancePath:
instancePath +
@@ -12335,7 +13012,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
if (errors === _errs18) {
if (typeof data7 == 'number' && isFinite(data7)) {
if (data7 > 1 || isNaN(data7)) {
- validate122.errors = [
+ validate129.errors = [
{
instancePath:
instancePath +
@@ -12353,7 +13030,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
return false
} else {
if (data7 < 0 || isNaN(data7)) {
- validate122.errors = [
+ validate129.errors = [
{
instancePath:
instancePath +
@@ -12372,7 +13049,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate122.errors = [
+ validate129.errors = [
{
instancePath:
instancePath +
@@ -12395,7 +13072,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate122.errors = [
+ validate129.errors = [
{
instancePath: instancePath + '/denominator_outlier_handling',
schemaPath:
@@ -12416,7 +13093,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
if (data.fingerprint !== undefined) {
const _errs20 = errors
if (typeof data.fingerprint !== 'string') {
- validate122.errors = [
+ validate129.errors = [
{
instancePath: instancePath + '/fingerprint',
schemaPath: '#/properties/fingerprint/type',
@@ -12436,7 +13113,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
let data9 = data.goal
const _errs22 = errors
if (typeof data9 !== 'string') {
- validate122.errors = [
+ validate129.errors = [
{
instancePath: instancePath + '/goal',
schemaPath: '#/definitions/ExperimentMetricGoal/type',
@@ -12448,12 +13125,12 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if (!(data9 === 'increase' || data9 === 'decrease')) {
- validate122.errors = [
+ validate129.errors = [
{
instancePath: instancePath + '/goal',
schemaPath: '#/definitions/ExperimentMetricGoal/enum',
keyword: 'enum',
- params: { allowedValues: schema83.enum },
+ params: { allowedValues: schema88.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -12467,7 +13144,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
if (data.isSharedMetric !== undefined) {
const _errs25 = errors
if (typeof data.isSharedMetric !== 'boolean') {
- validate122.errors = [
+ validate129.errors = [
{
instancePath: instancePath + '/isSharedMetric',
schemaPath: '#/properties/isSharedMetric/type',
@@ -12487,7 +13164,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
let data11 = data.kind
const _errs27 = errors
if (typeof data11 !== 'string') {
- validate122.errors = [
+ validate129.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/type',
@@ -12499,7 +13176,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if ('ExperimentMetric' !== data11) {
- validate122.errors = [
+ validate129.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/const',
@@ -12519,7 +13196,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
let data12 = data.metric_type
const _errs29 = errors
if (typeof data12 !== 'string') {
- validate122.errors = [
+ validate129.errors = [
{
instancePath: instancePath + '/metric_type',
schemaPath: '#/properties/metric_type/type',
@@ -12531,7 +13208,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if ('ratio' !== data12) {
- validate122.errors = [
+ validate129.errors = [
{
instancePath: instancePath + '/metric_type',
schemaPath: '#/properties/metric_type/const',
@@ -12550,7 +13227,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
if (data.name !== undefined) {
const _errs31 = errors
if (typeof data.name !== 'string') {
- validate122.errors = [
+ validate129.errors = [
{
instancePath: instancePath + '/name',
schemaPath: '#/properties/name/type',
@@ -12569,7 +13246,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
if (data.numerator !== undefined) {
const _errs33 = errors
if (
- !validate91(data.numerator, {
+ !validate98(data.numerator, {
instancePath: instancePath + '/numerator',
parentData: data,
parentDataProperty: 'numerator',
@@ -12578,8 +13255,8 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
) {
vErrors =
vErrors === null
- ? validate91.errors
- : vErrors.concat(validate91.errors)
+ ? validate98.errors
+ : vErrors.concat(validate98.errors)
errors = vErrors.length
}
var valid0 = _errs33 === errors
@@ -12608,7 +13285,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
'upper_bound_percentile'
)
) {
- validate122.errors = [
+ validate129.errors = [
{
instancePath:
instancePath +
@@ -12639,7 +13316,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
typeof data15.ignore_zeros !==
'boolean'
) {
- validate122.errors = [
+ validate129.errors = [
{
instancePath:
instancePath +
@@ -12678,7 +13355,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
data17 > 1 ||
isNaN(data17)
) {
- validate122.errors =
+ validate129.errors =
[
{
instancePath:
@@ -12706,7 +13383,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
data17
)
) {
- validate122.errors =
+ validate129.errors =
[
{
instancePath:
@@ -12729,7 +13406,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate122.errors =
+ validate129.errors =
[
{
instancePath:
@@ -12777,7 +13454,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
data18
)
) {
- validate122.errors =
+ validate129.errors =
[
{
instancePath:
@@ -12805,7 +13482,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
data18
)
) {
- validate122.errors =
+ validate129.errors =
[
{
instancePath:
@@ -12828,7 +13505,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate122.errors =
+ validate129.errors =
[
{
instancePath:
@@ -12857,7 +13534,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate122.errors = [
+ validate129.errors = [
{
instancePath:
instancePath +
@@ -12887,7 +13564,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
!Array.isArray(data19)
)
) {
- validate122.errors = [
+ validate129.errors = [
{
instancePath:
instancePath + '/response',
@@ -12914,7 +13591,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
isFinite(data20)
)
) {
- validate122.errors = [
+ validate129.errors = [
{
instancePath:
instancePath +
@@ -12936,7 +13613,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
if (data.uuid !== undefined) {
const _errs48 = errors
if (typeof data.uuid !== 'string') {
- validate122.errors = [
+ validate129.errors = [
{
instancePath:
instancePath +
@@ -12968,7 +13645,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
isFinite(data22)
)
) {
- validate122.errors = [
+ validate129.errors = [
{
instancePath:
instancePath +
@@ -13008,7 +13685,7 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate122.errors = [
+ validate129.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -13020,10 +13697,10 @@ function validate122(data, { instancePath = '', parentData, parentDataProperty,
return false
}
}
- validate122.errors = vErrors
+ validate129.errors = vErrors
return errors === 0
}
-const schema114 = {
+const schema119 = {
additionalProperties: false,
properties: {
breakdownFilter: { $ref: '#/definitions/BreakdownFilter' },
@@ -13058,7 +13735,7 @@ const schema114 = {
],
type: 'object',
}
-function validate127(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate134(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null
let errors = 0
if (errors === 0) {
@@ -13074,7 +13751,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
(data.start_event === undefined && (missing0 = 'start_event')) ||
(data.start_handling === undefined && (missing0 = 'start_handling'))
) {
- validate127.errors = [
+ validate134.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -13087,8 +13764,8 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
} else {
const _errs1 = errors
for (const key0 in data) {
- if (!func2.call(schema114.properties, key0)) {
- validate127.errors = [
+ if (!func2.call(schema119.properties, key0)) {
+ validate134.errors = [
{
instancePath,
schemaPath: '#/additionalProperties',
@@ -13105,14 +13782,14 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
if (data.breakdownFilter !== undefined) {
const _errs2 = errors
if (
- !validate87(data.breakdownFilter, {
+ !validate94(data.breakdownFilter, {
instancePath: instancePath + '/breakdownFilter',
parentData: data,
parentDataProperty: 'breakdownFilter',
rootData,
})
) {
- vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors)
+ vErrors = vErrors === null ? validate94.errors : vErrors.concat(validate94.errors)
errors = vErrors.length
}
var valid0 = _errs2 === errors
@@ -13123,14 +13800,14 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
if (data.completion_event !== undefined) {
const _errs3 = errors
if (
- !validate91(data.completion_event, {
+ !validate98(data.completion_event, {
instancePath: instancePath + '/completion_event',
parentData: data,
parentDataProperty: 'completion_event',
rootData,
})
) {
- vErrors = vErrors === null ? validate91.errors : vErrors.concat(validate91.errors)
+ vErrors = vErrors === null ? validate98.errors : vErrors.concat(validate98.errors)
errors = vErrors.length
}
var valid0 = _errs3 === errors
@@ -13142,7 +13819,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
let data2 = data.conversion_window
const _errs4 = errors
if (!(typeof data2 == 'number' && !(data2 % 1) && !isNaN(data2) && isFinite(data2))) {
- validate127.errors = [
+ validate134.errors = [
{
instancePath: instancePath + '/conversion_window',
schemaPath: '#/definitions/integer/type',
@@ -13162,7 +13839,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
let data3 = data.conversion_window_unit
const _errs7 = errors
if (typeof data3 !== 'string') {
- validate127.errors = [
+ validate134.errors = [
{
instancePath: instancePath + '/conversion_window_unit',
schemaPath: '#/definitions/FunnelConversionWindowTimeUnit/type',
@@ -13183,12 +13860,12 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
data3 === 'month'
)
) {
- validate127.errors = [
+ validate134.errors = [
{
instancePath: instancePath + '/conversion_window_unit',
schemaPath: '#/definitions/FunnelConversionWindowTimeUnit/enum',
keyword: 'enum',
- params: { allowedValues: schema82.enum },
+ params: { allowedValues: schema87.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -13202,7 +13879,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
if (data.fingerprint !== undefined) {
const _errs10 = errors
if (typeof data.fingerprint !== 'string') {
- validate127.errors = [
+ validate134.errors = [
{
instancePath: instancePath + '/fingerprint',
schemaPath: '#/properties/fingerprint/type',
@@ -13222,7 +13899,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
let data5 = data.goal
const _errs12 = errors
if (typeof data5 !== 'string') {
- validate127.errors = [
+ validate134.errors = [
{
instancePath: instancePath + '/goal',
schemaPath: '#/definitions/ExperimentMetricGoal/type',
@@ -13234,12 +13911,12 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if (!(data5 === 'increase' || data5 === 'decrease')) {
- validate127.errors = [
+ validate134.errors = [
{
instancePath: instancePath + '/goal',
schemaPath: '#/definitions/ExperimentMetricGoal/enum',
keyword: 'enum',
- params: { allowedValues: schema83.enum },
+ params: { allowedValues: schema88.enum },
message: 'must be equal to one of the allowed values',
},
]
@@ -13253,7 +13930,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
if (data.isSharedMetric !== undefined) {
const _errs15 = errors
if (typeof data.isSharedMetric !== 'boolean') {
- validate127.errors = [
+ validate134.errors = [
{
instancePath: instancePath + '/isSharedMetric',
schemaPath: '#/properties/isSharedMetric/type',
@@ -13273,7 +13950,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
let data7 = data.kind
const _errs17 = errors
if (typeof data7 !== 'string') {
- validate127.errors = [
+ validate134.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/type',
@@ -13285,7 +13962,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if ('ExperimentMetric' !== data7) {
- validate127.errors = [
+ validate134.errors = [
{
instancePath: instancePath + '/kind',
schemaPath: '#/properties/kind/const',
@@ -13305,7 +13982,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
let data8 = data.metric_type
const _errs19 = errors
if (typeof data8 !== 'string') {
- validate127.errors = [
+ validate134.errors = [
{
instancePath: instancePath + '/metric_type',
schemaPath: '#/properties/metric_type/type',
@@ -13317,7 +13994,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
return false
}
if ('retention' !== data8) {
- validate127.errors = [
+ validate134.errors = [
{
instancePath: instancePath + '/metric_type',
schemaPath: '#/properties/metric_type/const',
@@ -13336,7 +14013,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
if (data.name !== undefined) {
const _errs21 = errors
if (typeof data.name !== 'string') {
- validate127.errors = [
+ validate134.errors = [
{
instancePath: instancePath + '/name',
schemaPath: '#/properties/name/type',
@@ -13362,7 +14039,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
!Array.isArray(data10)
)
) {
- validate127.errors = [
+ validate134.errors = [
{
instancePath: instancePath + '/response',
schemaPath: '#/properties/response/type',
@@ -13389,7 +14066,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
isFinite(data11)
)
) {
- validate127.errors = [
+ validate134.errors = [
{
instancePath:
instancePath +
@@ -13419,7 +14096,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
isFinite(data12)
)
) {
- validate127.errors = [
+ validate134.errors = [
{
instancePath:
instancePath +
@@ -13442,7 +14119,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
let data13 = data.retention_window_unit
const _errs31 = errors
if (typeof data13 !== 'string') {
- validate127.errors = [
+ validate134.errors = [
{
instancePath:
instancePath +
@@ -13466,7 +14143,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
data13 === 'month'
)
) {
- validate127.errors = [
+ validate134.errors = [
{
instancePath:
instancePath +
@@ -13476,7 +14153,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
keyword: 'enum',
params: {
allowedValues:
- schema82.enum,
+ schema87.enum,
},
message:
'must be equal to one of the allowed values',
@@ -13498,7 +14175,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
isFinite(data14)
)
) {
- validate127.errors = [
+ validate134.errors = [
{
instancePath:
instancePath +
@@ -13520,7 +14197,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
if (data.start_event !== undefined) {
const _errs36 = errors
if (
- !validate91(data.start_event, {
+ !validate98(data.start_event, {
instancePath:
instancePath +
'/start_event',
@@ -13532,9 +14209,9 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
) {
vErrors =
vErrors === null
- ? validate91.errors
+ ? validate98.errors
: vErrors.concat(
- validate91.errors
+ validate98.errors
)
errors = vErrors.length
}
@@ -13552,7 +14229,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
if (
typeof data16 !== 'string'
) {
- validate127.errors = [
+ validate134.errors = [
{
instancePath:
instancePath +
@@ -13576,7 +14253,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
data16 === 'last_seen'
)
) {
- validate127.errors = [
+ validate134.errors = [
{
instancePath:
instancePath +
@@ -13586,7 +14263,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
keyword: 'enum',
params: {
allowedValues:
- schema114
+ schema119
.properties
.start_handling
.enum,
@@ -13608,7 +14285,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
typeof data.uuid !==
'string'
) {
- validate127.errors = [
+ validate134.errors = [
{
instancePath:
instancePath +
@@ -13645,7 +14322,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
isFinite(data18)
)
) {
- validate127.errors =
+ validate134.errors =
[
{
instancePath:
@@ -13690,7 +14367,7 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
}
}
} else {
- validate127.errors = [
+ validate134.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -13702,18 +14379,18 @@ function validate127(data, { instancePath = '', parentData, parentDataProperty,
return false
}
}
- validate127.errors = vErrors
+ validate134.errors = vErrors
return errors === 0
}
-function validate85(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
+function validate92(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 (!validate86(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate86.errors : vErrors.concat(validate86.errors)
+ if (!validate93(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate93.errors : vErrors.concat(validate93.errors)
errors = vErrors.length
}
var _valid0 = _errs2 === errors
@@ -13722,8 +14399,8 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
passing0 = 0
}
const _errs3 = errors
- if (!validate114(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate114.errors : vErrors.concat(validate114.errors)
+ if (!validate121(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate121.errors : vErrors.concat(validate121.errors)
errors = vErrors.length
}
var _valid0 = _errs3 === errors
@@ -13736,8 +14413,8 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
passing0 = 1
}
const _errs4 = errors
- if (!validate122(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate122.errors : vErrors.concat(validate122.errors)
+ if (!validate129(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate129.errors : vErrors.concat(validate129.errors)
errors = vErrors.length
}
var _valid0 = _errs4 === errors
@@ -13750,8 +14427,8 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
passing0 = 2
}
const _errs5 = errors
- if (!validate127(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate127.errors : vErrors.concat(validate127.errors)
+ if (!validate134(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate134.errors : vErrors.concat(validate134.errors)
errors = vErrors.length
}
var _valid0 = _errs5 === errors
@@ -13780,7 +14457,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
vErrors.push(err0)
}
errors++
- validate85.errors = vErrors
+ validate92.errors = vErrors
return false
} else {
errors = _errs1
@@ -13796,7 +14473,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
if (data && typeof data == 'object' && !Array.isArray(data)) {
let missing0
if (data.metric_type === undefined && (missing0 = 'metric_type')) {
- validate85.errors = [
+ validate92.errors = [
{
instancePath,
schemaPath: '#/required',
@@ -13808,7 +14485,7 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
} else {
- validate85.errors = [
+ validate92.errors = [
{
instancePath,
schemaPath: '#/type',
@@ -13820,6 +14497,6 @@ function validate85(data, { instancePath = '', parentData, parentDataProperty, r
return false
}
}
- validate85.errors = vErrors
+ validate92.errors = vErrors
return errors === 0
}
diff --git a/frontend/src/types.ts b/frontend/src/types.ts
index 900becaee451..0c06c33de32b 100644
--- a/frontend/src/types.ts
+++ b/frontend/src/types.ts
@@ -1165,6 +1165,8 @@ export enum PropertyFilterType {
Feature = 'feature',
Session = 'session',
Cohort = 'cohort',
+ /** Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP */
+ Behavioral = 'behavioral',
Recording = 'recording',
LogEntry = 'log_entry',
Group = 'group',
@@ -1275,6 +1277,47 @@ export interface GroupPropertyFilter extends BasePropertyFilter {
group_key_names?: Record<string, string>
}
+/** The subset of cohort behavioral criteria supported by the inline `BehavioralPropertyFilter` */
+export type InlineBehavioralType = BehavioralEventType.PerformEvent | BehavioralEventType.PerformMultipleEvents
+
+/** Whether a behavioral filter's `key` refers to an event name or an action id */
+export type BehavioralEventSource = 'events' | 'actions'
+
+/** Filters persons on whether they performed an event in a time window, without a saved cohort. Event scope only. */
+export interface BehavioralPropertyFilter extends BasePropertyFilter {
+ type: PropertyFilterType.Behavioral
+ value: InlineBehavioralType
+ /** Event name, or action id when event_type is 'actions' */
+ key: string
+ event_type: BehavioralEventSource
+ /** Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators */
+ negation?: boolean
+ /** Count comparison for performed_event_multiple, defaults to exact */
+ operator?: PropertyOperator
+ /**
+ * Count threshold for performed_event_multiple
+ * @asType integer
+ */
+ operator_value?: number
+ /**
+ * Relative time window size, paired with time_interval
+ * @asType integer
+ */
+ time_value?: number
+ time_interval?: TimeUnitType
+ /** Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval */
+ explicit_datetime?: string
+ explicit_datetime_to?: string
+ /** Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups */
+ event_filters?: (
+ | EventPropertyFilter
+ | PersonPropertyFilter
+ | ElementPropertyFilter
+ | FeaturePropertyFilter
+ | HogQLPropertyFilter
+ )[]
+}
+
export type LogPropertyFilterType =
| PropertyFilterType.Log
| PropertyFilterType.LogAttribute
@@ -1356,6 +1399,7 @@ export type AnyPropertyFilter =
| RevenueAnalyticsPropertyFilter
| AccountCustomPropertyFilter
| WorkflowVariablePropertyFilter
+ | BehavioralPropertyFilter
/** Any filter type supported by `property_to_expr(scope="person", ...)`. */
export type AnyPersonScopeFilter =
diff --git a/posthog/cdp/test/test_validation.py b/posthog/cdp/test/test_validation.py
index 021bfa9c10ba..192e7a5c67d1 100644
--- a/posthog/cdp/test/test_validation.py
+++ b/posthog/cdp/test/test_validation.py
@@ -898,6 +898,36 @@ class TestHogFunctionValidation(ClickhouseTestMixin, APIBaseTest, QueryMatchingT
],
}
+ # Behavioral filters compile to a ClickHouse subquery over events history, which neither
+ # bytecode (per-event) nor transpiled JS (in-browser) filters can evaluate
+ @parameterized.expand(
+ [
+ ("destination_global_properties", "destination", "properties"),
+ ("site_destination_global_properties", "site_destination", "properties"),
+ ("destination_event_properties", "destination", "event_properties"),
+ ]
+ )
+ def test_validate_filters_rejects_behavioral_properties(self, _name, function_type, placement):
+ behavioral_property = {
+ "type": "behavioral",
+ "value": "performed_event",
+ "key": "$pageview",
+ "event_type": "events",
+ "time_value": 30,
+ "time_interval": "day",
+ }
+ event = {"id": "$pageview", "type": "events", "name": "$pageview", "order": 0}
+ if placement == "properties":
+ filters = {"events": [event], "properties": [behavioral_property]}
+ else:
+ filters = {"events": [{**event, "properties": [behavioral_property]}]}
+
+ serializer = HogFunctionFiltersSerializer(
+ data=filters, context={**self.filters_context, "function_type": function_type}
+ )
+ assert not serializer.is_valid()
+ assert "behavioral" in str(serializer.errors).lower()
+
def test_validate_filters_person_updates_only_allows_properties(self):
filters = {
"source": "person-updates",
diff --git a/posthog/cdp/validation.py b/posthog/cdp/validation.py
index 1fbaee4d8030..16d9a289b822 100644
--- a/posthog/cdp/validation.py
+++ b/posthog/cdp/validation.py
@@ -832,6 +832,21 @@ class InputsSerializer(serializers.DictField):
DATA_WAREHOUSE_SOURCES = ("data-warehouse-table", "data-warehouse-view")
+def _contains_behavioral_property(filters: dict) -> bool:
+ """Behavioral ("performed event") property filters compile to a ClickHouse subquery over events
+ history, which realtime function filters (bytecode per-event, or JS transpiled into the browser)
+ can never evaluate."""
+ entities = (filters.get("events") or []) + (filters.get("actions") or []) + (filters.get("data_warehouse") or [])
+ property_lists = [filters.get("properties") or []] + [
+ entity.get("properties") or [] for entity in entities if isinstance(entity, dict)
+ ]
+ return any(
+ isinstance(prop, dict) and prop.get("type") == "behavioral"
+ for property_list in property_lists
+ for prop in property_list
+ )
+
+
class HogFunctionFiltersSerializer(serializers.Serializer):
source = serializers.ChoiceField(
choices=["events", "person-updates", *DATA_WAREHOUSE_SOURCES], required=False, default="events"
@@ -857,6 +872,12 @@ class HogFunctionFiltersSerializer(serializers.Serializer):
# Ensure data is initialized as an empty dict if it's None
data = data or {}
+ if _contains_behavioral_property(data):
+ raise serializers.ValidationError(
+ "Behavioral (performed event) filters can't be evaluated in realtime functions. "
+ "Use a cohort to filter on past behavior."
+ )
+
if function_type == "transformation_log":
# Filter bytecode is compiled against event-shaped globals, which log records
# don't have — silently accepting filters would mis-evaluate at ingestion time.
diff --git a/posthog/hogql/property.py b/posthog/hogql/property.py
index 265ebeaa1e9e..9fa8a419f56d 100644
--- a/posthog/hogql/property.py
+++ b/posthog/hogql/property.py
@@ -7,11 +7,13 @@ from django.db.models import Q
from django.db.models.functions.comparison import Coalesce
import re2
+import posthoganalytics
from pydantic import BaseModel
from rest_framework.exceptions import ValidationError
from posthog.schema import (
AccountCustomPropertyFilter,
+ BehavioralPropertyFilter,
CohortPropertyFilter,
DataWarehousePersonPropertyFilter,
DataWarehousePropertyFilter,
@@ -55,12 +57,13 @@ from posthog.hogql.visitor import CloningVisitor, TraversingVisitor, clone_expr
from posthog.clickhouse.query_tagging import tag_contains_user_hogql
from posthog.constants import AUTOCAPTURE_EVENT, TREND_FILTER_TYPE_ACTIONS, PropertyOperatorType
from posthog.dataclasses import frozen
+from posthog.interval_specs import get_interval_func
from posthog.models import Property, PropertyDefinition, Team
from posthog.models.element import Element
from posthog.models.event import Selector
-from posthog.models.property import PropertyGroup, ValueT
+from posthog.models.property import BehavioralPropertyType, PropertyGroup, ValueT
from posthog.models.property.util import build_selector_regex
-from posthog.utils import get_from_dict_or_attr
+from posthog.utils import get_from_dict_or_attr, relative_date_parse
from products.actions.backend.models.action import Action, ActionStepJSON
from products.cohorts.backend.models.cohort import Cohort
@@ -822,6 +825,157 @@ def apply_path_cleaning(path_expr: ast.Expr, team: Team) -> ast.Expr:
return path_expr
+# get_interval_func also resolves minute/hour/quarter; behavioral windows are restricted to calendar intervals.
+_BEHAVIORAL_INTERVALS = frozenset({"day", "week", "month", "year"})
+
+_BEHAVIORAL_COUNT_OPERATORS = {
+ "gte": ast.CompareOperationOp.GtEq,
+ "lte": ast.CompareOperationOp.LtEq,
+ "gt": ast.CompareOperationOp.Gt,
+ "lt": ast.CompareOperationOp.Lt,
+ "eq": ast.CompareOperationOp.Eq,
+ "exact": ast.CompareOperationOp.Eq,
+}
+
+
+# Keep in sync with FEATURE_FLAGS.BEHAVIORAL_PROPERTY_FILTER in frontend/src/lib/constants.tsx.
+BEHAVIORAL_PROPERTY_FILTER_FLAG = "behavioral-property-filter"
+
+
+def _is_behavioral_property_filter_enabled(team: Team) -> bool:
+ # Fails closed: this runs on the query compile path, so an inconclusive local evaluation must
+ # mean "off" rather than an HTTP call, and a flag-service error must not open the gate.
+ try:
+ return bool(
+ posthoganalytics.feature_enabled(
+ BEHAVIORAL_PROPERTY_FILTER_FLAG,
+ str(team.uuid),
+ groups={"organization": str(team.organization_id), "project": str(team.id)},
+ group_properties={
+ "organization": {"id": str(team.organization_id)},
+ "project": {"id": str(team.id)},
+ },
+ only_evaluate_locally=True,
+ send_feature_flag_events=False,
+ )
+ )
+ except Exception:
+ return False
+
+
+def _behavioral_property_to_expr(property: Property, team: Team, scope: str, strict: bool = False) -> ast.Expr:
+ """Compile a behavioral ("performed event") filter into a `person_id IN (...)` subquery.
+
+ Unlike cohort-backed behavioral criteria this runs at query time, with no saved cohort and no
+ precalculated cohortpeople.
+ """
+ # Gates every entry point, not just the UI: /query, MCP query tools, and saved insights all land here.
+ if not _is_behavioral_property_filter_enabled(team):
+ raise QueryError(
+ "Behavioral (performed event) filters aren't available for this project. "
+ "Use a cohort to filter on past behavior."
+ )
+ # Person scope needs `id IN (SELECT person_id FROM events ...)`, which HogQL can't resolve under a `persons` FROM.
+ if scope != "event":
+ raise QueryError(f"The 'behavioral' property filter does not work in '{scope}' scope")
+ if property.value not in (
+ BehavioralPropertyType.PERFORMED_EVENT,
+ BehavioralPropertyType.PERFORMED_EVENT_MULTIPLE,
+ ):
+ raise QueryError(f"The behavioral criterion '{property.value}' requires a cohort, it cannot be used inline")
+
+ if property.event_type == "actions":
+ try:
+ action = Action.objects.get(pk=int(property.key), team__project_id=team.project_id)
+ except (Action.DoesNotExist, ValueError, TypeError):
+ raise QueryError(f"Action '{property.key}' in behavioral filter not found")
+ conditions: list[ast.Expr] = [action_to_expr(action)]
+ else:
+ conditions = [
+ ast.CompareOperation(
+ op=ast.CompareOperationOp.Eq,
+ left=ast.Field(chain=["event"]),
+ right=ast.Constant(value=str(property.key)),
+ )
+ ]
+
+ if property.explicit_datetime:
+ date_from = relative_date_parse(property.explicit_datetime, team.timezone_info)
+ conditions.append(
+ ast.CompareOperation(
+ op=ast.CompareOperationOp.Gt, left=ast.Field(chain=["timestamp"]), right=ast.Constant(value=date_from)
+ )
+ )
+ elif property.time_value is not None and property.time_interval is not None:
+ if property.time_interval not in _BEHAVIORAL_INTERVALS:
+ raise QueryError(f"Invalid behavioral filter time interval: {property.time_interval}")
+ interval_function = get_interval_func(property.time_interval)
+ try:
+ time_value = int(property.time_value)
+ except (ValueError, TypeError):
+ raise QueryError(f"Invalid behavioral filter time value: {property.time_value}")
+ if time_value <= 0:
+ raise QueryError(f"Invalid behavioral filter time value: {property.time_value}")
+ conditions.append(
+ ast.CompareOperation(
+ op=ast.CompareOperationOp.Gt,
+ left=ast.Field(chain=["timestamp"]),
+ right=ast.ArithmeticOperation(
+ op=ast.ArithmeticOperationOp.Sub,
+ left=ast.Call(name="now", args=[]),
+ right=ast.Call(name=interval_function, args=[ast.Constant(value=time_value)]),
+ ),
+ )
+ )
+ else:
+ # An unbounded "ever performed" filter would scan every partition of the events table.
+ raise QueryError("Behavioral filters require a time window (time_value/time_interval or explicit_datetime)")
+
+ if property.explicit_datetime_to:
+ date_to = relative_date_parse(property.explicit_datetime_to, team.timezone_info)
+ conditions.append(
+ ast.CompareOperation(
+ op=ast.CompareOperationOp.Lt,
+ left=ast.Field(chain=["timestamp"]),
+ right=ast.Constant(value=date_to),
+ )
+ )
+
+ if property.event_filters:
+ conditions.append(property_to_expr(list(property.event_filters), team, scope="event", strict=strict))
+
+ having: Optional[ast.Expr] = None
+ if property.value == BehavioralPropertyType.PERFORMED_EVENT_MULTIPLE:
+ try:
+ count = int(property.operator_value) # type: ignore[arg-type]
+ except (ValueError, TypeError):
+ raise QueryError(f"Invalid behavioral filter count: {property.operator_value}")
+ # count() = 0 can never match a grouped row, so a non-positive threshold silently matches nobody.
+ if count <= 0:
+ raise QueryError(f"Invalid behavioral filter count: {property.operator_value}")
+ count_op = _BEHAVIORAL_COUNT_OPERATORS.get(property.operator or "exact")
+ if count_op is None:
+ raise QueryError(f"Invalid behavioral filter count operator: {property.operator}")
+ having = ast.CompareOperation(
+ op=count_op,
+ left=ast.Call(name="count", args=[]),
+ right=ast.Constant(value=count),
+ )
+
+ subquery = ast.SelectQuery(
+ select=[ast.Field(chain=["person_id"])],
+ select_from=ast.JoinExpr(table=ast.Field(chain=["events"])),
+ where=ast.And(exprs=conditions) if len(conditions) > 1 else conditions[0],
+ group_by=[ast.Field(chain=["person_id"])],
+ having=having,
+ )
+ return ast.CompareOperation(
+ left=ast.Field(chain=["person_id"]),
+ op=ast.CompareOperationOp.NotIn if property.negation else ast.CompareOperationOp.In,
+ right=subquery,
+ )
+
+
def property_to_expr(
property: (
list
@@ -831,6 +985,7 @@ def property_to_expr(
| PropertyGroupFilterValue
| Property
| ast.Expr
+ | BehavioralPropertyFilter
| EventPropertyFilter
| PersonPropertyFilter
| ElementPropertyFilter
@@ -862,17 +1017,17 @@ def property_to_expr(
strict: bool = False,
) -> ast.Expr:
if isinstance(property, dict):
+ is_behavioral = property.get("type") == "behavioral"
try:
property = Property(**property)
# The property was saved as an incomplete object. Instead of crashing the entire query, pretend it's not there.
# TODO: revert this when removing legacy insights?
- except ValueError:
- if strict:
- raise
- return ast.Constant(value=1)
- except TypeError:
+ except (ValueError, TypeError) as e:
if strict:
raise
+ # Dropping a behavioral filter would widen the query to every person instead of narrowing it.
+ if is_behavioral:
+ raise QueryError(f"Invalid behavioral property filter: {e}")
return ast.Constant(value=1)
elif isinstance(property, list):
properties = [property_to_expr(p, team, scope, strict=strict) for p in property]
@@ -924,9 +1079,12 @@ def property_to_expr(
elif isinstance(property, BaseModel):
try:
property = Property(**property.dict())
- except ValueError:
+ except ValueError as e:
if strict:
raise
+ # Dropping a behavioral filter would widen the query to every person instead of narrowing it.
+ if isinstance(property, BehavioralPropertyFilter):
+ raise QueryError(f"Invalid behavioral property filter: {e}")
# The property was saved as an incomplete object. Instead of crashing the entire query, pretend it's not there.
return ast.Constant(value=1)
else:
@@ -939,6 +1097,10 @@ def property_to_expr(
elif property.type == "hogql":
tag_contains_user_hogql()
return parse_expr(property.key, cache_origin=CacheOrigin.USER)
+ elif property.type == "behavioral":
+ if not team:
+ raise Exception("Can not convert behavioral property to expression without team")
+ return _behavioral_property_to_expr(property, team, scope, strict=strict)
elif property.type == "event_metadata" and scope == "group" and GROUP_KEY_PATTERN.match(property.key) is not None:
group_type_index = property.key.split("_")[1]
operator = cast(Optional[PropertyOperator], property.operator) or PropertyOperator.EXACT
@@ -975,7 +1137,6 @@ def property_to_expr(
or property.type == "person"
or property.type == "person_metadata"
or property.type == "group"
- or property.type == "behavioral"
or property.type == "data_warehouse"
or property.type == "data_warehouse_person_property"
or property.type == "session"
@@ -1540,6 +1701,9 @@ def steps_to_expr(steps: list[ActionStepJSON], team: Team, events_alias: Optiona
exprs.append(expr)
if step.properties:
+ # An action referencing itself here would re-enter action_to_expr until Python's recursion limit.
+ if any(isinstance(prop, dict) and prop.get("type") == "behavioral" for prop in step.properties):
+ raise QueryError("Action steps can't filter on behavioral properties")
exprs.append(property_to_expr(step.properties, team))
if len(exprs) == 1:
diff --git a/posthog/hogql/test/test_property.py b/posthog/hogql/test/test_property.py
index 45f8cbf18e48..0502d0b292c6 100644
--- a/posthog/hogql/test/test_property.py
+++ b/posthog/hogql/test/test_property.py
@@ -10,6 +10,7 @@ from django.conf import settings
from parameterized import parameterized
from posthog.schema import (
+ BehavioralPropertyFilter,
EmptyPropertyFilter,
FlagPropertyFilter,
HogQLPropertyFilter,
@@ -26,6 +27,8 @@ from posthog.hogql.modifiers import create_default_modifiers_for_team
from posthog.hogql.parser import parse_expr
from posthog.hogql.printer.utils import prepare_and_print_ast
from posthog.hogql.property import (
+ BEHAVIORAL_PROPERTY_FILTER_FLAG,
+ action_to_expr,
entity_to_expr,
has_aggregation,
map_virtual_properties,
@@ -39,7 +42,9 @@ from posthog.hogql.visitor import clear_locations
from posthog.constants import TREND_FILTER_TYPE_ACTIONS, TREND_FILTER_TYPE_EVENTS, PropertyOperatorType
from posthog.models import Property, PropertyDefinition, Team
from posthog.models.property import PropertyGroup
+from posthog.utils import relative_date_parse
+from products.actions.backend.models.action import Action
from products.cohorts.backend.models.cohort import Cohort
from products.data_tools.backend.models.join import DataWarehouseJoin
from products.event_definitions.backend.models.property_definition import PropertyType
@@ -55,9 +60,18 @@ not_call = lambda x: ast.Call(name="not", args=[x])
class TestProperty(BaseTest):
maxDiff = None
+ def setUp(self):
+ super().setUp()
+ flag_patch = patch(
+ "posthog.hogql.property.posthoganalytics.feature_enabled",
+ side_effect=lambda flag, *args, **kwargs: flag == BEHAVIORAL_PROPERTY_FILTER_FLAG,
+ )
+ flag_patch.start()
+ self.addCleanup(flag_patch.stop)
+
def _property_to_expr(
self,
- property: Union[PropertyGroup, Property, HogQLPropertyFilter, dict, list],
+ property: Union[PropertyGroup, Property, BehavioralPropertyFilter, HogQLPropertyFilter, dict, list],
team: Optional[Team] = None,
scope: Optional[
Literal["event", "person", "group", "session", "replay", "replay_entity", "revenue_analytics"]
@@ -1980,6 +1994,208 @@ class TestProperty(BaseTest):
# The person filter must survive as a real comparison, not collapse to neutral too
self.assertIsInstance(cast(ast.And, result).exprs[1], ast.CompareOperation)
+ def _behavioral_filter(self, **overrides: Any) -> dict[str, Any]:
+ filter: dict[str, Any] = {
+ "type": "behavioral",
+ "value": "performed_event",
+ "key": "$pageview",
+ "event_type": "events",
+ "time_value": 30,
+ "time_interval": "day",
+ }
+ filter.update(overrides)
+ return filter
+
+ @parameterized.expand([(False, "IN"), (True, "NOT IN")])
+ def test_behavioral_performed_event(self, negation: bool, sql_op: str):
+ self.assertEqual(
+ self._property_to_expr(self._behavioral_filter(negation=negation)),
+ self._parse_expr(
+ f"person_id {sql_op} (SELECT person_id FROM events"
+ " WHERE event = '$pageview' AND timestamp > now() - toIntervalDay(30) GROUP BY person_id)"
+ ),
+ )
+
+ def test_behavioral_person_scope_raises(self):
+ with self.assertRaises(QueryError):
+ self._property_to_expr(self._behavioral_filter(), scope="person")
+
+ @parameterized.expand([(mode,) for mode in PersonsOnEventsMode])
+ def test_behavioral_resolves_under_all_poe_modes(self, mode: PersonsOnEventsMode):
+ query = ast.SelectQuery(
+ select=[ast.Constant(value=1)],
+ select_from=ast.JoinExpr(table=ast.Field(chain=["events"])),
+ where=self._property_to_expr(self._behavioral_filter()),
+ )
+ context = HogQLContext(
+ team_id=self.team.pk,
+ enable_select_queries=True,
+ modifiers=create_default_modifiers_for_team(self.team, HogQLQueryModifiers(personsOnEventsMode=mode)),
+ )
+ sql, _ = prepare_and_print_ast(query, context=context, dialect="clickhouse")
+ self.assertIn("GROUP BY", sql)
+
+ @parameterized.expand(
+ [
+ ("gte", ">="),
+ ("lte", "<="),
+ ("gt", ">"),
+ ("lt", "<"),
+ ("exact", "="),
+ (None, "="),
+ ]
+ )
+ def test_behavioral_performed_event_multiple_count_operators(self, operator: Optional[str], sql_op: str):
+ self.assertEqual(
+ self._property_to_expr(
+ self._behavioral_filter(value="performed_event_multiple", operator=operator, operator_value=5)
+ ),
+ self._parse_expr(
+ "person_id IN (SELECT person_id FROM events"
+ " WHERE event = '$pageview' AND timestamp > now() - toIntervalDay(30)"
+ f" GROUP BY person_id HAVING count() {sql_op} 5)"
+ ),
+ )
+
+ def test_behavioral_event_filters_apply_to_matching_events(self):
+ self.assertEqual(
+ self._property_to_expr(
+ self._behavioral_filter(
+ event_filters=[{"type": "event", "key": "$browser", "value": "Chrome", "operator": "exact"}]
+ )
+ ),
+ self._parse_expr(
+ "person_id IN (SELECT person_id FROM events"
+ " WHERE event = '$pageview' AND timestamp > now() - toIntervalDay(30)"
+ " AND properties.$browser = 'Chrome' GROUP BY person_id)"
+ ),
+ )
+
+ def test_behavioral_explicit_datetime_bounds(self):
+ with freeze_time("2024-05-15T12:00:00Z"):
+ expected_from = relative_date_parse("-7d", self.team.timezone_info)
+ self.assertEqual(
+ self._property_to_expr(
+ self._behavioral_filter(time_value=None, time_interval=None, explicit_datetime="-7d")
+ ),
+ self._parse_expr(
+ "person_id IN (SELECT person_id FROM events"
+ " WHERE event = '$pageview' AND timestamp > {date_from} GROUP BY person_id)",
+ {"date_from": ast.Constant(value=expected_from)},
+ ),
+ )
+
+ def test_behavioral_count_aggregation_is_invisible_to_has_aggregation(self):
+ # Trends moves aggregating WHERE clauses into HAVING; the count() inside the behavioral
+ # subquery must not trigger that
+ expr = self._property_to_expr(
+ self._behavioral_filter(value="performed_event_multiple", operator="gte", operator_value=2)
+ )
+ self.assertEqual(has_aggregation(expr), False)
+
+ @parameterized.expand(
+ [
+ ("flag_off", {"return_value": False}),
+ ("flag_service_unavailable", {"side_effect": Exception("flag service unreachable")}),
+ ]
+ )
+ def test_behavioral_filter_requires_the_feature_flag(self, _name: str, flag_mock: dict):
+ # The gate sits in property_to_expr, so it covers the /query API and MCP, not just the UI entry point.
+ with patch("posthog.hogql.property.posthoganalytics.feature_enabled", **flag_mock):
+ with self.assertRaisesMessage(QueryError, "aren't available for this project"):
+ self._property_to_expr(self._behavioral_filter())
+
+ def test_behavioral_cohort_only_criteria_raise(self):
+ with self.assertRaises(QueryError):
+ self._property_to_expr(
+ Property(
+ type="behavioral",
+ value="performed_event_sequence",
+ key="$pageview",
+ event_type="events",
+ time_value=1,
+ time_interval="week",
+ seq_event="sign up",
+ seq_event_type="events",
+ seq_time_value=30,
+ seq_time_interval="day",
+ )
+ )
+
+ @parameterized.expand(
+ [
+ ("no_window", {"time_value": None, "time_interval": None}),
+ ("multiple_without_count", {"value": "performed_event_multiple", "operator_value": None}),
+ ]
+ )
+ def test_behavioral_incomplete_filter_raises_instead_of_matching_everyone(self, _name: str, overrides: dict):
+ # Non-strict callers drop incomplete filters to Constant(1); for a behavioral filter that would
+ # widen the query to every person rather than narrowing it.
+ with self.assertRaises(QueryError):
+ self._property_to_expr(
+ BehavioralPropertyFilter(**self._behavioral_filter(**overrides)), strict=False, scope="event"
+ )
+
+ def test_behavioral_explicit_datetime_to_bounds_a_relative_window(self):
+ with freeze_time("2024-05-15T12:00:00Z"):
+ expected_to = relative_date_parse("-1d", self.team.timezone_info)
+ self.assertEqual(
+ self._property_to_expr(self._behavioral_filter(explicit_datetime_to="-1d")),
+ self._parse_expr(
+ "person_id IN (SELECT person_id FROM events"
+ " WHERE event = '$pageview' AND timestamp > now() - toIntervalDay(30)"
+ " AND timestamp < {date_to} GROUP BY person_id)",
+ {"date_to": ast.Constant(value=expected_to)},
+ ),
+ )
+
+ def test_behavioral_zero_count_raises(self):
+ with self.assertRaises(QueryError):
+ self._property_to_expr(self._behavioral_filter(value="performed_event_multiple", operator_value=0))
+
+ def test_behavioral_missing_time_window_raises(self):
+ # Property-level validation accepts window-less realtime-cohort leaves (bytecode); the
+ # inline filter must still refuse to scan all of events history
+ with self.assertRaises(QueryError):
+ self._property_to_expr(
+ Property(
+ type="behavioral",
+ value="performed_event",
+ key="$pageview",
+ event_type="events",
+ conditionHash="x",
+ bytecode=[],
+ )
+ )
+
+ def test_behavioral_action_not_found_raises(self):
+ with self.assertRaises(QueryError):
+ self._property_to_expr(self._behavioral_filter(event_type="actions", key="999999"))
+
+ def test_behavioral_performed_event_with_action(self):
+ action = Action.objects.create(team=self.team, steps_json=[{"event": "$pageview"}])
+ self.assertEqual(
+ self._property_to_expr(self._behavioral_filter(event_type="actions", key=str(action.pk))),
+ self._parse_expr(
+ "person_id IN (SELECT person_id FROM events WHERE {action}"
+ " AND timestamp > now() - toIntervalDay(30) GROUP BY person_id)",
+ {"action": action_to_expr(action)},
+ ),
+ )
+
+ def test_behavioral_property_in_action_step_raises(self):
+ # Compiling one would re-enter action_to_expr until Python's recursion limit
+ action = Action.objects.create(team=self.team, steps_json=[{"event": "$pageview"}])
+ action.steps_json = [
+ {
+ "event": "$pageview",
+ "properties": [self._behavioral_filter(event_type="actions", key=str(action.pk))],
+ }
+ ]
+ action.save()
+ with self.assertRaises(QueryError):
+ action_to_expr(action)
+
class TestPropertyIsSetIsNotSetWithData(APIBaseTest):
# Sentinel to indicate a property should not be included in the event
diff --git a/posthog/schema.py b/posthog/schema.py
index 997f4844a0f1..d714c8570ab5 100644
--- a/posthog/schema.py
+++ b/posthog/schema.py
@@ -51,6 +51,7 @@ from posthog.schema_enums import (
AttributionMode as AttributionMode,
AutocompleteCompletionItemKind as AutocompleteCompletionItemKind,
BaseMathType as BaseMathType,
+ BehavioralEventSource as BehavioralEventSource,
BillingSpendResponseBreakdownType as BillingSpendResponseBreakdownType,
BillingUsageResponseBreakdownType as BillingUsageResponseBreakdownType,
BingAdsDefaultSources as BingAdsDefaultSources,
@@ -136,6 +137,7 @@ from posthog.schema_enums import (
HrefMatching as HrefMatching,
InCohortVia as InCohortVia,
InfinityValue as InfinityValue,
+ InlineBehavioralType as InlineBehavioralType,
InlineCohortCalculation as InlineCohortCalculation,
InsightFilterProperty as InsightFilterProperty,
InsightNodeKind as InsightNodeKind,
@@ -267,6 +269,7 @@ from posthog.schema_enums import (
TextMatching as TextMatching,
Theme as Theme,
TikTokAdsDefaultSources as TikTokAdsDefaultSources,
+ TimeUnitType as TimeUnitType,
TimeWindowMode as TimeWindowMode,
TraceOrderColumn as TraceOrderColumn,
TraceSpanBreakdownOrderBy as TraceSpanBreakdownOrderBy,
@@ -7089,37 +7092,6 @@ class SpanPropertyFilter(BaseModel):
value: list[str | float | bool] | str | float | bool | None = None
-# Added by bin/patch-schema-property-filter-discriminator.py: tagged AnyPropertyFilter
-# alias so validation routes on `type` instead of trying every member. The callable
-# keeps legacy tolerance — see posthog/schema_discriminators.py.
-AnyPropertyFilterDiscriminated = Annotated[
- Annotated[EventPropertyFilter, pydantic.Tag("event")]
- | Annotated[PersonPropertyFilter, pydantic.Tag("person")]
- | Annotated[PersonMetadataPropertyFilter, pydantic.Tag("person_metadata")]
- | Annotated[ElementPropertyFilter, pydantic.Tag("element")]
- | Annotated[EventMetadataPropertyFilter, pydantic.Tag("event_metadata")]
- | Annotated[SessionPropertyFilter, pydantic.Tag("session")]
- | Annotated[CohortPropertyFilter, pydantic.Tag("cohort")]
- | Annotated[RecordingPropertyFilter, pydantic.Tag("recording")]
- | Annotated[LogEntryPropertyFilter, pydantic.Tag("log_entry")]
- | Annotated[GroupPropertyFilter, pydantic.Tag("group")]
- | Annotated[FeaturePropertyFilter, pydantic.Tag("feature")]
- | Annotated[FlagPropertyFilter, pydantic.Tag("flag")]
- | Annotated[HogQLPropertyFilter, pydantic.Tag("hogql")]
- | Annotated[EmptyPropertyFilter, pydantic.Tag("empty")]
- | Annotated[DataWarehousePropertyFilter, pydantic.Tag("data_warehouse")]
- | Annotated[DataWarehousePersonPropertyFilter, pydantic.Tag("data_warehouse_person_property")]
- | Annotated[ErrorTrackingIssueFilter, pydantic.Tag("error_tracking_issue")]
- | Annotated[LogPropertyFilter, pydantic.Tag("log")]
- | Annotated[MetricPropertyFilter, pydantic.Tag("metric_attribute")]
- | Annotated[SpanPropertyFilter, pydantic.Tag("span")]
- | Annotated[RevenueAnalyticsPropertyFilter, pydantic.Tag("revenue_analytics")]
- | Annotated[AccountCustomPropertyFilter, pydantic.Tag("account_custom_property")]
- | Annotated[WorkflowVariablePropertyFilter, pydantic.Tag("workflow_variable")],
- pydantic.Discriminator(property_filter_discriminator),
-]
-
-
class SpanTreeNode(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -10422,6 +10394,90 @@ class AssistantWebVitalsPathBreakdownQuery(BaseModel):
)
+class BehavioralPropertyFilter(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ event_filters: (
+ list[
+ EventPropertyFilter
+ | PersonPropertyFilter
+ | ElementPropertyFilter
+ | FeaturePropertyFilter
+ | HogQLPropertyFilter
+ ]
+ | None
+ ) = Field(
+ default=None,
+ description=(
+ "Extra property filters the matching events must satisfy. Deliberately"
+ " excludes nested behavioral/cohort filters and groups"
+ ),
+ )
+ event_type: BehavioralEventSource
+ explicit_datetime: str | None = Field(
+ default=None,
+ description=("Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval"),
+ )
+ explicit_datetime_to: str | None = None
+ key: str = Field(..., description="Event name, or action id when event_type is 'actions'")
+ label: str | None = None
+ negation: bool | None = Field(
+ default=None,
+ description=(
+ "Match persons who did NOT satisfy the criterion. Not the same as a low"
+ " count — zero-occurrence persons never match count operators"
+ ),
+ )
+ operator: PropertyOperator | None = Field(
+ default=None,
+ description="Count comparison for performed_event_multiple, defaults to exact",
+ )
+ operator_value: int | None = Field(default=None, description="Count threshold for performed_event_multiple")
+ time_interval: TimeUnitType | None = None
+ time_value: int | None = Field(default=None, description="Relative time window size, paired with time_interval")
+ type: Literal["behavioral"] = Field(
+ default="behavioral",
+ description=(
+ "Person performed (or didn't perform) an event in a time window."
+ " ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ )
+ value: InlineBehavioralType
+
+
+# Added by bin/patch-schema-property-filter-discriminator.py: tagged AnyPropertyFilter
+# alias so validation routes on `type` instead of trying every member. The callable
+# keeps legacy tolerance — see posthog/schema_discriminators.py.
+AnyPropertyFilterDiscriminated = Annotated[
+ Annotated[EventPropertyFilter, pydantic.Tag("event")]
+ | Annotated[PersonPropertyFilter, pydantic.Tag("person")]
+ | Annotated[PersonMetadataPropertyFilter, pydantic.Tag("person_metadata")]
+ | Annotated[ElementPropertyFilter, pydantic.Tag("element")]
+ | Annotated[EventMetadataPropertyFilter, pydantic.Tag("event_metadata")]
+ | Annotated[SessionPropertyFilter, pydantic.Tag("session")]
+ | Annotated[CohortPropertyFilter, pydantic.Tag("cohort")]
+ | Annotated[RecordingPropertyFilter, pydantic.Tag("recording")]
+ | Annotated[LogEntryPropertyFilter, pydantic.Tag("log_entry")]
+ | Annotated[GroupPropertyFilter, pydantic.Tag("group")]
+ | Annotated[FeaturePropertyFilter, pydantic.Tag("feature")]
+ | Annotated[FlagPropertyFilter, pydantic.Tag("flag")]
+ | Annotated[HogQLPropertyFilter, pydantic.Tag("hogql")]
+ | Annotated[EmptyPropertyFilter, pydantic.Tag("empty")]
+ | Annotated[DataWarehousePropertyFilter, pydantic.Tag("data_warehouse")]
+ | Annotated[DataWarehousePersonPropertyFilter, pydantic.Tag("data_warehouse_person_property")]
+ | Annotated[ErrorTrackingIssueFilter, pydantic.Tag("error_tracking_issue")]
+ | Annotated[LogPropertyFilter, pydantic.Tag("log")]
+ | Annotated[MetricPropertyFilter, pydantic.Tag("metric_attribute")]
+ | Annotated[SpanPropertyFilter, pydantic.Tag("span")]
+ | Annotated[RevenueAnalyticsPropertyFilter, pydantic.Tag("revenue_analytics")]
+ | Annotated[AccountCustomPropertyFilter, pydantic.Tag("account_custom_property")]
+ | Annotated[WorkflowVariablePropertyFilter, pydantic.Tag("workflow_variable")]
+ | Annotated[BehavioralPropertyFilter, pydantic.Tag("behavioral")],
+ pydantic.Discriminator(property_filter_discriminator),
+]
+
+
class BreakdownItem(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -14940,301 +14996,77 @@ class ContextMessage(BaseModel):
type: Literal["context"] = "context"
-class ConversionGoalFilter1(BaseModel):
+class Response(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- conversion_goal_id: str
- conversion_goal_name: str
- counts_as_customer: bool | None = Field(
+ columns: list
+ error: str | None = Field(
default=None,
description=(
- "Marks this goal as customer-defining: a conversion here means the person"
- " became a customer (e.g. a payment or subscription), not an intermediate"
- " step like a sign up. It gates customer-based metrics such as CAC, whose"
- " denominator is this goal's conversions — its count, or its unique"
- " converters under dau math. That equals new customers only for a"
- " once-per-person moment: a repeatable event such as a monthly payment"
- " counts every time and understates cost per customer, and dedup under dau"
- " is per result row, so someone converting under two sources counts twice"
- " at channel level. Defaults to false."
+ "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
),
)
- counts_as_revenue: bool | None = Field(
+ hasMore: bool | None = None
+ hogql: str = Field(..., description="Generated HogQL query.")
+ limit: int | None = None
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ nextCursor: str | None = Field(default=None, description="Cursor for fetching the next page of results")
+ offset: int | None = None
+ query_status: QueryStatus | None = Field(
default=None,
- description=(
- "Marks this goal as revenue-bearing: the value of a conversion is a"
- " monetary amount, not a count or an arbitrary numeric property. It gates"
- " revenue metrics such as ROAS and LTV:CAC. The amount itself comes from"
- " math_property, and its currency from math_property_revenue_currency, the"
- " same shape Revenue analytics uses for revenue events. Independent of"
- " counts_as_customer: a purchase is usually both, a trial signup neither."
- " Defaults to false."
- ),
+ description=("Query status indicates whether next to the provided data, a query is still running."),
)
- custom_name: str | None = None
- event: str | None = Field(default=None, description="The event or `null` for all events.")
- fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ resolved_compare_date_range: ResolvedDateRangeResponse | None = Field(
default=None,
- description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
+ description=("The resolved previous/comparison period date range, when comparing against another period"),
)
- kind: Literal["EventsNode"] = "EventsNode"
- limit: int | None = None
- math: (
- BaseMathType
- | FunnelMathType
- | PropertyMathType
- | CountPerActorMathType
- | GroupMathType
- | ExperimentMetricMathType
- | CalendarHeatmapMathType
- | Literal["hogql"]
- | None
- ) = None
- math_group_type_index: MathGroupTypeIndex | None = None
- math_hogql: str | None = None
- math_multiplier: float | None = None
- math_property: str | None = None
- math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
- math_property_type: str | None = None
- name: str | None = None
- optionalInFunnel: bool | None = None
- orderBy: list[str] | None = Field(default=None, description="Columns to order by")
- properties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None, description="Properties configurable in the interface"
+ resolved_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None, description="The date range used for the query"
)
- response: dict[str, Any] | None = None
- schema_map: dict[str, str | Any]
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
-class ConversionGoalFilter2(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
+ results: list[list]
+ timings: list[QueryTiming] | None = Field(
+ default=None,
+ description=("Measured timings for different parts of the query generation process"),
)
- conversion_goal_id: str
- conversion_goal_name: str
- counts_as_customer: bool | None = Field(
+ types: list[str]
+ used_data_warehouse_sources: list[DataWarehouseSourceUsage] | None = Field(
default=None,
- description=(
- "Marks this goal as customer-defining: a conversion here means the person"
- " became a customer (e.g. a payment or subscription), not an intermediate"
- " step like a sign up. It gates customer-based metrics such as CAC, whose"
- " denominator is this goal's conversions — its count, or its unique"
- " converters under dau math. That equals new customers only for a"
- " once-per-person moment: a repeatable event such as a monthly payment"
- " counts every time and understates cost per customer, and dedup under dau"
- " is per result row, so someone converting under two sources counts twice"
- " at channel level. Defaults to false."
- ),
+ description=("Connector-synced data warehouse sources referenced by this query, if any."),
)
- counts_as_revenue: bool | None = Field(
+ warnings: list[DataWarehouseSyncWarning | AccessControlFilterWarning] | None = Field(
default=None,
description=(
- "Marks this goal as revenue-bearing: the value of a conversion is a"
- " monetary amount, not a count or an arbitrary numeric property. It gates"
- " revenue metrics such as ROAS and LTV:CAC. The amount itself comes from"
- " math_property, and its currency from math_property_revenue_currency, the"
- " same shape Revenue analytics uses for revenue events. Independent of"
- " counts_as_customer: a purchase is usually both, a trial signup neither."
- " Defaults to false."
+ "Warnings about data warehouse sources referenced by the query whose"
+ " latest sync failed, is paused, hit a billing limit, or is otherwise"
+ " stale. Results may not reflect current source data. Accumulated"
+ " across every HogQL execution that contributes to this response — so"
+ " insights backed by warehouse tables (Trends, Funnels, etc.) receive"
+ " the same warnings as raw HogQL queries. Also carries access control"
+ " warnings when a system-table query filters out objects the user can't"
+ " access."
),
)
- custom_name: str | None = None
- fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None,
- description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
- )
- id: int
- kind: Literal["ActionsNode"] = "ActionsNode"
- math: (
- BaseMathType
- | FunnelMathType
- | PropertyMathType
- | CountPerActorMathType
- | GroupMathType
- | ExperimentMetricMathType
- | CalendarHeatmapMathType
- | Literal["hogql"]
- | None
- ) = None
- math_group_type_index: MathGroupTypeIndex | None = None
- math_hogql: str | None = None
- math_multiplier: float | None = None
- math_property: str | None = None
- math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
- math_property_type: str | None = None
- name: str | None = None
- optionalInFunnel: bool | None = None
- properties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None, description="Properties configurable in the interface"
- )
- response: dict[str, Any] | None = None
- schema_map: dict[str, str | Any]
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class ConversionGoalFilter3(BaseModel):
+class Response1(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- conversion_goal_id: str
- conversion_goal_name: str
- counts_as_customer: bool | None = Field(
+ columns: list
+ error: str | None = Field(
default=None,
description=(
- "Marks this goal as customer-defining: a conversion here means the person"
- " became a customer (e.g. a payment or subscription), not an intermediate"
- " step like a sign up. It gates customer-based metrics such as CAC, whose"
- " denominator is this goal's conversions — its count, or its unique"
- " converters under dau math. That equals new customers only for a"
- " once-per-person moment: a repeatable event such as a monthly payment"
- " counts every time and understates cost per customer, and dedup under dau"
- " is per result row, so someone converting under two sources counts twice"
- " at channel level. Defaults to false."
+ "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
),
)
- counts_as_revenue: bool | None = Field(
- default=None,
- description=(
- "Marks this goal as revenue-bearing: the value of a conversion is a"
- " monetary amount, not a count or an arbitrary numeric property. It gates"
- " revenue metrics such as ROAS and LTV:CAC. The amount itself comes from"
- " math_property, and its currency from math_property_revenue_currency, the"
- " same shape Revenue analytics uses for revenue events. Independent of"
- " counts_as_customer: a purchase is usually both, a trial signup neither."
- " Defaults to false."
- ),
- )
- custom_name: str | None = None
- distinct_id_field: str
- dw_source_type: str | None = None
- fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None,
- description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
- )
- id: str
- id_field: str
- kind: Literal["DataWarehouseNode"] = "DataWarehouseNode"
- math: (
- BaseMathType
- | FunnelMathType
- | PropertyMathType
- | CountPerActorMathType
- | GroupMathType
- | ExperimentMetricMathType
- | CalendarHeatmapMathType
- | Literal["hogql"]
- | None
- ) = None
- math_group_type_index: MathGroupTypeIndex | None = None
- math_hogql: str | None = None
- math_multiplier: float | None = None
- math_property: str | None = None
- math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
- math_property_type: str | None = None
- name: str | None = None
- optionalInFunnel: bool | None = None
- properties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None, description="Properties configurable in the interface"
- )
- response: dict[str, Any] | None = None
- schema_map: dict[str, str | Any]
- table_name: str
- timestamp_field: str
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
-class DashboardFilter(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- breakdown_filter: BreakdownFilter | None = None
- date_from: str | None = None
- date_to: str | None = None
- explicitDate: bool | None = None
- filterTestAccounts: bool | None = Field(
- default=None,
- description=("Tri-state test-account override. Null/absent = inherit; true = force on; false = force off."),
- )
- interval: IntervalType | None = Field(
- default=None,
- description=("Time granularity forced onto every insight that supports one. Absent/null = inherit."),
- )
- properties: list[AnyPropertyFilterDiscriminated] | None = None
-
-
-class Response(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- columns: list
- error: str | None = Field(
- default=None,
- description=(
- "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
- ),
- )
- hasMore: bool | None = None
- hogql: str = Field(..., description="Generated HogQL query.")
- limit: int | None = None
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- nextCursor: str | None = Field(default=None, description="Cursor for fetching the next page of results")
- offset: int | None = None
- query_status: QueryStatus | None = Field(
- default=None,
- description=("Query status indicates whether next to the provided data, a query is still running."),
- )
- resolved_compare_date_range: ResolvedDateRangeResponse | None = Field(
- default=None,
- description=("The resolved previous/comparison period date range, when comparing against another period"),
- )
- resolved_date_range: ResolvedDateRangeResponse | None = Field(
- default=None, description="The date range used for the query"
- )
- results: list[list]
- timings: list[QueryTiming] | None = Field(
- default=None,
- description=("Measured timings for different parts of the query generation process"),
- )
- types: list[str]
- used_data_warehouse_sources: list[DataWarehouseSourceUsage] | None = Field(
- default=None,
- description=("Connector-synced data warehouse sources referenced by this query, if any."),
- )
- warnings: list[DataWarehouseSyncWarning | AccessControlFilterWarning] | None = Field(
- default=None,
- description=(
- "Warnings about data warehouse sources referenced by the query whose"
- " latest sync failed, is paused, hit a billing limit, or is otherwise"
- " stale. Results may not reflect current source data. Accumulated"
- " across every HogQL execution that contributes to this response — so"
- " insights backed by warehouse tables (Trends, Funnels, etc.) receive"
- " the same warnings as raw HogQL queries. Also carries access control"
- " warnings when a system-table query filters out objects the user can't"
- " access."
- ),
- )
-
-
-class Response1(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- columns: list
- error: str | None = Field(
- default=None,
- description=(
- "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
- ),
- )
- hasMore: bool | None = None
- hogql: str = Field(..., description="Generated HogQL query.")
- limit: int
- missing_actors_count: int | None = None
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- offset: int
- query_status: QueryStatus | None = Field(
+ hasMore: bool | None = None
+ hogql: str = Field(..., description="Generated HogQL query.")
+ limit: int
+ missing_actors_count: int | None = None
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ offset: int
+ query_status: QueryStatus | None = Field(
default=None,
description=("Query status indicates whether next to the provided data, a query is still running."),
)
@@ -16115,48 +15947,6 @@ class Response23(BaseModel):
)
-class DataWarehouseNode(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- custom_name: str | None = None
- distinct_id_field: str
- dw_source_type: str | None = None
- fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None,
- description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
- )
- id: str
- id_field: str
- kind: Literal["DataWarehouseNode"] = "DataWarehouseNode"
- math: (
- BaseMathType
- | FunnelMathType
- | PropertyMathType
- | CountPerActorMathType
- | GroupMathType
- | ExperimentMetricMathType
- | CalendarHeatmapMathType
- | Literal["hogql"]
- | None
- ) = None
- math_group_type_index: MathGroupTypeIndex | None = None
- math_hogql: str | None = None
- math_multiplier: float | None = None
- math_property: str | None = None
- math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
- math_property_type: str | None = None
- name: str | None = None
- optionalInFunnel: bool | None = None
- properties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None, description="Properties configurable in the interface"
- )
- response: dict[str, Any] | None = None
- table_name: str
- timestamp_field: str
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
class DatabaseSchemaBatchExportTable(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -16300,52 +16090,6 @@ class ECODDetectorConfig(BaseModel):
)
-class EndpointRunRequest(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- client_query_id: str | None = Field(
- default=None,
- description=("Client provided query ID. Can be used to retrieve the status or cancel the query."),
- )
- debug: bool | None = Field(
- default=False,
- description=("Whether to include debug information (such as the executed HogQL) in the response."),
- )
- filters_override: DashboardFilter | None = None
- limit: int | None = Field(
- default=None,
- description=("Maximum number of results to return. If not provided, returns all results."),
- )
- offset: int | None = Field(
- default=None,
- description=(
- "Number of results to skip. Must be used together with limit. Only supported for HogQL endpoints."
- ),
- )
- refresh: EndpointRefreshMode | None = EndpointRefreshMode.CACHE
- variables: dict[str, Any] | None = Field(
- default=None,
- description=(
- "Variables to parameterize the endpoint query. The key is the variable name"
- " and the value is the variable value.\n\nFor HogQL endpoints: Keys must"
- " match a variable `code_name` defined in the query (referenced as"
- ' `{variables.code_name}`). Example: `{"event_name": "$pageview"}`\n\nFor'
- " non-materialized insight endpoints (e.g. TrendsQuery): - `date_from`"
- " and `date_to` are built-in variables that filter the date range. "
- ' Example: `{"date_from": "2024-01-01", "date_to": "2024-01-31"}`\n\nFor'
- " materialized insight endpoints: - Use the breakdown property name as"
- ' the key to filter by breakdown value. Example: `{"$browser":'
- ' "Chrome"}` - `date_from`/`date_to` are not supported on materialized'
- " insight endpoints.\n\nUnknown variable names will return a 400 error."
- ),
- )
- version: int | None = Field(
- default=None,
- description=("Specific endpoint version to execute. If not provided, the latest version is used."),
- )
-
-
class EndpointsUsageOverviewQueryResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -16492,51 +16236,15 @@ class EndpointsUsageTrendsQueryResponse(BaseModel):
)
-class EntityNode(BaseModel):
+class ErrorTrackingBreakdownsQueryResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- custom_name: str | None = None
- fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ error: str | None = Field(
default=None,
- description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
- )
- kind: NodeKind
- math: (
- BaseMathType
- | FunnelMathType
- | PropertyMathType
- | CountPerActorMathType
- | GroupMathType
- | ExperimentMetricMathType
- | CalendarHeatmapMathType
- | Literal["hogql"]
- | None
- ) = None
- math_group_type_index: MathGroupTypeIndex | None = None
- math_hogql: str | None = None
- math_multiplier: float | None = None
- math_property: str | None = None
- math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
- math_property_type: str | None = None
- name: str | None = None
- optionalInFunnel: bool | None = None
- properties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None, description="Properties configurable in the interface"
- )
- response: dict[str, Any] | None = None
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
-class ErrorTrackingBreakdownsQueryResponse(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- error: str | None = Field(
- default=None,
- description=(
- "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
- ),
+ description=(
+ "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
+ ),
)
hogql: str | None = Field(default=None, description="Generated HogQL query.")
modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
@@ -16654,27 +16362,6 @@ class ErrorTrackingIssue(BaseModel):
status: ErrorTrackingIssueStatus
-class ErrorTrackingIssueFilteringToolOutput(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- dateRange: DateRange | None = None
- filterTestAccounts: bool | None = None
- newFilters: list[AnyPropertyFilterDiscriminated] | None = None
- orderBy: ErrorTrackingOrderBy = Field(..., description="Field to sort results by.")
- orderDirection: OrderDirection2 | None = Field(default=None, description="Sort direction.")
- removedFilterIndexes: list[int] | None = None
- searchQuery: str | None = Field(
- default=None,
- description=("Free-text search across exception type, message, and stack frames."),
- )
- status: ErrorTrackingIssueStatus | str | None = Field(
- default=None,
- description="Filter by issue status.",
- title="ErrorTrackingQueryStatus",
- )
-
-
class ErrorTrackingQueryResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -16841,61 +16528,6 @@ class EventTaxonomyQueryResponse(BaseModel):
)
-class EventsNode(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- custom_name: str | None = None
- event: str | None = Field(default=None, description="The event or `null` for all events.")
- fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None,
- description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
- )
- kind: Literal["EventsNode"] = "EventsNode"
- limit: int | None = None
- math: (
- BaseMathType
- | FunnelMathType
- | PropertyMathType
- | CountPerActorMathType
- | GroupMathType
- | ExperimentMetricMathType
- | CalendarHeatmapMathType
- | Literal["hogql"]
- | None
- ) = None
- math_group_type_index: MathGroupTypeIndex | None = None
- math_hogql: str | None = None
- math_multiplier: float | None = None
- math_property: str | None = None
- math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
- math_property_type: str | None = None
- name: str | None = None
- optionalInFunnel: bool | None = None
- orderBy: list[str] | None = Field(default=None, description="Columns to order by")
- properties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None, description="Properties configurable in the interface"
- )
- response: dict[str, Any] | None = None
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
-class EventsQueryActionStep(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- event: str | None = None
- href: str | None = None
- href_matching: HrefMatching | None = None
- properties: list[AnyPropertyFilterDiscriminated] | None = None
- selector: str | None = None
- tag_name: str | None = None
- text: str | None = None
- text_matching: TextMatching | None = None
- url: str | None = None
- url_matching: UrlMatching | None = None
-
-
class EventsQueryResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -16949,54 +16581,6 @@ class EventsQueryResponse(BaseModel):
)
-class ExperimentApiExposureConfig(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- event: str | None = Field(
- default=None,
- description=("Custom exposure event name. Required when kind is 'ExperimentEventExposureConfig'."),
- )
- id: int | None = Field(default=None, description="Action ID. Required when kind is 'ActionsNode'.")
- kind: Kind1 | None = Field(
- default=None,
- description=(
- "Defaults to 'ExperimentEventExposureConfig' when omitted. Pass 'ActionsNode' for an action-based exposure."
- ),
- )
- properties: list[AnyPropertyFilterDiscriminated] = Field(
- ...,
- description=(
- "Property filters (event, person, and other supported types). Pass an empty array if no filters needed."
- ),
- )
-
-
-class ExperimentApiExposureCriteria(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- activation_config: ExperimentApiExposureConfig | None = Field(
- default=None,
- description=(
- "Additional event (or action) an entity must emit at/after their first"
- " default exposure event before they count as exposed; exposure time"
- " becomes this event's timestamp. Only valid with the default exposure"
- " event, not a custom `exposure_config`."
- ),
- )
- exposure_config: ExperimentApiExposureConfig | None = None
- filterTestAccounts: bool | None = None
- multiple_variant_handling: MultipleVariantHandling | None = Field(
- default=None,
- description=(
- "How to handle entities exposed to multiple variants. 'exclude' (default)"
- " drops them from the analysis; 'first_seen' assigns them to the variant"
- " from their earliest exposure."
- ),
- )
-
-
class ExperimentBreakdownResult(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -17019,96 +16603,70 @@ class ExperimentBreakdownResult(BaseModel):
)
-class ExperimentDataWarehouseNode(BaseModel):
+class FunnelCorrelationResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- custom_name: str | None = None
- data_warehouse_join_key: str
- events_join_key: str
- fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ columns: list | None = None
+ error: str | None = Field(
default=None,
- description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
+ description=(
+ "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
+ ),
)
- kind: Literal["ExperimentDataWarehouseNode"] = "ExperimentDataWarehouseNode"
- math: (
- BaseMathType
- | FunnelMathType
- | PropertyMathType
- | CountPerActorMathType
- | GroupMathType
- | ExperimentMetricMathType
- | CalendarHeatmapMathType
- | Literal["hogql"]
- | None
- ) = None
- math_group_type_index: MathGroupTypeIndex | None = None
- math_hogql: str | None = None
- math_multiplier: float | None = None
- math_property: str | None = None
- math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
- math_property_type: str | None = None
- name: str | None = None
- optionalInFunnel: bool | None = None
- properties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None, description="Properties configurable in the interface"
+ hasMore: bool | None = None
+ hogql: str | None = Field(default=None, description="Generated HogQL query.")
+ limit: int | None = None
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ offset: int | None = None
+ query_status: QueryStatus | None = Field(
+ default=None,
+ description=("Query status indicates whether next to the provided data, a query is still running."),
)
- response: dict[str, Any] | None = None
- table_name: str
- timestamp_field: str
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
-class ExperimentEventExposureConfig(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
+ resolved_compare_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None,
+ description=("The resolved previous/comparison period date range, when comparing against another period"),
)
- event: str
- kind: Literal["ExperimentEventExposureConfig"] = "ExperimentEventExposureConfig"
- properties: list[AnyPropertyFilterDiscriminated]
- response: dict[str, Any] | None = None
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
-class FeatureFlagGroupType(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
+ resolved_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None, description="The date range used for the query"
)
- aggregation_group_type_index: int | None = None
- description: str | None = None
- exposure_frozen: bool | None = Field(
+ results: FunnelCorrelationResult
+ timings: list[QueryTiming] | None = Field(
default=None,
- description=(
- "Stamped by the experiment exposure freeze: the group carries a machine-added snapshot-cohort condition."
- ),
+ description=("Measured timings for different parts of the query generation process"),
)
- exposure_frozen_cohort: float | None = Field(
+ types: list | None = None
+ used_data_warehouse_sources: list[DataWarehouseSourceUsage] | None = Field(
default=None,
- description=("Snapshot cohort the exposure freeze AND'd into this group's properties."),
+ description=("Connector-synced data warehouse sources referenced by this query, if any."),
+ )
+ warnings: list[DataWarehouseSyncWarning | AccessControlFilterWarning] | None = Field(
+ default=None,
+ description=(
+ "Warnings about data warehouse sources referenced by the query whose"
+ " latest sync failed, is paused, hit a billing limit, or is otherwise"
+ " stale. Results may not reflect current source data. Accumulated"
+ " across every HogQL execution that contributes to this response — so"
+ " insights backed by warehouse tables (Trends, Funnels, etc.) receive"
+ " the same warnings as raw HogQL queries. Also carries access control"
+ " warnings when a system-table query filters out objects the user can't"
+ " access."
+ ),
)
- properties: list[AnyPropertyFilterDiscriminated] | None = None
- rollout_percentage: float | None = None
- sort_key: str | None = None
- users_affected: float | None = None
- variant: str | None = None
-class FunnelCorrelationResponse(BaseModel):
+class FunnelsQueryResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- columns: list | None = None
error: str | None = Field(
default=None,
description=(
"Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
),
)
- hasMore: bool | None = None
hogql: str | None = Field(default=None, description="Generated HogQL query.")
- limit: int | None = None
modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- offset: int | None = None
query_status: QueryStatus | None = Field(
default=None,
description=("Query status indicates whether next to the provided data, a query is still running."),
@@ -17120,188 +16678,18 @@ class FunnelCorrelationResponse(BaseModel):
resolved_date_range: ResolvedDateRangeResponse | None = Field(
default=None, description="The date range used for the query"
)
- results: FunnelCorrelationResult
+ results: Any
timings: list[QueryTiming] | None = Field(
default=None,
description=("Measured timings for different parts of the query generation process"),
)
- types: list | None = None
- used_data_warehouse_sources: list[DataWarehouseSourceUsage] | None = Field(
- default=None,
- description=("Connector-synced data warehouse sources referenced by this query, if any."),
- )
- warnings: list[DataWarehouseSyncWarning | AccessControlFilterWarning] | None = Field(
- default=None,
- description=(
- "Warnings about data warehouse sources referenced by the query whose"
- " latest sync failed, is paused, hit a billing limit, or is otherwise"
- " stale. Results may not reflect current source data. Accumulated"
- " across every HogQL execution that contributes to this response — so"
- " insights backed by warehouse tables (Trends, Funnels, etc.) receive"
- " the same warnings as raw HogQL queries. Also carries access control"
- " warnings when a system-table query filters out objects the user can't"
- " access."
- ),
- )
-
-
-class FunnelExclusionActionsNode(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- custom_name: str | None = None
- fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None,
- description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
- )
- funnelFromStep: int
- funnelToStep: int
- id: int
- kind: Literal["ActionsNode"] = "ActionsNode"
- math: (
- BaseMathType
- | FunnelMathType
- | PropertyMathType
- | CountPerActorMathType
- | GroupMathType
- | ExperimentMetricMathType
- | CalendarHeatmapMathType
- | Literal["hogql"]
- | None
- ) = None
- math_group_type_index: MathGroupTypeIndex | None = None
- math_hogql: str | None = None
- math_multiplier: float | None = None
- math_property: str | None = None
- math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
- math_property_type: str | None = None
- name: str | None = None
- optionalInFunnel: bool | None = None
- properties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None, description="Properties configurable in the interface"
- )
- response: dict[str, Any] | None = None
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
-class FunnelExclusionEventsNode(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- custom_name: str | None = None
- event: str | None = Field(default=None, description="The event or `null` for all events.")
- fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None,
- description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
- )
- funnelFromStep: int
- funnelToStep: int
- kind: Literal["EventsNode"] = "EventsNode"
- limit: int | None = None
- math: (
- BaseMathType
- | FunnelMathType
- | PropertyMathType
- | CountPerActorMathType
- | GroupMathType
- | ExperimentMetricMathType
- | CalendarHeatmapMathType
- | Literal["hogql"]
- | None
- ) = None
- math_group_type_index: MathGroupTypeIndex | None = None
- math_hogql: str | None = None
- math_multiplier: float | None = None
- math_property: str | None = None
- math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
- math_property_type: str | None = None
- name: str | None = None
- optionalInFunnel: bool | None = None
- orderBy: list[str] | None = Field(default=None, description="Columns to order by")
- properties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None, description="Properties configurable in the interface"
- )
- response: dict[str, Any] | None = None
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
-class FunnelsDataWarehouseNode(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- aggregation_target_field: str
- custom_name: str | None = None
- dw_source_type: str | None = None
- fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None,
- description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
- )
- id: str
- id_field: str
- kind: Literal["FunnelsDataWarehouseNode"] = "FunnelsDataWarehouseNode"
- math: (
- BaseMathType
- | FunnelMathType
- | PropertyMathType
- | CountPerActorMathType
- | GroupMathType
- | ExperimentMetricMathType
- | CalendarHeatmapMathType
- | Literal["hogql"]
- | None
- ) = None
- math_group_type_index: MathGroupTypeIndex | None = None
- math_hogql: str | None = None
- math_multiplier: float | None = None
- math_property: str | None = None
- math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
- math_property_type: str | None = None
- name: str | None = None
- optionalInFunnel: bool | None = None
- properties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None, description="Properties configurable in the interface"
- )
- response: dict[str, Any] | None = None
- table_name: str
- timestamp_field: str
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
-class FunnelsQueryResponse(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- error: str | None = Field(
- default=None,
- description=(
- "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
- ),
- )
- hogql: str | None = Field(default=None, description="Generated HogQL query.")
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- query_status: QueryStatus | None = Field(
- default=None,
- description=("Query status indicates whether next to the provided data, a query is still running."),
- )
- resolved_compare_date_range: ResolvedDateRangeResponse | None = Field(
- default=None,
- description=("The resolved previous/comparison period date range, when comparing against another period"),
- )
- resolved_date_range: ResolvedDateRangeResponse | None = Field(
- default=None, description="The date range used for the query"
- )
- results: Any
- timings: list[QueryTiming] | None = Field(
- default=None,
- description=("Measured timings for different parts of the query generation process"),
- )
- total_median_conversion_time: float | None = Field(
- default=None,
- description=(
- "Median total conversion time across all completers, computed"
- " breakdown-agnostically for the Steps viz header."
- ),
- )
+ total_median_conversion_time: float | None = Field(
+ default=None,
+ description=(
+ "Median total conversion time across all completers, computed"
+ " breakdown-agnostically for the Steps viz header."
+ ),
+ )
used_data_warehouse_sources: list[DataWarehouseSourceUsage] | None = Field(
default=None,
description=("Connector-synced data warehouse sources referenced by this query, if any."),
@@ -17410,31 +16798,6 @@ class HBOSDetectorConfig(BaseModel):
)
-class HeatMapQuerySource(RootModel[EventsNode]):
- root: EventsNode
-
-
-class HogQLFilters(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- breakdownFilter: BreakdownFilter | None = Field(
- default=None,
- description=(
- "Breakdown consumed by the {filters.breakdown(...)} placeholder. Set from the dashboard-level breakdown."
- ),
- )
- dateRange: DateRange | None = None
- filterTestAccounts: bool | None = None
- interval: IntervalType | None = Field(
- default=None,
- description=(
- "Time granularity consumed by the {filters.interval} placeholder. Set from the dashboard-level interval."
- ),
- )
- properties: list[AnyPropertyFilterDiscriminated] | None = None
-
-
class HogQLMetadataResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -17594,47 +16957,6 @@ class LOFDetectorConfig(BaseModel):
)
-class LifecycleDataWarehouseNode(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- aggregation_target_field: str
- created_at_field: str
- custom_name: str | None = None
- fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None,
- description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
- )
- id: str
- kind: Literal["LifecycleDataWarehouseNode"] = "LifecycleDataWarehouseNode"
- math: (
- BaseMathType
- | FunnelMathType
- | PropertyMathType
- | CountPerActorMathType
- | GroupMathType
- | ExperimentMetricMathType
- | CalendarHeatmapMathType
- | Literal["hogql"]
- | None
- ) = None
- math_group_type_index: MathGroupTypeIndex | None = None
- math_hogql: str | None = None
- math_multiplier: float | None = None
- math_property: str | None = None
- math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
- math_property_type: str | None = None
- name: str | None = None
- optionalInFunnel: bool | None = None
- properties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None, description="Properties configurable in the interface"
- )
- response: dict[str, Any] | None = None
- table_name: str
- timestamp_field: str
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
class LifecycleQueryResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -18784,19 +18106,6 @@ class MarketingAnalyticsAttributionQueryResponse(BaseModel):
)
-class MarketingAnalyticsConfig(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- attribution_mode: AttributionMode | None = None
- attribution_window_days: float | None = None
- campaign_field_preferences: dict[str, CampaignFieldPreference] | None = None
- campaign_name_mappings: dict[str, dict[str, list[str]]] | None = None
- conversion_goals: list[ConversionGoalFilter1 | ConversionGoalFilter2 | ConversionGoalFilter3] | None = None
- custom_source_mappings: dict[str, list[str]] | None = None
- sources_map: dict[str, SourceMap] | None = None
-
-
class MarketingAnalyticsTableQueryResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -19110,29 +18419,6 @@ class PathsV2Results(BaseModel):
steps: list[PathsV2Step]
-class PersonsNode(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- cohort: int | None = None
- distinctId: str | None = None
- fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None,
- description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
- )
- kind: Literal["PersonsNode"] = "PersonsNode"
- limit: int | None = None
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- offset: int | None = None
- properties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None, description="Properties configurable in the interface"
- )
- response: dict[str, Any] | None = None
- search: str | None = None
- tags: QueryLogTags | None = None
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
class PlanningMessage(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -19143,45 +18429,6 @@ class PlanningMessage(BaseModel):
type: Literal["ai/planning"] = "ai/planning"
-class PropertyGroupFilterValue(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- type: FilterLogicalOperator
- values: list[AnyPropertyFilterOrGroupDiscriminated]
-
-
-# Variant of AnyPropertyFilterDiscriminated for PropertyGroupFilterValue's recursive `values`
-# field; sits after that class because the union references the class object.
-AnyPropertyFilterOrGroupDiscriminated = Annotated[
- Annotated[PropertyGroupFilterValue, pydantic.Tag("property_group")]
- | Annotated[EventPropertyFilter, pydantic.Tag("event")]
- | Annotated[PersonPropertyFilter, pydantic.Tag("person")]
- | Annotated[PersonMetadataPropertyFilter, pydantic.Tag("person_metadata")]
- | Annotated[ElementPropertyFilter, pydantic.Tag("element")]
- | Annotated[EventMetadataPropertyFilter, pydantic.Tag("event_metadata")]
- | Annotated[SessionPropertyFilter, pydantic.Tag("session")]
- | Annotated[CohortPropertyFilter, pydantic.Tag("cohort")]
- | Annotated[RecordingPropertyFilter, pydantic.Tag("recording")]
- | Annotated[LogEntryPropertyFilter, pydantic.Tag("log_entry")]
- | Annotated[GroupPropertyFilter, pydantic.Tag("group")]
- | Annotated[FeaturePropertyFilter, pydantic.Tag("feature")]
- | Annotated[FlagPropertyFilter, pydantic.Tag("flag")]
- | Annotated[HogQLPropertyFilter, pydantic.Tag("hogql")]
- | Annotated[EmptyPropertyFilter, pydantic.Tag("empty")]
- | Annotated[DataWarehousePropertyFilter, pydantic.Tag("data_warehouse")]
- | Annotated[DataWarehousePersonPropertyFilter, pydantic.Tag("data_warehouse_person_property")]
- | Annotated[ErrorTrackingIssueFilter, pydantic.Tag("error_tracking_issue")]
- | Annotated[LogPropertyFilter, pydantic.Tag("log")]
- | Annotated[MetricPropertyFilter, pydantic.Tag("metric_attribute")]
- | Annotated[SpanPropertyFilter, pydantic.Tag("span")]
- | Annotated[RevenueAnalyticsPropertyFilter, pydantic.Tag("revenue_analytics")]
- | Annotated[AccountCustomPropertyFilter, pydantic.Tag("account_custom_property")]
- | Annotated[WorkflowVariablePropertyFilter, pydantic.Tag("workflow_variable")],
- pydantic.Discriminator(property_filter_discriminator),
-]
-
-
class PropertyValuesQueryResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -23814,103 +23061,6 @@ class RecordingsQueryResponse(BaseModel):
)
-class RetentionEntity(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- aggregation_target_field: str | None = Field(
- default=None, description="Data warehouse field used as the actor identifier"
- )
- custom_name: str | None = None
- id: str | float | None = None
- kind: RetentionEntityKind | None = None
- name: str | None = None
- order: int | None = None
- properties: list[AnyPropertyFilterDiscriminated] | None = Field(default=None, description="filters on the event")
- table_name: str | None = Field(default=None, description="Data warehouse table name")
- timestamp_field: str | None = Field(default=None, description="Data warehouse timestamp field")
- type: EntityType | None = None
- uuid: str | None = None
-
-
-class RetentionFilter(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- aggregationProperty: str | None = Field(
- default=None,
- description="The property to aggregate when aggregationType is sum or avg",
- )
- aggregationPropertyType: AggregationPropertyType | None = Field(
- default=AggregationPropertyType.EVENT,
- description=("The type of property to aggregate on (event, person or data_warehouse). Defaults to event."),
- )
- aggregationType: AggregationType | None = Field(
- default=AggregationType.COUNT,
- description="The aggregation type to use for retention",
- )
- chartStyle: ChartStyle | None = Field(default=None, description="Chart rendering style overrides (line shape).")
- cohortLabelStartIndex: int | None = Field(
- default=0,
- description=(
- "Starting index used when labeling cohort columns (e.g. 0 for D0/D1/D2, 1"
- " for D1/D2/D3). Display-only — does not affect retention calculations."
- ),
- )
- cumulative: bool | None = None
- customAggregationTarget: bool | None = Field(
- default=None,
- description=(
- "For data warehouse based retention insights when the aggregation target"
- " can't be mapped to persons or groups."
- ),
- )
- dashboardDisplay: RetentionDashboardDisplayType | None = None
- display: ChartDisplayType | None = Field(default=None, description="controls the display of the retention graph")
- goalLines: list[GoalLine] | None = None
- meanRetentionCalculation: MeanRetentionCalculation | None = None
- minimumOccurrences: int | None = None
- period: RetentionPeriod | None = RetentionPeriod.DAY
- retentionCustomBrackets: list[float] | None = Field(
- default=None, description="Custom brackets for retention calculations"
- )
- retentionReference: RetentionReference | None = Field(
- default=None,
- description=("Whether retention is with regard to initial cohort size, or that of the previous period."),
- )
- retentionType: RetentionType | None = None
- returningEntity: RetentionEntity | None = None
- selectedInterval: int | None = Field(
- default=None,
- description=("The selected interval to display across all cohorts (null = show all intervals for each cohort)"),
- )
- showTrendLines: bool | None = None
- targetEntity: RetentionEntity | None = None
- timeWindowMode: TimeWindowMode | None = Field(
- default=None,
- description="The time window mode to use for retention calculations",
- )
- totalIntervals: int | None = 8
-
-
-class RetentionFilterLegacy(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- cumulative: bool | None = None
- mean_retention_calculation: MeanRetentionCalculation | None = None
- period: RetentionPeriod | None = None
- retention_reference: RetentionReference | None = Field(
- default=None,
- description=("Whether retention is with regard to initial cohort size, or that of the previous period."),
- )
- retention_type: RetentionType | None = None
- returning_entity: RetentionEntity | None = None
- show_mean: bool | None = None
- target_entity: RetentionEntity | None = None
- total_intervals: int | None = None
-
-
class RetentionQueryResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -24098,64 +23248,6 @@ class TeamTaxonomyQueryResponse(BaseModel):
)
-class TileFilters(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- breakdown_filter: BreakdownFilter | None = None
- date_from: str | None = None
- date_to: str | None = None
- explicitDate: bool | None = None
- filterTestAccounts: bool | None = None
- ignoreDashboardFilters: bool | None = Field(
- default=None,
- description=(
- "When true, this tile ignores every dashboard-level filter; the tile's own overrides still apply."
- ),
- )
- interval: IntervalType | None = None
- properties: list[AnyPropertyFilterDiscriminated] | None = None
-
-
-class TraceNeighborsQuery(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- dateRange: DateRange | None = None
- filterSupportTraces: bool | None = None
- filterTestAccounts: bool | None = None
- kind: Literal["TraceNeighborsQuery"] = "TraceNeighborsQuery"
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- properties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None, description="Properties configurable in the interface"
- )
- response: TraceNeighborsQueryResponse | None = None
- tags: QueryLogTags | None = None
- timestamp: str = Field(..., description="Timestamp of the current trace to find neighbors for")
- traceId: str = Field(..., description="ID of the current trace to find neighbors for")
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
-class TraceQuery(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- dateRange: DateRange | None = None
- includeSentiment: bool | None = Field(
- default=None,
- description=("Include stored sentiment evaluation results for the trace and its generations."),
- )
- kind: Literal["TraceQuery"] = "TraceQuery"
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- properties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None, description="Properties configurable in the interface"
- )
- response: TraceQueryResponse | None = None
- tags: QueryLogTags | None = None
- traceId: str
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
class TraceSpansSymbolStatsQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -24187,40 +23279,6 @@ class TraceSpansSymbolStatsQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class TracesQuery(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- dateRange: DateRange | None = None
- filterSupportTraces: bool | None = None
- filterTestAccounts: bool | None = None
- groupKey: str | None = None
- groupTypeIndex: int | None = None
- includeSentiment: bool | None = Field(
- default=None,
- description=("Include stored sentiment evaluation results for returned traces and direct generation events."),
- )
- kind: Literal["TracesQuery"] = "TracesQuery"
- limit: int | None = None
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- offset: int | None = None
- personId: str | None = Field(default=None, description="Person who performed the event")
- properties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None, description="Properties configurable in the interface"
- )
- randomOrder: bool | None = Field(
- default=None,
- description=(
- "Use random ordering instead of timestamp DESC. Useful for representative sampling to avoid recency bias."
- ),
- )
- response: TracesQueryResponse | None = None
- searchTerm: str | None = None
- showColumnConfigurator: bool | None = None
- tags: QueryLogTags | None = None
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
class UsageMetricsQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -24825,44 +23883,7 @@ class AccountsTableQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class ActionsNode(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- custom_name: str | None = None
- fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None,
- description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
- )
- id: int
- kind: Literal["ActionsNode"] = "ActionsNode"
- math: (
- BaseMathType
- | FunnelMathType
- | PropertyMathType
- | CountPerActorMathType
- | GroupMathType
- | ExperimentMetricMathType
- | CalendarHeatmapMathType
- | Literal["hogql"]
- | None
- ) = None
- math_group_type_index: MathGroupTypeIndex | None = None
- math_hogql: str | None = None
- math_multiplier: float | None = None
- math_property: str | None = None
- math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
- math_property_type: str | None = None
- name: str | None = None
- optionalInFunnel: bool | None = None
- properties: list[AnyPropertyFilterDiscriminated] | None = Field(
- default=None, description="Properties configurable in the interface"
- )
- response: dict[str, Any] | None = None
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
-class ActorsPropertyTaxonomyQuery(BaseModel):
+class ActorsPropertyTaxonomyQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -24876,14 +23897,6 @@ class ActorsPropertyTaxonomyQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class AnyDataWarehouseNode(RootModel[DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode]):
- root: DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode
-
-
-class AnyEntityNodeDataWarehouseNode(RootModel[EventsNode | ActionsNode | DataWarehouseNode]):
- root: EventsNode | ActionsNode | DataWarehouseNode
-
-
class AnyResponseType(
RootModel[
dict[str, Any]
@@ -25516,119 +24529,312 @@ class CachedWebVitalsQueryResponse(BaseModel):
)
-class CoreEvent(BaseModel):
+class ConversionGoalFilter1(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- category: CoreEventCategory = Field(
- ...,
- description="Category (acquisition, activation, retention, referral, revenue)",
+ conversion_goal_id: str
+ conversion_goal_name: str
+ counts_as_customer: bool | None = Field(
+ default=None,
+ description=(
+ "Marks this goal as customer-defining: a conversion here means the person"
+ " became a customer (e.g. a payment or subscription), not an intermediate"
+ " step like a sign up. It gates customer-based metrics such as CAC, whose"
+ " denominator is this goal's conversions — its count, or its unique"
+ " converters under dau math. That equals new customers only for a"
+ " once-per-person moment: a repeatable event such as a monthly payment"
+ " counts every time and understates cost per customer, and dedup under dau"
+ " is per result row, so someone converting under two sources counts twice"
+ " at channel level. Defaults to false."
+ ),
)
- description: str | None = Field(default=None, description="Optional description")
- filter: EventsNode | ActionsNode | DataWarehouseNode = Field(
- ...,
+ counts_as_revenue: bool | None = Field(
+ default=None,
description=(
- "Filter configuration - event, action, or data warehouse node (includes math support for sum, etc.)"
+ "Marks this goal as revenue-bearing: the value of a conversion is a"
+ " monetary amount, not a count or an arbitrary numeric property. It gates"
+ " revenue metrics such as ROAS and LTV:CAC. The amount itself comes from"
+ " math_property, and its currency from math_property_revenue_currency, the"
+ " same shape Revenue analytics uses for revenue events. Independent of"
+ " counts_as_customer: a purchase is usually both, a trial signup neither."
+ " Defaults to false."
),
)
- id: str = Field(..., description="Unique identifier")
- name: str = Field(..., description="Display name")
-
-
-class CustomerAnalyticsConfig(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
+ custom_name: str | None = None
+ event: str | None = Field(default=None, description="The event or `null` for all events.")
+ fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None,
+ description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
)
- account_group_type_index: int | None = None
- activity_event: EventsNode | ActionsNode
- payment_event: EventsNode | ActionsNode
- signup_event: EventsNode | ActionsNode
- signup_pageview_event: EventsNode | ActionsNode
- subscription_event: EventsNode | ActionsNode
+ kind: Literal["EventsNode"] = "EventsNode"
+ limit: int | None = None
+ math: (
+ BaseMathType
+ | FunnelMathType
+ | PropertyMathType
+ | CountPerActorMathType
+ | GroupMathType
+ | ExperimentMetricMathType
+ | CalendarHeatmapMathType
+ | Literal["hogql"]
+ | None
+ ) = None
+ math_group_type_index: MathGroupTypeIndex | None = None
+ math_hogql: str | None = None
+ math_multiplier: float | None = None
+ math_property: str | None = None
+ math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
+ math_property_type: str | None = None
+ name: str | None = None
+ optionalInFunnel: bool | None = None
+ orderBy: list[str] | None = Field(default=None, description="Columns to order by")
+ properties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None, description="Properties configurable in the interface"
+ )
+ response: dict[str, Any] | None = None
+ schema_map: dict[str, str | Any]
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class Response3(BaseModel):
+class ConversionGoalFilter2(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- clickhouse: str | None = Field(default=None, description="Executed ClickHouse query")
- columns: list | None = Field(default=None, description="Returned columns")
- error: str | None = Field(
+ conversion_goal_id: str
+ conversion_goal_name: str
+ counts_as_customer: bool | None = Field(
default=None,
description=(
- "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
+ "Marks this goal as customer-defining: a conversion here means the person"
+ " became a customer (e.g. a payment or subscription), not an intermediate"
+ " step like a sign up. It gates customer-based metrics such as CAC, whose"
+ " denominator is this goal's conversions — its count, or its unique"
+ " converters under dau math. That equals new customers only for a"
+ " once-per-person moment: a repeatable event such as a monthly payment"
+ " counts every time and understates cost per customer, and dedup under dau"
+ " is per result row, so someone converting under two sources counts twice"
+ " at channel level. Defaults to false."
),
)
- explain: list[str] | None = Field(default=None, description="Query explanation output")
- hasMore: bool | None = None
- hogql: str | None = Field(default=None, description="Generated HogQL query.")
- limit: int | None = None
- metadata: HogQLMetadataResponse | None = Field(default=None, description="Query metadata output")
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- offset: int | None = None
- query: str | None = Field(default=None, description="Input query string")
- query_status: QueryStatus | None = Field(
- default=None,
- description=("Query status indicates whether next to the provided data, a query is still running."),
- )
- resolved_compare_date_range: ResolvedDateRangeResponse | None = Field(
- default=None,
- description=("The resolved previous/comparison period date range, when comparing against another period"),
- )
- resolved_date_range: ResolvedDateRangeResponse | None = Field(
- default=None, description="The date range used for the query"
- )
- results: list
- timings: list[QueryTiming] | None = Field(
+ counts_as_revenue: bool | None = Field(
default=None,
- description=("Measured timings for different parts of the query generation process"),
+ description=(
+ "Marks this goal as revenue-bearing: the value of a conversion is a"
+ " monetary amount, not a count or an arbitrary numeric property. It gates"
+ " revenue metrics such as ROAS and LTV:CAC. The amount itself comes from"
+ " math_property, and its currency from math_property_revenue_currency, the"
+ " same shape Revenue analytics uses for revenue events. Independent of"
+ " counts_as_customer: a purchase is usually both, a trial signup neither."
+ " Defaults to false."
+ ),
)
- types: list | None = Field(default=None, description="Types of returned columns")
- used_data_warehouse_sources: list[DataWarehouseSourceUsage] | None = Field(
+ custom_name: str | None = None
+ fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
default=None,
- description=("Connector-synced data warehouse sources referenced by this query, if any."),
+ description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
)
- warnings: list[DataWarehouseSyncWarning | AccessControlFilterWarning] | None = Field(
- default=None,
- description=(
- "Warnings about data warehouse sources referenced by the query whose"
- " latest sync failed, is paused, hit a billing limit, or is otherwise"
- " stale. Results may not reflect current source data. Also carries"
- " access control warnings when a system-table query filters out objects"
- " the user can't access."
- ),
+ id: int
+ kind: Literal["ActionsNode"] = "ActionsNode"
+ math: (
+ BaseMathType
+ | FunnelMathType
+ | PropertyMathType
+ | CountPerActorMathType
+ | GroupMathType
+ | ExperimentMetricMathType
+ | CalendarHeatmapMathType
+ | Literal["hogql"]
+ | None
+ ) = None
+ math_group_type_index: MathGroupTypeIndex | None = None
+ math_hogql: str | None = None
+ math_multiplier: float | None = None
+ math_property: str | None = None
+ math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
+ math_property_type: str | None = None
+ name: str | None = None
+ optionalInFunnel: bool | None = None
+ properties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None, description="Properties configurable in the interface"
)
+ response: dict[str, Any] | None = None
+ schema_map: dict[str, str | Any]
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class Response15(BaseModel):
+class ConversionGoalFilter3(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- columns: list[str] | None = None
- error: str | None = Field(
+ conversion_goal_id: str
+ conversion_goal_name: str
+ counts_as_customer: bool | None = Field(
default=None,
description=(
- "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
+ "Marks this goal as customer-defining: a conversion here means the person"
+ " became a customer (e.g. a payment or subscription), not an intermediate"
+ " step like a sign up. It gates customer-based metrics such as CAC, whose"
+ " denominator is this goal's conversions — its count, or its unique"
+ " converters under dau math. That equals new customers only for a"
+ " once-per-person moment: a repeatable event such as a monthly payment"
+ " counts every time and understates cost per customer, and dedup under dau"
+ " is per result row, so someone converting under two sources counts twice"
+ " at channel level. Defaults to false."
),
)
- hasMore: bool | None = None
- hogql: str | None = Field(default=None, description="Generated HogQL query.")
- limit: int | None = None
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- offset: int | None = None
- query_status: QueryStatus | None = Field(
+ counts_as_revenue: bool | None = Field(
default=None,
- description=("Query status indicates whether next to the provided data, a query is still running."),
+ description=(
+ "Marks this goal as revenue-bearing: the value of a conversion is a"
+ " monetary amount, not a count or an arbitrary numeric property. It gates"
+ " revenue metrics such as ROAS and LTV:CAC. The amount itself comes from"
+ " math_property, and its currency from math_property_revenue_currency, the"
+ " same shape Revenue analytics uses for revenue events. Independent of"
+ " counts_as_customer: a purchase is usually both, a trial signup neither."
+ " Defaults to false."
+ ),
)
- resolved_compare_date_range: ResolvedDateRangeResponse | None = Field(
+ custom_name: str | None = None
+ distinct_id_field: str
+ dw_source_type: str | None = None
+ fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
default=None,
- description=("The resolved previous/comparison period date range, when comparing against another period"),
- )
- resolved_date_range: ResolvedDateRangeResponse | None = Field(
- default=None, description="The date range used for the query"
+ description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
)
- results: list[ErrorTrackingIssue]
- timings: list[QueryTiming] | None = Field(
+ id: str
+ id_field: str
+ kind: Literal["DataWarehouseNode"] = "DataWarehouseNode"
+ math: (
+ BaseMathType
+ | FunnelMathType
+ | PropertyMathType
+ | CountPerActorMathType
+ | GroupMathType
+ | ExperimentMetricMathType
+ | CalendarHeatmapMathType
+ | Literal["hogql"]
+ | None
+ ) = None
+ math_group_type_index: MathGroupTypeIndex | None = None
+ math_hogql: str | None = None
+ math_multiplier: float | None = None
+ math_property: str | None = None
+ math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
+ math_property_type: str | None = None
+ name: str | None = None
+ optionalInFunnel: bool | None = None
+ properties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None, description="Properties configurable in the interface"
+ )
+ response: dict[str, Any] | None = None
+ schema_map: dict[str, str | Any]
+ table_name: str
+ timestamp_field: str
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
+class DashboardFilter(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ breakdown_filter: BreakdownFilter | None = None
+ date_from: str | None = None
+ date_to: str | None = None
+ explicitDate: bool | None = None
+ filterTestAccounts: bool | None = Field(
+ default=None,
+ description=("Tri-state test-account override. Null/absent = inherit; true = force on; false = force off."),
+ )
+ interval: IntervalType | None = Field(
+ default=None,
+ description=("Time granularity forced onto every insight that supports one. Absent/null = inherit."),
+ )
+ properties: list[AnyPropertyFilterDiscriminated] | None = None
+
+
+class Response3(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ clickhouse: str | None = Field(default=None, description="Executed ClickHouse query")
+ columns: list | None = Field(default=None, description="Returned columns")
+ error: str | None = Field(
+ default=None,
+ description=(
+ "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
+ ),
+ )
+ explain: list[str] | None = Field(default=None, description="Query explanation output")
+ hasMore: bool | None = None
+ hogql: str | None = Field(default=None, description="Generated HogQL query.")
+ limit: int | None = None
+ metadata: HogQLMetadataResponse | None = Field(default=None, description="Query metadata output")
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ offset: int | None = None
+ query: str | None = Field(default=None, description="Input query string")
+ query_status: QueryStatus | None = Field(
+ default=None,
+ description=("Query status indicates whether next to the provided data, a query is still running."),
+ )
+ resolved_compare_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None,
+ description=("The resolved previous/comparison period date range, when comparing against another period"),
+ )
+ resolved_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None, description="The date range used for the query"
+ )
+ results: list
+ timings: list[QueryTiming] | None = Field(
+ default=None,
+ description=("Measured timings for different parts of the query generation process"),
+ )
+ types: list | None = Field(default=None, description="Types of returned columns")
+ used_data_warehouse_sources: list[DataWarehouseSourceUsage] | None = Field(
+ default=None,
+ description=("Connector-synced data warehouse sources referenced by this query, if any."),
+ )
+ warnings: list[DataWarehouseSyncWarning | AccessControlFilterWarning] | None = Field(
+ default=None,
+ description=(
+ "Warnings about data warehouse sources referenced by the query whose"
+ " latest sync failed, is paused, hit a billing limit, or is otherwise"
+ " stale. Results may not reflect current source data. Also carries"
+ " access control warnings when a system-table query filters out objects"
+ " the user can't access."
+ ),
+ )
+
+
+class Response15(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ columns: list[str] | None = None
+ error: str | None = Field(
+ default=None,
+ description=(
+ "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
+ ),
+ )
+ hasMore: bool | None = None
+ hogql: str | None = Field(default=None, description="Generated HogQL query.")
+ limit: int | None = None
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ offset: int | None = None
+ query_status: QueryStatus | None = Field(
+ default=None,
+ description=("Query status indicates whether next to the provided data, a query is still running."),
+ )
+ resolved_compare_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None,
+ description=("The resolved previous/comparison period date range, when comparing against another period"),
+ )
+ resolved_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None, description="The date range used for the query"
+ )
+ results: list[ErrorTrackingIssue]
+ timings: list[QueryTiming] | None = Field(
default=None,
description=("Measured timings for different parts of the query generation process"),
)
@@ -25651,6 +24857,48 @@ class Response15(BaseModel):
)
+class DataWarehouseNode(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ custom_name: str | None = None
+ distinct_id_field: str
+ dw_source_type: str | None = None
+ fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None,
+ description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
+ )
+ id: str
+ id_field: str
+ kind: Literal["DataWarehouseNode"] = "DataWarehouseNode"
+ math: (
+ BaseMathType
+ | FunnelMathType
+ | PropertyMathType
+ | CountPerActorMathType
+ | GroupMathType
+ | ExperimentMetricMathType
+ | CalendarHeatmapMathType
+ | Literal["hogql"]
+ | None
+ ) = None
+ math_group_type_index: MathGroupTypeIndex | None = None
+ math_hogql: str | None = None
+ math_multiplier: float | None = None
+ math_property: str | None = None
+ math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
+ math_property_type: str | None = None
+ name: str | None = None
+ optionalInFunnel: bool | None = None
+ properties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None, description="Properties configurable in the interface"
+ )
+ response: dict[str, Any] | None = None
+ table_name: str
+ timestamp_field: str
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
class DocumentSimilarityQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -25674,6 +24922,52 @@ class DocumentSimilarityQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+class EndpointRunRequest(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ client_query_id: str | None = Field(
+ default=None,
+ description=("Client provided query ID. Can be used to retrieve the status or cancel the query."),
+ )
+ debug: bool | None = Field(
+ default=False,
+ description=("Whether to include debug information (such as the executed HogQL) in the response."),
+ )
+ filters_override: DashboardFilter | None = None
+ limit: int | None = Field(
+ default=None,
+ description=("Maximum number of results to return. If not provided, returns all results."),
+ )
+ offset: int | None = Field(
+ default=None,
+ description=(
+ "Number of results to skip. Must be used together with limit. Only supported for HogQL endpoints."
+ ),
+ )
+ refresh: EndpointRefreshMode | None = EndpointRefreshMode.CACHE
+ variables: dict[str, Any] | None = Field(
+ default=None,
+ description=(
+ "Variables to parameterize the endpoint query. The key is the variable name"
+ " and the value is the variable value.\n\nFor HogQL endpoints: Keys must"
+ " match a variable `code_name` defined in the query (referenced as"
+ ' `{variables.code_name}`). Example: `{"event_name": "$pageview"}`\n\nFor'
+ " non-materialized insight endpoints (e.g. TrendsQuery): - `date_from`"
+ " and `date_to` are built-in variables that filter the date range. "
+ ' Example: `{"date_from": "2024-01-01", "date_to": "2024-01-31"}`\n\nFor'
+ " materialized insight endpoints: - Use the breakdown property name as"
+ ' the key to filter by breakdown value. Example: `{"$browser":'
+ ' "Chrome"}` - `date_from`/`date_to` are not supported on materialized'
+ " insight endpoints.\n\nUnknown variable names will return a 400 error."
+ ),
+ )
+ version: int | None = Field(
+ default=None,
+ description=("Specific endpoint version to execute. If not provided, the latest version is used."),
+ )
+
+
class EndpointsUsageOverviewQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -25752,40 +25046,76 @@ class EnsembleDetectorConfig(BaseModel):
type: Literal["ensemble"] = "ensemble"
-class ErrorTrackingCorrelatedIssue(BaseModel):
+class EntityNode(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- assignee: ErrorTrackingIssueAssignee | None = None
- cohort: ErrorTrackingIssueCohort | None = None
- description: str | None = None
- event: str
- external_issues: list[ErrorTrackingExternalReference] | None = None
- first_seen: AwareDatetime
- id: str
- last_seen: AwareDatetime
- library: str | None = None
- name: str | None = None
- odds_ratio: float
- population: Population
- severity: ErrorTrackingQueryIssueSeverity | None = None
- status: ErrorTrackingIssueStatus
-
-
-class ErrorTrackingFingerprintProjectionQuery(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
+ custom_name: str | None = None
+ fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None,
+ description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
)
- issueId: str
- kind: Literal["ErrorTrackingFingerprintProjectionQuery"] = "ErrorTrackingFingerprintProjectionQuery"
- modelName: EmbeddingModelName | None = None
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- rendering: str | None = None
- response: ErrorTrackingFingerprintProjectionQueryResponse | None = None
- tags: QueryLogTags | None = None
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
+ kind: NodeKind
+ math: (
+ BaseMathType
+ | FunnelMathType
+ | PropertyMathType
+ | CountPerActorMathType
+ | GroupMathType
+ | ExperimentMetricMathType
+ | CalendarHeatmapMathType
+ | Literal["hogql"]
+ | None
+ ) = None
+ math_group_type_index: MathGroupTypeIndex | None = None
+ math_hogql: str | None = None
+ math_multiplier: float | None = None
+ math_property: str | None = None
+ math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
+ math_property_type: str | None = None
+ name: str | None = None
+ optionalInFunnel: bool | None = None
+ properties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None, description="Properties configurable in the interface"
+ )
+ response: dict[str, Any] | None = None
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
+class ErrorTrackingCorrelatedIssue(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ assignee: ErrorTrackingIssueAssignee | None = None
+ cohort: ErrorTrackingIssueCohort | None = None
+ description: str | None = None
+ event: str
+ external_issues: list[ErrorTrackingExternalReference] | None = None
+ first_seen: AwareDatetime
+ id: str
+ last_seen: AwareDatetime
+ library: str | None = None
+ name: str | None = None
+ odds_ratio: float
+ population: Population
+ severity: ErrorTrackingQueryIssueSeverity | None = None
+ status: ErrorTrackingIssueStatus
+
+
+class ErrorTrackingFingerprintProjectionQuery(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ issueId: str
+ kind: Literal["ErrorTrackingFingerprintProjectionQuery"] = "ErrorTrackingFingerprintProjectionQuery"
+ modelName: EmbeddingModelName | None = None
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ rendering: str | None = None
+ response: ErrorTrackingFingerprintProjectionQueryResponse | None = None
+ tags: QueryLogTags | None = None
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
class ErrorTrackingIssueCorrelationQueryResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -25837,6 +25167,27 @@ class ErrorTrackingIssueCorrelationQueryResponse(BaseModel):
)
+class ErrorTrackingIssueFilteringToolOutput(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ dateRange: DateRange | None = None
+ filterTestAccounts: bool | None = None
+ newFilters: list[AnyPropertyFilterDiscriminated] | None = None
+ orderBy: ErrorTrackingOrderBy = Field(..., description="Field to sort results by.")
+ orderDirection: OrderDirection2 | None = Field(default=None, description="Sort direction.")
+ removedFilterIndexes: list[int] | None = None
+ searchQuery: str | None = Field(
+ default=None,
+ description=("Free-text search across exception type, message, and stack frames."),
+ )
+ status: ErrorTrackingIssueStatus | str | None = Field(
+ default=None,
+ description="Filter by issue status.",
+ title="ErrorTrackingQueryStatus",
+ )
+
+
class ErrorTrackingSimilarIssuesQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -25872,282 +25223,512 @@ class EventTaxonomyQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class ExperimentExposureCriteria(BaseModel):
+class EventsNode(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- activation_config: ExperimentEventExposureConfig | ActionsNode | None = Field(
+ custom_name: str | None = None
+ event: str | None = Field(default=None, description="The event or `null` for all events.")
+ fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
default=None,
- description=(
- "Additional event (or action) an entity must emit at/after their first"
- " default exposure event before they count as exposed; exposure time"
- " becomes this event's timestamp. Only valid with the default exposure"
- " event, not a custom `exposure_config`."
- ),
+ description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
)
- exposure_config: ExperimentEventExposureConfig | ActionsNode | None = None
- filterTestAccounts: bool | None = None
- multiple_variant_handling: MultipleVariantHandling | None = None
+ kind: Literal["EventsNode"] = "EventsNode"
+ limit: int | None = None
+ math: (
+ BaseMathType
+ | FunnelMathType
+ | PropertyMathType
+ | CountPerActorMathType
+ | GroupMathType
+ | ExperimentMetricMathType
+ | CalendarHeatmapMathType
+ | Literal["hogql"]
+ | None
+ ) = None
+ math_group_type_index: MathGroupTypeIndex | None = None
+ math_hogql: str | None = None
+ math_multiplier: float | None = None
+ math_property: str | None = None
+ math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
+ math_property_type: str | None = None
+ name: str | None = None
+ optionalInFunnel: bool | None = None
+ orderBy: list[str] | None = Field(default=None, description="Columns to order by")
+ properties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None, description="Properties configurable in the interface"
+ )
+ response: dict[str, Any] | None = None
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class ExperimentHoldoutType(BaseModel):
+class EventsQueryActionStep(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- created_at: str | None = None
- created_by: UserBasicType | None = None
- description: str | None = None
- filters: list[FeatureFlagGroupType]
- id: int
- name: str
- updated_at: str | None = None
- user_access_level: AccessControlLevel | None = Field(
- default=None,
- description=("Read-only, server-computed effective access level; absent on a not-yet-created holdout."),
- )
+ event: str | None = None
+ href: str | None = None
+ href_matching: HrefMatching | None = None
+ properties: list[AnyPropertyFilterDiscriminated] | None = None
+ selector: str | None = None
+ tag_name: str | None = None
+ text: str | None = None
+ text_matching: TextMatching | None = None
+ url: str | None = None
+ url_matching: UrlMatching | None = None
-class FunnelsFilter(BaseModel):
+class ExperimentApiExposureConfig(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- binCount: int | None = None
- breakdownAttributionType: BreakdownAttributionType | None = BreakdownAttributionType.FIRST_TOUCH
- breakdownAttributionValue: int | None = None
- breakdownSorting: str | None = Field(
- default=None,
- description=("Breakdown table sorting. Format: 'column_key' or '-column_key' (descending)"),
- )
- chartStyle: ChartStyle | None = Field(
- default=None,
- description=("Chart rendering style overrides (line shape). Only applies to historical-trends funnels."),
- )
- customAggregationTarget: bool | None = Field(
+ event: str | None = Field(
default=None,
- description=(
- "For data warehouse based funnel insights when the aggregation target can't be mapped to persons or groups."
- ),
+ description=("Custom exposure event name. Required when kind is 'ExperimentEventExposureConfig'."),
)
- exclusions: (
- list[Annotated[FunnelExclusionEventsNode | FunnelExclusionActionsNode, Field(discriminator="kind")]] | None
- ) = []
- funnelAggregateByHogQL: str | None = None
- funnelFromStep: int | None = None
- funnelOrderType: StepOrderValue | None = StepOrderValue.ORDERED
- funnelStepReference: FunnelStepReference | None = FunnelStepReference.TOTAL
- funnelToStep: int | None = Field(
+ id: int | None = Field(default=None, description="Action ID. Required when kind is 'ActionsNode'.")
+ kind: Kind1 | None = Field(
default=None,
- description=("To select the range of steps for trends & time to convert funnels, 0-indexed"),
- )
- funnelVizType: FunnelVizType | None = FunnelVizType.STEPS
- funnelWindowInterval: int | None = 14
- funnelWindowIntervalUnit: FunnelConversionWindowTimeUnit | None = FunnelConversionWindowTimeUnit.DAY
- goalLines: list[GoalLine] | None = Field(default=None, description="Goal Lines")
- hiddenLegendBreakdowns: list[str] | None = None
- hideIncompleteConversionWindowPeriods: bool | None = Field(
- default=False,
description=(
- "Trends only: hide periods whose conversion window has not fully elapsed"
- " yet, so the recent tail of the trend isn't dragged down by entrants who"
- " still have time to convert."
+ "Defaults to 'ExperimentEventExposureConfig' when omitted. Pass 'ActionsNode' for an action-based exposure."
),
)
- layout: FunnelLayout | None = FunnelLayout.VERTICAL
- legendPosition: LegendPosition | None = Field(
- default=LegendPosition.BOTTOM,
- description=("Where the in-chart legend sits relative to the plot. Only applies to the in-chart legend."),
- )
- resultCustomizations: dict[str, ResultCustomizationByValue] | None = Field(
- default=None,
- description="Customizations for the appearance of result datasets.",
- )
- showAnnotations: bool | None = Field(
- default=True,
- description=("Whether to render annotations on the chart. Only applies to historical-trends funnels."),
- )
- showLegend: bool | None = Field(
- default=False,
+ properties: list[AnyPropertyFilterDiscriminated] = Field(
+ ...,
description=(
- "Whether to show a legend describing the series. The legend only renders"
- " when the funnel has multiple series. Only applies to historical-trends"
- " funnels."
+ "Property filters (event, person, and other supported types). Pass an empty array if no filters needed."
),
)
- showTrendLines: bool | None = Field(
- default=None,
- description=("Display linear regression trend lines on the chart (only for historical trends viz)"),
- )
- showValuesOnSeries: bool | None = False
- useUdf: bool | None = None
-
-
-class GroupsQuery(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- group_type_index: int
- kind: Literal["GroupsQuery"] = "GroupsQuery"
- limit: int | None = None
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- offset: int | None = None
- orderBy: list[str] | None = None
- properties: list[GroupPropertyFilter | HogQLPropertyFilter] | None = None
- response: GroupsQueryResponse | None = None
- search: str | None = None
- select: list[str] | None = None
- tags: QueryLogTags | None = None
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class HogQLQuery(BaseModel):
+class ExperimentApiExposureCriteria(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- connectionId: str | None = Field(
+ activation_config: ExperimentApiExposureConfig | None = Field(
default=None,
description=(
- "Optional id of a direct-query-capable external data source to run against"
- " instead of ClickHouse — a pure-direct source, or a synced source with"
- " direct query enabled."
+ "Additional event (or action) an entity must emit at/after their first"
+ " default exposure event before they count as exposed; exposure time"
+ " becomes this event's timestamp. Only valid with the default exposure"
+ " event, not a custom `exposure_config`."
),
)
- explain: bool | None = None
- filters: HogQLFilters | None = Field(
+ exposure_config: ExperimentApiExposureConfig | None = None
+ filterTestAccounts: bool | None = None
+ multiple_variant_handling: MultipleVariantHandling | None = Field(
default=None,
description=(
- "Extra filters applied to query via {filters} or the column-bound {filters(expr AS key, ...)} placeholder"
+ "How to handle entities exposed to multiple variants. 'exclude' (default)"
+ " drops them from the analysis; 'first_seen' assigns them to the variant"
+ " from their earliest exposure."
),
)
- kind: Literal["HogQLQuery"] = "HogQLQuery"
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- name: str | None = Field(default=None, description="Client provided name of the query")
- query: str
- response: HogQLQueryResponse | None = None
- sendRawQuery: bool | None = Field(
- default=None,
- description=("Run the selected connection query directly without translating it through HogQL first"),
+
+
+class ExperimentDataWarehouseNode(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
)
- tags: QueryLogTags | None = None
- values: dict[str, Any] | None = Field(
+ custom_name: str | None = None
+ data_warehouse_join_key: str
+ events_join_key: str
+ fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
default=None,
- description=("Constant values that can be referenced with the {placeholder} syntax in the query"),
+ description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
)
- variables: dict[str, HogQLVariable] | None = Field(
- default=None, description="Variables to be substituted into the query"
+ kind: Literal["ExperimentDataWarehouseNode"] = "ExperimentDataWarehouseNode"
+ math: (
+ BaseMathType
+ | FunnelMathType
+ | PropertyMathType
+ | CountPerActorMathType
+ | GroupMathType
+ | ExperimentMetricMathType
+ | CalendarHeatmapMathType
+ | Literal["hogql"]
+ | None
+ ) = None
+ math_group_type_index: MathGroupTypeIndex | None = None
+ math_hogql: str | None = None
+ math_multiplier: float | None = None
+ math_property: str | None = None
+ math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
+ math_property_type: str | None = None
+ name: str | None = None
+ optionalInFunnel: bool | None = None
+ properties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None, description="Properties configurable in the interface"
)
+ response: dict[str, Any] | None = None
+ table_name: str
+ timestamp_field: str
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class InsightActorsQueryOptionsResponse(BaseModel):
+class ExperimentEventExposureConfig(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- breakdown: list[BreakdownItem] | None = None
- breakdowns: list[MultipleBreakdownOptions] | None = None
- compare: list[CompareItem] | None = None
- day: list[DayItem] | None = None
- interval: list[IntervalItem] | None = None
- series: list[Series] | None = None
- status: list[StatusItem] | None = None
- warnings: list[DataWarehouseSyncWarning] | None = Field(
- default=None,
- description=("Data warehouse sync warnings — see AnalyticsQueryResponseBase.warnings for semantics."),
- )
+ event: str
+ kind: Literal["ExperimentEventExposureConfig"] = "ExperimentEventExposureConfig"
+ properties: list[AnyPropertyFilterDiscriminated]
+ response: dict[str, Any] | None = None
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class InsightFilter(
- RootModel[
- TrendsFilter
- | FunnelsFilter
- | RetentionFilter
- | PathsFilter
- | PathsV2Filter
- | StickinessFilter
- | LifecycleFilter
- | CalendarHeatmapFilter
- | list[EventPropertyFilter | PersonPropertyFilter | SessionPropertyFilter | CohortPropertyFilter]
- ]
-):
- root: (
- TrendsFilter
- | FunnelsFilter
- | RetentionFilter
- | PathsFilter
- | PathsV2Filter
- | StickinessFilter
- | LifecycleFilter
- | CalendarHeatmapFilter
- | list[EventPropertyFilter | PersonPropertyFilter | SessionPropertyFilter | CohortPropertyFilter]
+class FeatureFlagGroupType(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ aggregation_group_type_index: int | None = None
+ description: str | None = None
+ exposure_frozen: bool | None = Field(
+ default=None,
+ description=(
+ "Stamped by the experiment exposure freeze: the group carries a machine-added snapshot-cohort condition."
+ ),
+ )
+ exposure_frozen_cohort: float | None = Field(
+ default=None,
+ description=("Snapshot cohort the exposure freeze AND'd into this group's properties."),
)
+ properties: list[AnyPropertyFilterDiscriminated] | None = None
+ rollout_percentage: float | None = None
+ sort_key: str | None = None
+ users_affected: float | None = None
+ variant: str | None = None
-class MCPHarnessBreakdownQuery(BaseModel):
+class FunnelExclusionActionsNode(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- dateRange: DateRange | None = None
- filterTestAccounts: bool | None = None
- kind: Literal["MCPHarnessBreakdownQuery"] = "MCPHarnessBreakdownQuery"
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- properties: list[AnyPropertyFilterDiscriminated] | None = None
- response: MCPHarnessBreakdownQueryResponse | None = None
- tags: QueryLogTags | None = None
- toolName: str | None = Field(
+ custom_name: str | None = None
+ fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
default=None,
- description=('When set, scope to a single effective tool\'s new-SDK calls (the per-tool "By harness" table).'),
+ description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
+ )
+ funnelFromStep: int
+ funnelToStep: int
+ id: int
+ kind: Literal["ActionsNode"] = "ActionsNode"
+ math: (
+ BaseMathType
+ | FunnelMathType
+ | PropertyMathType
+ | CountPerActorMathType
+ | GroupMathType
+ | ExperimentMetricMathType
+ | CalendarHeatmapMathType
+ | Literal["hogql"]
+ | None
+ ) = None
+ math_group_type_index: MathGroupTypeIndex | None = None
+ math_hogql: str | None = None
+ math_multiplier: float | None = None
+ math_property: str | None = None
+ math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
+ math_property_type: str | None = None
+ name: str | None = None
+ optionalInFunnel: bool | None = None
+ properties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None, description="Properties configurable in the interface"
)
+ response: dict[str, Any] | None = None
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class MCPToolCallBreakdownQuery(BaseModel):
+class FunnelExclusionEventsNode(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- dateRange: DateRange | None = None
- filterTestAccounts: bool | None = None
- interval: IntervalType | None = Field(
+ custom_name: str | None = None
+ event: str | None = Field(default=None, description="The event or `null` for all events.")
+ fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
default=None,
- description=("Bucket granularity; the frontend passes getDefaultInterval. Defaults to day."),
+ description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
)
- kind: Literal["MCPToolCallBreakdownQuery"] = "MCPToolCallBreakdownQuery"
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- properties: list[AnyPropertyFilterDiscriminated] | None = None
- response: MCPToolCallBreakdownQueryResponse | None = None
- tags: QueryLogTags | None = None
+ funnelFromStep: int
+ funnelToStep: int
+ kind: Literal["EventsNode"] = "EventsNode"
+ limit: int | None = None
+ math: (
+ BaseMathType
+ | FunnelMathType
+ | PropertyMathType
+ | CountPerActorMathType
+ | GroupMathType
+ | ExperimentMetricMathType
+ | CalendarHeatmapMathType
+ | Literal["hogql"]
+ | None
+ ) = None
+ math_group_type_index: MathGroupTypeIndex | None = None
+ math_hogql: str | None = None
+ math_multiplier: float | None = None
+ math_property: str | None = None
+ math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
+ math_property_type: str | None = None
+ name: str | None = None
+ optionalInFunnel: bool | None = None
+ orderBy: list[str] | None = Field(default=None, description="Columns to order by")
+ properties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None, description="Properties configurable in the interface"
+ )
+ response: dict[str, Any] | None = None
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class MCPToolCallsAndErrorsQuery(BaseModel):
+class FunnelsDataWarehouseNode(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- dateRange: DateRange | None = None
- filterTestAccounts: bool | None = None
- interval: IntervalType | None = Field(
+ aggregation_target_field: str
+ custom_name: str | None = None
+ dw_source_type: str | None = None
+ fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
default=None,
- description=("Bucket granularity; the frontend passes getDefaultInterval. Defaults to day."),
+ description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
)
- kind: Literal["MCPToolCallsAndErrorsQuery"] = "MCPToolCallsAndErrorsQuery"
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- properties: list[AnyPropertyFilterDiscriminated] | None = None
- response: MCPToolCallsAndErrorsQueryResponse | None = None
- tags: QueryLogTags | None = None
+ id: str
+ id_field: str
+ kind: Literal["FunnelsDataWarehouseNode"] = "FunnelsDataWarehouseNode"
+ math: (
+ BaseMathType
+ | FunnelMathType
+ | PropertyMathType
+ | CountPerActorMathType
+ | GroupMathType
+ | ExperimentMetricMathType
+ | CalendarHeatmapMathType
+ | Literal["hogql"]
+ | None
+ ) = None
+ math_group_type_index: MathGroupTypeIndex | None = None
+ math_hogql: str | None = None
+ math_multiplier: float | None = None
+ math_property: str | None = None
+ math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
+ math_property_type: str | None = None
+ name: str | None = None
+ optionalInFunnel: bool | None = None
+ properties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None, description="Properties configurable in the interface"
+ )
+ response: dict[str, Any] | None = None
+ table_name: str
+ timestamp_field: str
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class MCPToolCategoriesQuery(BaseModel):
+class GroupsQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- dateRange: DateRange | None = None
- kind: Literal["MCPToolCategoriesQuery"] = "MCPToolCategoriesQuery"
+ group_type_index: int
+ kind: Literal["GroupsQuery"] = "GroupsQuery"
+ limit: int | None = None
modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- response: MCPToolCategoriesQueryResponse | None = None
+ offset: int | None = None
+ orderBy: list[str] | None = None
+ properties: list[GroupPropertyFilter | HogQLPropertyFilter] | None = None
+ response: GroupsQueryResponse | None = None
+ search: str | None = None
+ select: list[str] | None = None
tags: QueryLogTags | None = None
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class MCPToolCategoryCountsQuery(BaseModel):
+class HeatMapQuerySource(RootModel[EventsNode]):
+ root: EventsNode
+
+
+class HogQLFilters(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ breakdownFilter: BreakdownFilter | None = Field(
+ default=None,
+ description=(
+ "Breakdown consumed by the {filters.breakdown(...)} placeholder. Set from the dashboard-level breakdown."
+ ),
+ )
+ dateRange: DateRange | None = None
+ filterTestAccounts: bool | None = None
+ interval: IntervalType | None = Field(
+ default=None,
+ description=(
+ "Time granularity consumed by the {filters.interval} placeholder. Set from the dashboard-level interval."
+ ),
+ )
+ properties: list[AnyPropertyFilterDiscriminated] | None = None
+
+
+class HogQLQuery(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ connectionId: str | None = Field(
+ default=None,
+ description=(
+ "Optional id of a direct-query-capable external data source to run against"
+ " instead of ClickHouse — a pure-direct source, or a synced source with"
+ " direct query enabled."
+ ),
+ )
+ explain: bool | None = None
+ filters: HogQLFilters | None = Field(
+ default=None,
+ description=(
+ "Extra filters applied to query via {filters} or the column-bound {filters(expr AS key, ...)} placeholder"
+ ),
+ )
+ kind: Literal["HogQLQuery"] = "HogQLQuery"
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ name: str | None = Field(default=None, description="Client provided name of the query")
+ query: str
+ response: HogQLQueryResponse | None = None
+ sendRawQuery: bool | None = Field(
+ default=None,
+ description=("Run the selected connection query directly without translating it through HogQL first"),
+ )
+ tags: QueryLogTags | None = None
+ values: dict[str, Any] | None = Field(
+ default=None,
+ description=("Constant values that can be referenced with the {placeholder} syntax in the query"),
+ )
+ variables: dict[str, HogQLVariable] | None = Field(
+ default=None, description="Variables to be substituted into the query"
+ )
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
+class InsightActorsQueryOptionsResponse(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ breakdown: list[BreakdownItem] | None = None
+ breakdowns: list[MultipleBreakdownOptions] | None = None
+ compare: list[CompareItem] | None = None
+ day: list[DayItem] | None = None
+ interval: list[IntervalItem] | None = None
+ series: list[Series] | None = None
+ status: list[StatusItem] | None = None
+ warnings: list[DataWarehouseSyncWarning] | None = Field(
+ default=None,
+ description=("Data warehouse sync warnings — see AnalyticsQueryResponseBase.warnings for semantics."),
+ )
+
+
+class LifecycleDataWarehouseNode(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ aggregation_target_field: str
+ created_at_field: str
+ custom_name: str | None = None
+ fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None,
+ description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
+ )
+ id: str
+ kind: Literal["LifecycleDataWarehouseNode"] = "LifecycleDataWarehouseNode"
+ math: (
+ BaseMathType
+ | FunnelMathType
+ | PropertyMathType
+ | CountPerActorMathType
+ | GroupMathType
+ | ExperimentMetricMathType
+ | CalendarHeatmapMathType
+ | Literal["hogql"]
+ | None
+ ) = None
+ math_group_type_index: MathGroupTypeIndex | None = None
+ math_hogql: str | None = None
+ math_multiplier: float | None = None
+ math_property: str | None = None
+ math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
+ math_property_type: str | None = None
+ name: str | None = None
+ optionalInFunnel: bool | None = None
+ properties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None, description="Properties configurable in the interface"
+ )
+ response: dict[str, Any] | None = None
+ table_name: str
+ timestamp_field: str
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
+class MCPHarnessBreakdownQuery(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ dateRange: DateRange | None = None
+ filterTestAccounts: bool | None = None
+ kind: Literal["MCPHarnessBreakdownQuery"] = "MCPHarnessBreakdownQuery"
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ properties: list[AnyPropertyFilterDiscriminated] | None = None
+ response: MCPHarnessBreakdownQueryResponse | None = None
+ tags: QueryLogTags | None = None
+ toolName: str | None = Field(
+ default=None,
+ description=('When set, scope to a single effective tool\'s new-SDK calls (the per-tool "By harness" table).'),
+ )
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
+class MCPToolCallBreakdownQuery(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ dateRange: DateRange | None = None
+ filterTestAccounts: bool | None = None
+ interval: IntervalType | None = Field(
+ default=None,
+ description=("Bucket granularity; the frontend passes getDefaultInterval. Defaults to day."),
+ )
+ kind: Literal["MCPToolCallBreakdownQuery"] = "MCPToolCallBreakdownQuery"
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ properties: list[AnyPropertyFilterDiscriminated] | None = None
+ response: MCPToolCallBreakdownQueryResponse | None = None
+ tags: QueryLogTags | None = None
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
+class MCPToolCallsAndErrorsQuery(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ dateRange: DateRange | None = None
+ filterTestAccounts: bool | None = None
+ interval: IntervalType | None = Field(
+ default=None,
+ description=("Bucket granularity; the frontend passes getDefaultInterval. Defaults to day."),
+ )
+ kind: Literal["MCPToolCallsAndErrorsQuery"] = "MCPToolCallsAndErrorsQuery"
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ properties: list[AnyPropertyFilterDiscriminated] | None = None
+ response: MCPToolCallsAndErrorsQueryResponse | None = None
+ tags: QueryLogTags | None = None
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
+class MCPToolCategoriesQuery(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ dateRange: DateRange | None = None
+ kind: Literal["MCPToolCategoriesQuery"] = "MCPToolCategoriesQuery"
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ response: MCPToolCategoriesQueryResponse | None = None
+ tags: QueryLogTags | None = None
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
+class MCPToolCategoryCountsQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -26558,6 +26139,19 @@ class MarketingAnalyticsAttributionQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+class MarketingAnalyticsConfig(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ attribution_mode: AttributionMode | None = None
+ attribution_window_days: float | None = None
+ campaign_field_preferences: dict[str, CampaignFieldPreference] | None = None
+ campaign_name_mappings: dict[str, dict[str, list[str]]] | None = None
+ conversion_goals: list[ConversionGoalFilter1 | ConversionGoalFilter2 | ConversionGoalFilter3] | None = None
+ custom_source_mappings: dict[str, list[str]] | None = None
+ sources_map: dict[str, SourceMap] | None = None
+
+
class MarketingAnalyticsTableQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -26804,12 +26398,67 @@ class PathsV2QueryResponse(BaseModel):
)
-class PropertyGroupFilter(BaseModel):
+class PersonsNode(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ cohort: int | None = None
+ distinctId: str | None = None
+ fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None,
+ description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
+ )
+ kind: Literal["PersonsNode"] = "PersonsNode"
+ limit: int | None = None
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ offset: int | None = None
+ properties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None, description="Properties configurable in the interface"
+ )
+ response: dict[str, Any] | None = None
+ search: str | None = None
+ tags: QueryLogTags | None = None
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
+class PropertyGroupFilterValue(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
type: FilterLogicalOperator
- values: list[PropertyGroupFilterValue]
+ values: list[AnyPropertyFilterOrGroupDiscriminated]
+
+
+# Variant of AnyPropertyFilterDiscriminated for PropertyGroupFilterValue's recursive `values`
+# field; sits after that class because the union references the class object.
+AnyPropertyFilterOrGroupDiscriminated = Annotated[
+ Annotated[PropertyGroupFilterValue, pydantic.Tag("property_group")]
+ | Annotated[EventPropertyFilter, pydantic.Tag("event")]
+ | Annotated[PersonPropertyFilter, pydantic.Tag("person")]
+ | Annotated[PersonMetadataPropertyFilter, pydantic.Tag("person_metadata")]
+ | Annotated[ElementPropertyFilter, pydantic.Tag("element")]
+ | Annotated[EventMetadataPropertyFilter, pydantic.Tag("event_metadata")]
+ | Annotated[SessionPropertyFilter, pydantic.Tag("session")]
+ | Annotated[CohortPropertyFilter, pydantic.Tag("cohort")]
+ | Annotated[RecordingPropertyFilter, pydantic.Tag("recording")]
+ | Annotated[LogEntryPropertyFilter, pydantic.Tag("log_entry")]
+ | Annotated[GroupPropertyFilter, pydantic.Tag("group")]
+ | Annotated[FeaturePropertyFilter, pydantic.Tag("feature")]
+ | Annotated[FlagPropertyFilter, pydantic.Tag("flag")]
+ | Annotated[HogQLPropertyFilter, pydantic.Tag("hogql")]
+ | Annotated[EmptyPropertyFilter, pydantic.Tag("empty")]
+ | Annotated[DataWarehousePropertyFilter, pydantic.Tag("data_warehouse")]
+ | Annotated[DataWarehousePersonPropertyFilter, pydantic.Tag("data_warehouse_person_property")]
+ | Annotated[ErrorTrackingIssueFilter, pydantic.Tag("error_tracking_issue")]
+ | Annotated[LogPropertyFilter, pydantic.Tag("log")]
+ | Annotated[MetricPropertyFilter, pydantic.Tag("metric_attribute")]
+ | Annotated[SpanPropertyFilter, pydantic.Tag("span")]
+ | Annotated[RevenueAnalyticsPropertyFilter, pydantic.Tag("revenue_analytics")]
+ | Annotated[AccountCustomPropertyFilter, pydantic.Tag("account_custom_property")]
+ | Annotated[WorkflowVariablePropertyFilter, pydantic.Tag("workflow_variable")]
+ | Annotated[BehavioralPropertyFilter, pydantic.Tag("behavioral")],
+ pydantic.Discriminator(property_filter_discriminator),
+]
class PropertyValuesQuery(BaseModel):
@@ -26952,28 +26601,101 @@ class RecordingsQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class RetentionQuery(BaseModel):
+class RetentionEntity(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- aggregation_group_type_index: int | None = Field(default=None, description="Groups aggregation")
- breakdownFilter: BreakdownFilter | None = Field(default=None, description="Breakdown of the events and actions")
- dataColorTheme: float | None = Field(default=None, description="Colors used in the insight's visualization")
- dateRange: DateRange | None = Field(default=None, description="Date range for the query")
- filterTestAccounts: bool | None = Field(
- default=False,
- description=("Exclude internal and test users by applying the respective filters"),
+ aggregation_target_field: str | None = Field(
+ default=None, description="Data warehouse field used as the actor identifier"
)
- kind: Literal["RetentionQuery"] = "RetentionQuery"
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- properties: list[AnyPropertyFilterDiscriminated] | PropertyGroupFilter | None = Field(
- default=[], description="Property filters for all series"
+ custom_name: str | None = None
+ id: str | float | None = None
+ kind: RetentionEntityKind | None = None
+ name: str | None = None
+ order: int | None = None
+ properties: list[AnyPropertyFilterDiscriminated] | None = Field(default=None, description="filters on the event")
+ table_name: str | None = Field(default=None, description="Data warehouse table name")
+ timestamp_field: str | None = Field(default=None, description="Data warehouse timestamp field")
+ type: EntityType | None = None
+ uuid: str | None = None
+
+
+class RetentionFilter(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
)
- response: RetentionQueryResponse | None = None
- retentionFilter: RetentionFilter = Field(..., description="Properties specific to the retention insight")
- samplingFactor: float | None = Field(default=None, description="Sampling rate")
- tags: QueryLogTags | None = Field(default=None, description="Tags that will be added to the Query log comment")
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+ aggregationProperty: str | None = Field(
+ default=None,
+ description="The property to aggregate when aggregationType is sum or avg",
+ )
+ aggregationPropertyType: AggregationPropertyType | None = Field(
+ default=AggregationPropertyType.EVENT,
+ description=("The type of property to aggregate on (event, person or data_warehouse). Defaults to event."),
+ )
+ aggregationType: AggregationType | None = Field(
+ default=AggregationType.COUNT,
+ description="The aggregation type to use for retention",
+ )
+ chartStyle: ChartStyle | None = Field(default=None, description="Chart rendering style overrides (line shape).")
+ cohortLabelStartIndex: int | None = Field(
+ default=0,
+ description=(
+ "Starting index used when labeling cohort columns (e.g. 0 for D0/D1/D2, 1"
+ " for D1/D2/D3). Display-only — does not affect retention calculations."
+ ),
+ )
+ cumulative: bool | None = None
+ customAggregationTarget: bool | None = Field(
+ default=None,
+ description=(
+ "For data warehouse based retention insights when the aggregation target"
+ " can't be mapped to persons or groups."
+ ),
+ )
+ dashboardDisplay: RetentionDashboardDisplayType | None = None
+ display: ChartDisplayType | None = Field(default=None, description="controls the display of the retention graph")
+ goalLines: list[GoalLine] | None = None
+ meanRetentionCalculation: MeanRetentionCalculation | None = None
+ minimumOccurrences: int | None = None
+ period: RetentionPeriod | None = RetentionPeriod.DAY
+ retentionCustomBrackets: list[float] | None = Field(
+ default=None, description="Custom brackets for retention calculations"
+ )
+ retentionReference: RetentionReference | None = Field(
+ default=None,
+ description=("Whether retention is with regard to initial cohort size, or that of the previous period."),
+ )
+ retentionType: RetentionType | None = None
+ returningEntity: RetentionEntity | None = None
+ selectedInterval: int | None = Field(
+ default=None,
+ description=("The selected interval to display across all cohorts (null = show all intervals for each cohort)"),
+ )
+ showTrendLines: bool | None = None
+ targetEntity: RetentionEntity | None = None
+ timeWindowMode: TimeWindowMode | None = Field(
+ default=None,
+ description="The time window mode to use for retention calculations",
+ )
+ totalIntervals: int | None = 8
+
+
+class RetentionFilterLegacy(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ cumulative: bool | None = None
+ mean_retention_calculation: MeanRetentionCalculation | None = None
+ period: RetentionPeriod | None = None
+ retention_reference: RetentionReference | None = Field(
+ default=None,
+ description=("Whether retention is with regard to initial cohort size, or that of the previous period."),
+ )
+ retention_type: RetentionType | None = None
+ returning_entity: RetentionEntity | None = None
+ show_mean: bool | None = None
+ target_entity: RetentionEntity | None = None
+ total_intervals: int | None = None
class TeamTaxonomyQuery(BaseModel):
@@ -26989,181 +26711,116 @@ class TeamTaxonomyQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class TraceSpansAggregationQuery(BaseModel):
+class TileFilters(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- compareFilter: CompareFilter | None = Field(
+ breakdown_filter: BreakdownFilter | None = None
+ date_from: str | None = None
+ date_to: str | None = None
+ explicitDate: bool | None = None
+ filterTestAccounts: bool | None = None
+ ignoreDashboardFilters: bool | None = Field(
default=None,
description=(
- "Optional comparison window — when `compare` is true, the runner returns an extra `compare` result set."
+ "When true, this tile ignores every dashboard-level filter; the tile's own overrides still apply."
),
)
- dateRange: DateRange
- filterGroup: PropertyGroupFilter | None = None
- kind: Literal["TraceSpansAggregationQuery"] = "TraceSpansAggregationQuery"
+ interval: IntervalType | None = None
+ properties: list[AnyPropertyFilterDiscriminated] | None = None
+
+
+class TraceNeighborsQuery(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ dateRange: DateRange | None = None
+ filterSupportTraces: bool | None = None
+ filterTestAccounts: bool | None = None
+ kind: Literal["TraceNeighborsQuery"] = "TraceNeighborsQuery"
modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- response: TraceSpansAggregationQueryResponse | None = None
- serviceNames: list[str] | None = None
+ properties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None, description="Properties configurable in the interface"
+ )
+ response: TraceNeighborsQueryResponse | None = None
tags: QueryLogTags | None = None
+ timestamp: str = Field(..., description="Timestamp of the current trace to find neighbors for")
+ traceId: str = Field(..., description="ID of the current trace to find neighbors for")
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class TraceSpansAttributeBreakdownQuery(BaseModel):
+class TraceQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- breakdownKey: str = Field(
- ...,
- description=(
- "Attribute key to group by (e.g. `http.response.status_code`,"
- " `server.address`). For the `span` breakdown type, must be an allowlisted"
- " top-level column (`service_name`, `status_code`)."
- ),
- )
- breakdownType: TraceSpanBreakdownType = Field(
- ...,
- description=(
- "Where the key lives: an allowlisted top-level span column, span-level"
- " attributes, or resource-level attributes."
- ),
- )
- compareFilter: CompareFilter | None = Field(
- default=None,
- description=(
- "Optional comparison window — when `compare` is true, the runner returns an extra `compare` result set."
- ),
- )
- dateRange: DateRange
- excludeBreakdownFilter: bool | None = Field(
- default=None,
- description=(
- "Drop filters targeting the breakdown key itself (including `serviceNames`"
- " for a `service_name` breakdown) so a facet's value list stays complete"
- " while one of its values is selected."
- ),
- )
- facetSearch: str | None = Field(
+ dateRange: DateRange | None = None
+ includeSentiment: bool | None = Field(
default=None,
- description=(
- "Type-ahead filter over the breakdown field's own values (case-insensitive"
- " substring match). Lets a facet's value search reach past the row limit."
- ),
+ description=("Include stored sentiment evaluation results for the trace and its generations."),
)
- filterGroup: PropertyGroupFilter | None = None
- kind: Literal["TraceSpansAttributeBreakdownQuery"] = "TraceSpansAttributeBreakdownQuery"
+ kind: Literal["TraceQuery"] = "TraceQuery"
modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- orderBy: TraceSpanBreakdownOrderBy | None = Field(
- default=None,
- description=("Order rows by span count or error count, descending. Defaults to count."),
+ properties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None, description="Properties configurable in the interface"
)
- response: TraceSpansAttributeBreakdownQueryResponse | None = None
- serviceNames: list[str] | None = None
+ response: TraceQueryResponse | None = None
tags: QueryLogTags | None = None
+ traceId: str
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class TraceSpansQuery(BaseModel):
+class TracesQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- after: str | None = Field(default=None, description="Cursor for fetching the next page of results")
- dateRange: DateRange
- excludeAttributes: bool | None = Field(
- default=None,
- description=("Omit the per-span `attributes` map from results to keep payloads compact"),
- )
- filterGroup: PropertyGroupFilter | None = None
- flatSpans: bool | None = Field(
+ dateRange: DateRange | None = None
+ filterSupportTraces: bool | None = None
+ filterTestAccounts: bool | None = None
+ groupKey: str | None = None
+ groupTypeIndex: int | None = None
+ includeSentiment: bool | None = Field(
default=None,
- description=(
- "Return the matching spans themselves, one row per span (root and child),"
- " instead of the whole-trace grouping. Streams the matches under `ORDER BY"
- " … LIMIT` rather than grouping every matching span by trace, so a filter"
- " on a hot child attribute (e.g. `code.filepath`) stays bounded. Distinct"
- " from `rootSpans`, which scopes whole-trace selection. The single-trace"
- " waterfall never sets this."
- ),
+ description=("Include stored sentiment evaluation results for returned traces and direct generation events."),
)
- kind: Literal["TraceSpansQuery"] = "TraceSpansQuery"
+ kind: Literal["TracesQuery"] = "TracesQuery"
limit: int | None = None
modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
offset: int | None = None
- orderBy: TraceOrderColumn | None = Field(
+ personId: str | None = Field(default=None, description="Person who performed the event")
+ properties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None, description="Properties configurable in the interface"
+ )
+ randomOrder: bool | None = Field(
default=None,
description=(
- "Column to order by. Defaults to timestamp. `timestamp` paginates via"
- " keyset cursor (`after`); other columns via `offset`."
+ "Use random ordering instead of timestamp DESC. Useful for representative sampling to avoid recency bias."
),
)
- orderDirection: OrderDirection2 | None = Field(default=None, description="Order direction. Defaults to DESC.")
- prefetchSpans: int | None = Field(
- default=None,
- description=("Prefetch up to this many spans per trace and include them in results"),
+ response: TracesQueryResponse | None = None
+ searchTerm: str | None = None
+ showColumnConfigurator: bool | None = None
+ tags: QueryLogTags | None = None
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
+class VectorSearchQuery(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
)
- response: TraceSpansQueryResponse | None = None
- rootSpans: bool | None = None
- serviceNames: list[str] | None = None
- statusCodes: list[int] | None = None
+ embedding: list[float]
+ embeddingVersion: float | None = None
+ kind: Literal["VectorSearchQuery"] = "VectorSearchQuery"
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ response: VectorSearchQueryResponse | None = None
tags: QueryLogTags | None = None
- traceId: str | None = None
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class TraceSpansTreeQuery(BaseModel):
+class WebVitalsPathBreakdownQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- compareFilter: CompareFilter | None = Field(
- default=None,
- description=(
- "Optional comparison window — when `compare` is true, the runner returns an extra `compare` result set."
- ),
- )
- dateRange: DateRange
- filterGroup: PropertyGroupFilter | None = None
- kind: Literal["TraceSpansTreeQuery"] = "TraceSpansTreeQuery"
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- response: TraceSpansTreeQueryResponse | None = None
- serviceName: str = Field(
- ...,
- description=(
- "Service name that scopes the returned tree. Applied to the spans CTE so"
- " the call-tree only contains spans from this service, even when matched"
- " traces span multiple services."
- ),
- )
- serviceNames: list[str] | None = None
- spanName: str = Field(
- ...,
- description=(
- "Span name to scope the matched trace set. Required because the `(trace_id,"
- " parent_span_id)` self-join is prohibitive without bounding the matched"
- " traces — at high name cardinality the query becomes unsafe to run."
- ),
- )
- tags: QueryLogTags | None = None
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
-class VectorSearchQuery(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- embedding: list[float]
- embeddingVersion: float | None = None
- kind: Literal["VectorSearchQuery"] = "VectorSearchQuery"
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- response: VectorSearchQueryResponse | None = None
- tags: QueryLogTags | None = None
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
-class WebVitalsPathBreakdownQuery(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- aggregation_group_type_index: int | None = Field(
+ aggregation_group_type_index: int | None = Field(
default=None,
description=("Groups aggregation - not used in Web Analytics but required for type compatibility"),
)
@@ -27206,6 +26863,51 @@ class WebVitalsPathBreakdownQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+class ActionsNode(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ custom_name: str | None = None
+ fixedProperties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None,
+ description=("Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)"),
+ )
+ id: int
+ kind: Literal["ActionsNode"] = "ActionsNode"
+ math: (
+ BaseMathType
+ | FunnelMathType
+ | PropertyMathType
+ | CountPerActorMathType
+ | GroupMathType
+ | ExperimentMetricMathType
+ | CalendarHeatmapMathType
+ | Literal["hogql"]
+ | None
+ ) = None
+ math_group_type_index: MathGroupTypeIndex | None = None
+ math_hogql: str | None = None
+ math_multiplier: float | None = None
+ math_property: str | None = None
+ math_property_revenue_currency: RevenueCurrencyPropertyConfig | None = None
+ math_property_type: str | None = None
+ name: str | None = None
+ optionalInFunnel: bool | None = None
+ properties: list[AnyPropertyFilterDiscriminated] | None = Field(
+ default=None, description="Properties configurable in the interface"
+ )
+ response: dict[str, Any] | None = None
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
+class AnyDataWarehouseNode(RootModel[DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode]):
+ root: DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode
+
+
+class AnyEntityNodeDataWarehouseNode(RootModel[EventsNode | ActionsNode | DataWarehouseNode]):
+ root: EventsNode | ActionsNode | DataWarehouseNode
+
+
class AssistantLifecycleActorsQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -27304,6 +27006,37 @@ class CachedErrorTrackingIssueCorrelationQueryResponse(BaseModel):
)
+class CoreEvent(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ category: CoreEventCategory = Field(
+ ...,
+ description="Category (acquisition, activation, retention, referral, revenue)",
+ )
+ description: str | None = Field(default=None, description="Optional description")
+ filter: EventsNode | ActionsNode | DataWarehouseNode = Field(
+ ...,
+ description=(
+ "Filter configuration - event, action, or data warehouse node (includes math support for sum, etc.)"
+ ),
+ )
+ id: str = Field(..., description="Unique identifier")
+ name: str = Field(..., description="Display name")
+
+
+class CustomerAnalyticsConfig(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ account_group_type_index: int | None = None
+ activity_event: EventsNode | ActionsNode
+ payment_event: EventsNode | ActionsNode
+ signup_event: EventsNode | ActionsNode
+ signup_pageview_event: EventsNode | ActionsNode
+ subscription_event: EventsNode | ActionsNode
+
+
class Response16(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -27402,72 +27135,408 @@ class DatabaseSchemaManagedViewTable(BaseModel):
type: Literal["managed_view"] = "managed_view"
-class DatabaseSchemaMaterializedViewTable(BaseModel):
+class DatabaseSchemaMaterializedViewTable(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ certification: DatabaseSchemaTableCertification | None = Field(
+ default=None,
+ description=("Present only when the table or view carries a settled data catalog certification."),
+ )
+ fields: dict[str, DatabaseSchemaField]
+ id: str
+ last_run_at: str | None = None
+ name: str
+ query: HogQLQuery
+ row_count: float | None = None
+ status: str | None = None
+ type: Literal["materialized_view"] = "materialized_view"
+
+
+class DatabaseSchemaViewTable(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ certification: DatabaseSchemaTableCertification | None = Field(
+ default=None,
+ description=("Present only when the table or view carries a settled data catalog certification."),
+ )
+ fields: dict[str, DatabaseSchemaField]
+ id: str
+ name: str
+ query: HogQLQuery
+ row_count: float | None = None
+ type: Literal["view"] = "view"
+
+
+class DetectorConfig(
+ RootModel[
+ EnsembleDetectorConfig
+ | ZScoreDetectorConfig
+ | MADDetectorConfig
+ | IQRDetectorConfig
+ | ThresholdDetectorConfig
+ | ECODDetectorConfig
+ | COPODDetectorConfig
+ | IsolationForestDetectorConfig
+ | KNNDetectorConfig
+ | HBOSDetectorConfig
+ | LOFDetectorConfig
+ | OCSVMDetectorConfig
+ | PCADetectorConfig
+ ]
+):
+ root: (
+ EnsembleDetectorConfig
+ | ZScoreDetectorConfig
+ | MADDetectorConfig
+ | IQRDetectorConfig
+ | ThresholdDetectorConfig
+ | ECODDetectorConfig
+ | COPODDetectorConfig
+ | IsolationForestDetectorConfig
+ | KNNDetectorConfig
+ | HBOSDetectorConfig
+ | LOFDetectorConfig
+ | OCSVMDetectorConfig
+ | PCADetectorConfig
+ ) = Field(..., description="Detector configuration types", discriminator="type")
+
+
+class ErrorTrackingIssueCorrelationQuery(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ events: list[str]
+ kind: Literal["ErrorTrackingIssueCorrelationQuery"] = "ErrorTrackingIssueCorrelationQuery"
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ response: ErrorTrackingIssueCorrelationQueryResponse | None = None
+ tags: QueryLogTags | None = None
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
+class ExperimentExposureCriteria(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ activation_config: ExperimentEventExposureConfig | ActionsNode | None = Field(
+ default=None,
+ description=(
+ "Additional event (or action) an entity must emit at/after their first"
+ " default exposure event before they count as exposed; exposure time"
+ " becomes this event's timestamp. Only valid with the default exposure"
+ " event, not a custom `exposure_config`."
+ ),
+ )
+ exposure_config: ExperimentEventExposureConfig | ActionsNode | None = None
+ filterTestAccounts: bool | None = None
+ multiple_variant_handling: MultipleVariantHandling | None = None
+
+
+class ExperimentHoldoutType(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ created_at: str | None = None
+ created_by: UserBasicType | None = None
+ description: str | None = None
+ filters: list[FeatureFlagGroupType]
+ id: int
+ name: str
+ updated_at: str | None = None
+ user_access_level: AccessControlLevel | None = Field(
+ default=None,
+ description=("Read-only, server-computed effective access level; absent on a not-yet-created holdout."),
+ )
+
+
+class FunnelsFilter(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ binCount: int | None = None
+ breakdownAttributionType: BreakdownAttributionType | None = BreakdownAttributionType.FIRST_TOUCH
+ breakdownAttributionValue: int | None = None
+ breakdownSorting: str | None = Field(
+ default=None,
+ description=("Breakdown table sorting. Format: 'column_key' or '-column_key' (descending)"),
+ )
+ chartStyle: ChartStyle | None = Field(
+ default=None,
+ description=("Chart rendering style overrides (line shape). Only applies to historical-trends funnels."),
+ )
+ customAggregationTarget: bool | None = Field(
+ default=None,
+ description=(
+ "For data warehouse based funnel insights when the aggregation target can't be mapped to persons or groups."
+ ),
+ )
+ exclusions: (
+ list[Annotated[FunnelExclusionEventsNode | FunnelExclusionActionsNode, Field(discriminator="kind")]] | None
+ ) = []
+ funnelAggregateByHogQL: str | None = None
+ funnelFromStep: int | None = None
+ funnelOrderType: StepOrderValue | None = StepOrderValue.ORDERED
+ funnelStepReference: FunnelStepReference | None = FunnelStepReference.TOTAL
+ funnelToStep: int | None = Field(
+ default=None,
+ description=("To select the range of steps for trends & time to convert funnels, 0-indexed"),
+ )
+ funnelVizType: FunnelVizType | None = FunnelVizType.STEPS
+ funnelWindowInterval: int | None = 14
+ funnelWindowIntervalUnit: FunnelConversionWindowTimeUnit | None = FunnelConversionWindowTimeUnit.DAY
+ goalLines: list[GoalLine] | None = Field(default=None, description="Goal Lines")
+ hiddenLegendBreakdowns: list[str] | None = None
+ hideIncompleteConversionWindowPeriods: bool | None = Field(
+ default=False,
+ description=(
+ "Trends only: hide periods whose conversion window has not fully elapsed"
+ " yet, so the recent tail of the trend isn't dragged down by entrants who"
+ " still have time to convert."
+ ),
+ )
+ layout: FunnelLayout | None = FunnelLayout.VERTICAL
+ legendPosition: LegendPosition | None = Field(
+ default=LegendPosition.BOTTOM,
+ description=("Where the in-chart legend sits relative to the plot. Only applies to the in-chart legend."),
+ )
+ resultCustomizations: dict[str, ResultCustomizationByValue] | None = Field(
+ default=None,
+ description="Customizations for the appearance of result datasets.",
+ )
+ showAnnotations: bool | None = Field(
+ default=True,
+ description=("Whether to render annotations on the chart. Only applies to historical-trends funnels."),
+ )
+ showLegend: bool | None = Field(
+ default=False,
+ description=(
+ "Whether to show a legend describing the series. The legend only renders"
+ " when the funnel has multiple series. Only applies to historical-trends"
+ " funnels."
+ ),
+ )
+ showTrendLines: bool | None = Field(
+ default=None,
+ description=("Display linear regression trend lines on the chart (only for historical trends viz)"),
+ )
+ showValuesOnSeries: bool | None = False
+ useUdf: bool | None = None
+
+
+class InsightFilter(
+ RootModel[
+ TrendsFilter
+ | FunnelsFilter
+ | RetentionFilter
+ | PathsFilter
+ | PathsV2Filter
+ | StickinessFilter
+ | LifecycleFilter
+ | CalendarHeatmapFilter
+ | list[EventPropertyFilter | PersonPropertyFilter | SessionPropertyFilter | CohortPropertyFilter]
+ ]
+):
+ root: (
+ TrendsFilter
+ | FunnelsFilter
+ | RetentionFilter
+ | PathsFilter
+ | PathsV2Filter
+ | StickinessFilter
+ | LifecycleFilter
+ | CalendarHeatmapFilter
+ | list[EventPropertyFilter | PersonPropertyFilter | SessionPropertyFilter | CohortPropertyFilter]
+ )
+
+
+class PropertyGroupFilter(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ type: FilterLogicalOperator
+ values: list[PropertyGroupFilterValue]
+
+
+class RetentionQuery(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ aggregation_group_type_index: int | None = Field(default=None, description="Groups aggregation")
+ breakdownFilter: BreakdownFilter | None = Field(default=None, description="Breakdown of the events and actions")
+ dataColorTheme: float | None = Field(default=None, description="Colors used in the insight's visualization")
+ dateRange: DateRange | None = Field(default=None, description="Date range for the query")
+ filterTestAccounts: bool | None = Field(
+ default=False,
+ description=("Exclude internal and test users by applying the respective filters"),
+ )
+ kind: Literal["RetentionQuery"] = "RetentionQuery"
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ properties: list[AnyPropertyFilterDiscriminated] | PropertyGroupFilter | None = Field(
+ default=[], description="Property filters for all series"
+ )
+ response: RetentionQueryResponse | None = None
+ retentionFilter: RetentionFilter = Field(..., description="Properties specific to the retention insight")
+ samplingFactor: float | None = Field(default=None, description="Sampling rate")
+ tags: QueryLogTags | None = Field(default=None, description="Tags that will be added to the Query log comment")
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
+class TraceSpansAggregationQuery(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ compareFilter: CompareFilter | None = Field(
+ default=None,
+ description=(
+ "Optional comparison window — when `compare` is true, the runner returns an extra `compare` result set."
+ ),
+ )
+ dateRange: DateRange
+ filterGroup: PropertyGroupFilter | None = None
+ kind: Literal["TraceSpansAggregationQuery"] = "TraceSpansAggregationQuery"
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ response: TraceSpansAggregationQueryResponse | None = None
+ serviceNames: list[str] | None = None
+ tags: QueryLogTags | None = None
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
+class TraceSpansAttributeBreakdownQuery(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ breakdownKey: str = Field(
+ ...,
+ description=(
+ "Attribute key to group by (e.g. `http.response.status_code`,"
+ " `server.address`). For the `span` breakdown type, must be an allowlisted"
+ " top-level column (`service_name`, `status_code`)."
+ ),
+ )
+ breakdownType: TraceSpanBreakdownType = Field(
+ ...,
+ description=(
+ "Where the key lives: an allowlisted top-level span column, span-level"
+ " attributes, or resource-level attributes."
+ ),
+ )
+ compareFilter: CompareFilter | None = Field(
+ default=None,
+ description=(
+ "Optional comparison window — when `compare` is true, the runner returns an extra `compare` result set."
+ ),
+ )
+ dateRange: DateRange
+ excludeBreakdownFilter: bool | None = Field(
+ default=None,
+ description=(
+ "Drop filters targeting the breakdown key itself (including `serviceNames`"
+ " for a `service_name` breakdown) so a facet's value list stays complete"
+ " while one of its values is selected."
+ ),
+ )
+ facetSearch: str | None = Field(
+ default=None,
+ description=(
+ "Type-ahead filter over the breakdown field's own values (case-insensitive"
+ " substring match). Lets a facet's value search reach past the row limit."
+ ),
+ )
+ filterGroup: PropertyGroupFilter | None = None
+ kind: Literal["TraceSpansAttributeBreakdownQuery"] = "TraceSpansAttributeBreakdownQuery"
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ orderBy: TraceSpanBreakdownOrderBy | None = Field(
+ default=None,
+ description=("Order rows by span count or error count, descending. Defaults to count."),
+ )
+ response: TraceSpansAttributeBreakdownQueryResponse | None = None
+ serviceNames: list[str] | None = None
+ tags: QueryLogTags | None = None
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
+class TraceSpansQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- certification: DatabaseSchemaTableCertification | None = Field(
+ after: str | None = Field(default=None, description="Cursor for fetching the next page of results")
+ dateRange: DateRange
+ excludeAttributes: bool | None = Field(
default=None,
- description=("Present only when the table or view carries a settled data catalog certification."),
+ description=("Omit the per-span `attributes` map from results to keep payloads compact"),
)
- fields: dict[str, DatabaseSchemaField]
- id: str
- last_run_at: str | None = None
- name: str
- query: HogQLQuery
- row_count: float | None = None
- status: str | None = None
- type: Literal["materialized_view"] = "materialized_view"
+ filterGroup: PropertyGroupFilter | None = None
+ flatSpans: bool | None = Field(
+ default=None,
+ description=(
+ "Return the matching spans themselves, one row per span (root and child),"
+ " instead of the whole-trace grouping. Streams the matches under `ORDER BY"
+ " … LIMIT` rather than grouping every matching span by trace, so a filter"
+ " on a hot child attribute (e.g. `code.filepath`) stays bounded. Distinct"
+ " from `rootSpans`, which scopes whole-trace selection. The single-trace"
+ " waterfall never sets this."
+ ),
+ )
+ kind: Literal["TraceSpansQuery"] = "TraceSpansQuery"
+ limit: int | None = None
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ offset: int | None = None
+ orderBy: TraceOrderColumn | None = Field(
+ default=None,
+ description=(
+ "Column to order by. Defaults to timestamp. `timestamp` paginates via"
+ " keyset cursor (`after`); other columns via `offset`."
+ ),
+ )
+ orderDirection: OrderDirection2 | None = Field(default=None, description="Order direction. Defaults to DESC.")
+ prefetchSpans: int | None = Field(
+ default=None,
+ description=("Prefetch up to this many spans per trace and include them in results"),
+ )
+ response: TraceSpansQueryResponse | None = None
+ rootSpans: bool | None = None
+ serviceNames: list[str] | None = None
+ statusCodes: list[int] | None = None
+ tags: QueryLogTags | None = None
+ traceId: str | None = None
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class DatabaseSchemaViewTable(BaseModel):
+class TraceSpansTreeQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- certification: DatabaseSchemaTableCertification | None = Field(
+ compareFilter: CompareFilter | None = Field(
default=None,
- description=("Present only when the table or view carries a settled data catalog certification."),
+ description=(
+ "Optional comparison window — when `compare` is true, the runner returns an extra `compare` result set."
+ ),
)
- fields: dict[str, DatabaseSchemaField]
- id: str
- name: str
- query: HogQLQuery
- row_count: float | None = None
- type: Literal["view"] = "view"
-
-
-class DetectorConfig(
- RootModel[
- EnsembleDetectorConfig
- | ZScoreDetectorConfig
- | MADDetectorConfig
- | IQRDetectorConfig
- | ThresholdDetectorConfig
- | ECODDetectorConfig
- | COPODDetectorConfig
- | IsolationForestDetectorConfig
- | KNNDetectorConfig
- | HBOSDetectorConfig
- | LOFDetectorConfig
- | OCSVMDetectorConfig
- | PCADetectorConfig
- ]
-):
- root: (
- EnsembleDetectorConfig
- | ZScoreDetectorConfig
- | MADDetectorConfig
- | IQRDetectorConfig
- | ThresholdDetectorConfig
- | ECODDetectorConfig
- | COPODDetectorConfig
- | IsolationForestDetectorConfig
- | KNNDetectorConfig
- | HBOSDetectorConfig
- | LOFDetectorConfig
- | OCSVMDetectorConfig
- | PCADetectorConfig
- ) = Field(..., description="Detector configuration types", discriminator="type")
+ dateRange: DateRange
+ filterGroup: PropertyGroupFilter | None = None
+ kind: Literal["TraceSpansTreeQuery"] = "TraceSpansTreeQuery"
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ response: TraceSpansTreeQueryResponse | None = None
+ serviceName: str = Field(
+ ...,
+ description=(
+ "Service name that scopes the returned tree. Applied to the spans CTE so"
+ " the call-tree only contains spans from this service, even when matched"
+ " traces span multiple services."
+ ),
+ )
+ serviceNames: list[str] | None = None
+ spanName: str = Field(
+ ...,
+ description=(
+ "Span name to scope the matched trace set. Required because the `(trace_id,"
+ " parent_span_id)` self-join is prohibitive without bounding the matched"
+ " traces — at high name cardinality the query becomes unsafe to run."
+ ),
+ )
+ tags: QueryLogTags | None = None
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
class ErrorTrackingBreakdownsQuery(BaseModel):
@@ -27487,18 +27556,6 @@ class ErrorTrackingBreakdownsQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class ErrorTrackingIssueCorrelationQuery(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- events: list[str]
- kind: Literal["ErrorTrackingIssueCorrelationQuery"] = "ErrorTrackingIssueCorrelationQuery"
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- response: ErrorTrackingIssueCorrelationQueryResponse | None = None
- tags: QueryLogTags | None = None
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
class ErrorTrackingQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -27951,6 +28008,24 @@ class PathsV2Query(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+class QueryResponseAlternative68(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ joins: list[DataWarehouseViewLink]
+ tables: dict[
+ str,
+ DatabaseSchemaPostHogTable
+ | DatabaseSchemaSystemTable
+ | DatabaseSchemaDataWarehouseTable
+ | DatabaseSchemaViewTable
+ | DatabaseSchemaManagedViewTable
+ | DatabaseSchemaBatchExportTable
+ | DatabaseSchemaMaterializedViewTable
+ | DatabaseSchemaEndpointTable,
+ ]
+
+
class SessionsQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -28036,6 +28111,24 @@ class CalendarHeatmapQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+class DatabaseSchemaQueryResponse(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ joins: list[DataWarehouseViewLink]
+ tables: dict[
+ str,
+ DatabaseSchemaPostHogTable
+ | DatabaseSchemaSystemTable
+ | DatabaseSchemaDataWarehouseTable
+ | DatabaseSchemaViewTable
+ | DatabaseSchemaManagedViewTable
+ | DatabaseSchemaBatchExportTable
+ | DatabaseSchemaMaterializedViewTable
+ | DatabaseSchemaEndpointTable,
+ ]
+
+
class ExperimentFunnelMetric(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -28204,24 +28297,6 @@ class PathsV2ActorsQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class QueryResponseAlternative68(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- joins: list[DataWarehouseViewLink]
- tables: dict[
- str,
- DatabaseSchemaPostHogTable
- | DatabaseSchemaSystemTable
- | DatabaseSchemaDataWarehouseTable
- | DatabaseSchemaViewTable
- | DatabaseSchemaManagedViewTable
- | DatabaseSchemaBatchExportTable
- | DatabaseSchemaMaterializedViewTable
- | DatabaseSchemaEndpointTable,
- ]
-
-
class StickinessQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -28258,22 +28333,30 @@ class StickinessQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class DatabaseSchemaQueryResponse(BaseModel):
+class DatabaseSchemaQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
- joins: list[DataWarehouseViewLink]
- tables: dict[
- str,
- DatabaseSchemaPostHogTable
- | DatabaseSchemaSystemTable
- | DatabaseSchemaDataWarehouseTable
- | DatabaseSchemaViewTable
- | DatabaseSchemaManagedViewTable
- | DatabaseSchemaBatchExportTable
- | DatabaseSchemaMaterializedViewTable
- | DatabaseSchemaEndpointTable,
- ]
+ connectionId: str | None = Field(
+ default=None,
+ description="Optional direct external data source id for schema introspection",
+ )
+ includeFields: bool | None = Field(
+ default=None,
+ description=("When false, skip serializing each table's fields (`fields` comes back empty). Defaults to true."),
+ )
+ kind: Literal["DatabaseSchemaQuery"] = "DatabaseSchemaQuery"
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ response: DatabaseSchemaQueryResponse | None = None
+ tables: list[str] | None = Field(
+ default=None,
+ description=(
+ "Only serialize these tables (keys as returned in the response, e.g."
+ " `events` or `zendesk.groups`). Omit for all tables."
+ ),
+ )
+ tags: QueryLogTags | None = None
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
class ExperimentMetric(
@@ -28609,32 +28692,6 @@ class Response18(BaseModel):
)
-class DatabaseSchemaQuery(BaseModel):
- model_config = ConfigDict(
- extra="forbid",
- )
- connectionId: str | None = Field(
- default=None,
- description="Optional direct external data source id for schema introspection",
- )
- includeFields: bool | None = Field(
- default=None,
- description=("When false, skip serializing each table's fields (`fields` comes back empty). Defaults to true."),
- )
- kind: Literal["DatabaseSchemaQuery"] = "DatabaseSchemaQuery"
- modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
- response: DatabaseSchemaQueryResponse | None = None
- tables: list[str] | None = Field(
- default=None,
- description=(
- "Only serialize these tables (keys as returned in the response, e.g."
- " `events` or `zendesk.groups`). Omit for all tables."
- ),
- )
- tags: QueryLogTags | None = None
- version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-
-
class EndpointRequest(BaseModel):
model_config = ConfigDict(
extra="forbid",
diff --git a/posthog/schema_enums.py b/posthog/schema_enums.py
index 777ca8662402..1a63039243e1 100644
--- a/posthog/schema_enums.py
+++ b/posthog/schema_enums.py
@@ -602,6 +602,11 @@ class BaseMathType(StrEnum):
FIRST_MATCHING_EVENT_FOR_USER = "first_matching_event_for_user"
+class BehavioralEventSource(StrEnum):
+ EVENTS = "events"
+ ACTIONS = "actions"
+
+
class BillingSpendResponseBreakdownType(StrEnum):
TYPE = "type"
TEAM = "team"
@@ -2923,6 +2928,11 @@ class InfinityValue(float, Enum):
NUMBER__999999 = -999999
+class InlineBehavioralType(StrEnum):
+ PERFORMED_EVENT = "performed_event"
+ PERFORMED_EVENT_MULTIPLE = "performed_event_multiple"
+
+
class InsightFilterProperty(StrEnum):
TRENDS_FILTER = "trendsFilter"
FUNNELS_FILTER = "funnelsFilter"
@@ -3629,6 +3639,7 @@ class PropertyFilterType(StrEnum):
FEATURE = "feature"
SESSION = "session"
COHORT = "cohort"
+ BEHAVIORAL = "behavioral"
RECORDING = "recording"
LOG_ENTRY = "log_entry"
GROUP = "group"
@@ -4083,6 +4094,13 @@ class TikTokAdsDefaultSources(StrEnum):
TIKTOK = "tiktok"
+class TimeUnitType(StrEnum):
+ DAY = "day"
+ WEEK = "week"
+ MONTH = "month"
+ YEAR = "year"
+
+
class TraceOrderColumn(StrEnum):
TIMESTAMP = "timestamp"
DURATION = "duration"
diff --git a/posthog/test/test_property_filter_discriminator.py b/posthog/test/test_property_filter_discriminator.py
index 5578d4ac9276..ee304a0eefc4 100644
--- a/posthog/test/test_property_filter_discriminator.py
+++ b/posthog/test/test_property_filter_discriminator.py
@@ -5,6 +5,7 @@ from pydantic import ValidationError
from posthog.schema import (
AccountCustomPropertyFilter,
+ BehavioralPropertyFilter,
CohortPropertyFilter,
DashboardFilter,
DataWarehousePersonPropertyFilter,
@@ -115,6 +116,18 @@ class TestPropertyFilterDiscriminator(SimpleTestCase):
{"type": "workflow_variable", "key": "k", "operator": "exact"},
WorkflowVariablePropertyFilter,
),
+ (
+ "behavioral",
+ {
+ "type": "behavioral",
+ "key": "$pageview",
+ "value": "performed_event",
+ "event_type": "events",
+ "time_value": 30,
+ "time_interval": "day",
+ },
+ BehavioralPropertyFilter,
+ ),
]
)
def test_valid_filter_routes_to_declared_type(self, _name: str, payload: dict, expected: type) -> None:
diff --git a/posthog/types.py b/posthog/types.py
index 96e6abcd0f4d..a3ad38ad22cd 100644
--- a/posthog/types.py
+++ b/posthog/types.py
@@ -3,6 +3,7 @@ from typing import Union
from posthog.schema import (
AccountCustomPropertyFilter,
ActionsNode,
+ BehavioralPropertyFilter,
CohortPropertyFilter,
DataWarehouseNode,
DataWarehousePersonPropertyFilter,
@@ -92,6 +93,7 @@ type AnyPropertyFilter = Union[
MetricPropertyFilter,
SpanPropertyFilter,
WorkflowVariablePropertyFilter,
+ BehavioralPropertyFilter,
]
type EntityNode = Union[
diff --git a/products/dashboards/frontend/generated/api.schemas.ts b/products/dashboards/frontend/generated/api.schemas.ts
index 7e3a3ad06702..9c80786b0a10 100644
--- a/products/dashboards/frontend/generated/api.schemas.ts
+++ b/products/dashboards/frontend/generated/api.schemas.ts
@@ -1633,6 +1633,61 @@ export interface WorkflowVariablePropertyFilterApi {
value?: (string | number | boolean)[] | string | number | boolean | null
}
+export type BehavioralEventSourceApi = (typeof BehavioralEventSourceApi)[keyof typeof BehavioralEventSourceApi]
+
+export const BehavioralEventSourceApi = {
+ Events: 'events',
+ Actions: 'actions',
+} as const
+
+export type TimeUnitTypeApi = (typeof TimeUnitTypeApi)[keyof typeof TimeUnitTypeApi]
+
+export const TimeUnitTypeApi = {
+ Day: 'day',
+ Week: 'week',
+ Month: 'month',
+ Year: 'year',
+} as const
+
+export type InlineBehavioralTypeApi = (typeof InlineBehavioralTypeApi)[keyof typeof InlineBehavioralTypeApi]
+
+export const InlineBehavioralTypeApi = {
+ PerformedEvent: 'performed_event',
+ PerformedEventMultiple: 'performed_event_multiple',
+} as const
+
+export interface BehavioralPropertyFilterApi {
+ /** Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups */
+ event_filters?:
+ | (
+ | EventPropertyFilterApi
+ | PersonPropertyFilterApi
+ | ElementPropertyFilterApi
+ | FeaturePropertyFilterApi
+ | HogQLPropertyFilterApi
+ )[]
+ | null
+ event_type: BehavioralEventSourceApi
+ /** Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval */
+ explicit_datetime?: string | null
+ explicit_datetime_to?: string | null
+ /** Event name, or action id when event_type is 'actions' */
+ key: string
+ label?: string | null
+ /** Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators */
+ negation?: boolean | null
+ /** Count comparison for performed_event_multiple, defaults to exact */
+ operator?: PropertyOperatorApi | null
+ /** Count threshold for performed_event_multiple */
+ operator_value?: number | null
+ time_interval?: TimeUnitTypeApi | null
+ /** Relative time window size, paired with time_interval */
+ time_value?: number | null
+ /** Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP */
+ type?: 'behavioral'
+ value: InlineBehavioralTypeApi
+}
+
export interface PropertyGroupFilterValueApi {
type: FilterLogicalOperatorApi
values: (
@@ -1660,6 +1715,7 @@ export interface PropertyGroupFilterValueApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
}
@@ -2070,6 +2126,7 @@ export interface EventsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
kind?: 'EventsNode'
@@ -2120,6 +2177,7 @@ export interface EventsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: EventsNodeApiResponse
@@ -2157,6 +2215,7 @@ export interface ActionsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
id: number
@@ -2205,6 +2264,7 @@ export interface ActionsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: ActionsNodeApiResponse
@@ -2244,6 +2304,7 @@ export interface DataWarehouseNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
id: string
@@ -2293,6 +2354,7 @@ export interface DataWarehouseNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: DataWarehouseNodeApiResponse
@@ -2332,6 +2394,7 @@ export interface GroupNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
kind?: 'GroupNode'
@@ -2386,6 +2449,7 @@ export interface GroupNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: GroupNodeApiResponse
@@ -2682,6 +2746,7 @@ export interface TrendsQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| PropertyGroupFilterApi
| null
@@ -2739,6 +2804,7 @@ export interface FunnelExclusionEventsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
funnelFromStep: number
@@ -2791,6 +2857,7 @@ export interface FunnelExclusionEventsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: FunnelExclusionEventsNodeApiResponse
@@ -2828,6 +2895,7 @@ export interface FunnelExclusionActionsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
funnelFromStep: number
@@ -2878,6 +2946,7 @@ export interface FunnelExclusionActionsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: FunnelExclusionActionsNodeApiResponse
@@ -3029,6 +3098,7 @@ export interface FunnelsDataWarehouseNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
id: string
@@ -3078,6 +3148,7 @@ export interface FunnelsDataWarehouseNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: FunnelsDataWarehouseNodeApiResponse
@@ -3133,6 +3204,7 @@ export interface FunnelsQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| PropertyGroupFilterApi
| null
@@ -3291,6 +3363,7 @@ export interface RetentionEntityApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
/** Data warehouse table name */
@@ -3384,6 +3457,7 @@ export interface RetentionQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| PropertyGroupFilterApi
| null
@@ -3521,6 +3595,7 @@ export interface PathsQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| PropertyGroupFilterApi
| null
@@ -3690,6 +3765,7 @@ export interface PathsV2QueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| PropertyGroupFilterApi
| null
@@ -3814,6 +3890,7 @@ export interface StickinessQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| PropertyGroupFilterApi
| null
@@ -3906,6 +3983,7 @@ export interface LifecycleDataWarehouseNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
id: string
@@ -3954,6 +4032,7 @@ export interface LifecycleDataWarehouseNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: LifecycleDataWarehouseNodeApiResponse
@@ -4007,6 +4086,7 @@ export interface LifecycleQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| PropertyGroupFilterApi
| null
@@ -5437,6 +5517,7 @@ export interface EventsQueryActionStepApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
selector?: string | null
@@ -5582,6 +5663,7 @@ export interface EventsQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
kind?: 'EventsQuery'
@@ -5621,6 +5703,7 @@ export interface EventsQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: EventsQueryResponseApi | null
@@ -5666,6 +5749,7 @@ export interface PersonsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
kind?: 'PersonsNode'
@@ -5699,6 +5783,7 @@ export interface PersonsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: PersonsNodeApiResponse
@@ -5835,6 +5920,7 @@ export interface FunnelCorrelationActorsQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
includeRecordings?: boolean | null
@@ -5877,6 +5963,7 @@ export interface ExperimentEventExposureConfigApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
response?: ExperimentEventExposureConfigApiResponse
/** version of the node, used for schema migrations */
@@ -5929,6 +6016,7 @@ export interface ExperimentDataWarehouseNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
kind?: 'ExperimentDataWarehouseNode'
@@ -5976,6 +6064,7 @@ export interface ExperimentDataWarehouseNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: ExperimentDataWarehouseNodeApiResponse
@@ -6349,6 +6438,7 @@ export interface HogQLFiltersApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
}
@@ -6970,6 +7060,7 @@ export interface SessionsQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
/** Filter test accounts */
@@ -7002,6 +7093,7 @@ export interface SessionsQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
kind?: 'SessionsQuery'
@@ -7041,6 +7133,7 @@ export interface SessionsQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: SessionsQueryResponseApi | null
@@ -7093,6 +7186,7 @@ export interface ConversionGoalFilter1Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
kind?: 'EventsNode'
@@ -7143,6 +7237,7 @@ export interface ConversionGoalFilter1Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: ConversionGoalFilter1ApiResponse
@@ -7189,6 +7284,7 @@ export interface ConversionGoalFilter2Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
id: number
@@ -7237,6 +7333,7 @@ export interface ConversionGoalFilter2Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: ConversionGoalFilter2ApiResponse
@@ -7285,6 +7382,7 @@ export interface ConversionGoalFilter3Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
id: string
@@ -7334,6 +7432,7 @@ export interface ConversionGoalFilter3Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: ConversionGoalFilter3ApiResponse
@@ -7861,6 +7960,7 @@ export interface TracesQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
/** Use random ordering instead of timestamp DESC. Useful for representative sampling to avoid recency bias. */
@@ -7932,6 +8032,7 @@ export interface TraceQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: TraceQueryResponseApi | null
@@ -8811,6 +8912,7 @@ export interface DashboardFilterApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
}
@@ -8849,6 +8951,7 @@ export interface TileFiltersApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
}
diff --git a/products/endpoints/frontend/generated/api.schemas.ts b/products/endpoints/frontend/generated/api.schemas.ts
index 3f8486b6133a..395cc1f99c3e 100644
--- a/products/endpoints/frontend/generated/api.schemas.ts
+++ b/products/endpoints/frontend/generated/api.schemas.ts
@@ -860,6 +860,61 @@ export interface WorkflowVariablePropertyFilterApi {
value?: (string | number | boolean)[] | string | number | boolean | null
}
+export type BehavioralEventSourceApi = (typeof BehavioralEventSourceApi)[keyof typeof BehavioralEventSourceApi]
+
+export const BehavioralEventSourceApi = {
+ Events: 'events',
+ Actions: 'actions',
+} as const
+
+export type TimeUnitTypeApi = (typeof TimeUnitTypeApi)[keyof typeof TimeUnitTypeApi]
+
+export const TimeUnitTypeApi = {
+ Day: 'day',
+ Week: 'week',
+ Month: 'month',
+ Year: 'year',
+} as const
+
+export type InlineBehavioralTypeApi = (typeof InlineBehavioralTypeApi)[keyof typeof InlineBehavioralTypeApi]
+
+export const InlineBehavioralTypeApi = {
+ PerformedEvent: 'performed_event',
+ PerformedEventMultiple: 'performed_event_multiple',
+} as const
+
+export interface BehavioralPropertyFilterApi {
+ /** Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups */
+ event_filters?:
+ | (
+ | EventPropertyFilterApi
+ | PersonPropertyFilterApi
+ | ElementPropertyFilterApi
+ | FeaturePropertyFilterApi
+ | HogQLPropertyFilterApi
+ )[]
+ | null
+ event_type: BehavioralEventSourceApi
+ /** Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval */
+ explicit_datetime?: string | null
+ explicit_datetime_to?: string | null
+ /** Event name, or action id when event_type is 'actions' */
+ key: string
+ label?: string | null
+ /** Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators */
+ negation?: boolean | null
+ /** Count comparison for performed_event_multiple, defaults to exact */
+ operator?: PropertyOperatorApi | null
+ /** Count threshold for performed_event_multiple */
+ operator_value?: number | null
+ time_interval?: TimeUnitTypeApi | null
+ /** Relative time window size, paired with time_interval */
+ time_value?: number | null
+ /** Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP */
+ type?: 'behavioral'
+ value: InlineBehavioralTypeApi
+}
+
export interface DashboardFilterApi {
breakdown_filter?: BreakdownFilterApi | null
date_from?: string | null
@@ -894,6 +949,7 @@ export interface DashboardFilterApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
}
diff --git a/products/error_tracking/frontend/generated/api.schemas.ts b/products/error_tracking/frontend/generated/api.schemas.ts
index 33a4de809d71..e53d7ff93455 100644
--- a/products/error_tracking/frontend/generated/api.schemas.ts
+++ b/products/error_tracking/frontend/generated/api.schemas.ts
@@ -312,6 +312,61 @@ export interface WorkflowVariablePropertyFilterApi {
value?: (string | number | boolean)[] | string | number | boolean | null
}
+export type BehavioralEventSourceApi = (typeof BehavioralEventSourceApi)[keyof typeof BehavioralEventSourceApi]
+
+export const BehavioralEventSourceApi = {
+ Events: 'events',
+ Actions: 'actions',
+} as const
+
+export type TimeUnitTypeApi = (typeof TimeUnitTypeApi)[keyof typeof TimeUnitTypeApi]
+
+export const TimeUnitTypeApi = {
+ Day: 'day',
+ Week: 'week',
+ Month: 'month',
+ Year: 'year',
+} as const
+
+export type InlineBehavioralTypeApi = (typeof InlineBehavioralTypeApi)[keyof typeof InlineBehavioralTypeApi]
+
+export const InlineBehavioralTypeApi = {
+ PerformedEvent: 'performed_event',
+ PerformedEventMultiple: 'performed_event_multiple',
+} as const
+
+export interface BehavioralPropertyFilterApi {
+ /** Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups */
+ event_filters?:
+ | (
+ | EventPropertyFilterApi
+ | PersonPropertyFilterApi
+ | ElementPropertyFilterApi
+ | FeaturePropertyFilterApi
+ | HogQLPropertyFilterApi
+ )[]
+ | null
+ event_type: BehavioralEventSourceApi
+ /** Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval */
+ explicit_datetime?: string | null
+ explicit_datetime_to?: string | null
+ /** Event name, or action id when event_type is 'actions' */
+ key: string
+ label?: string | null
+ /** Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators */
+ negation?: boolean | null
+ /** Count comparison for performed_event_multiple, defaults to exact */
+ operator?: PropertyOperatorApi | null
+ /** Count threshold for performed_event_multiple */
+ operator_value?: number | null
+ time_interval?: TimeUnitTypeApi | null
+ /** Relative time window size, paired with time_interval */
+ time_value?: number | null
+ /** Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP */
+ type?: 'behavioral'
+ value: InlineBehavioralTypeApi
+}
+
export interface PropertyGroupFilterValueApi {
type: FilterLogicalOperatorApi
values: (
@@ -339,6 +394,7 @@ export interface PropertyGroupFilterValueApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
}
diff --git a/products/experiments/frontend/generated/api.schemas.ts b/products/experiments/frontend/generated/api.schemas.ts
index ec5f6cd9a108..15528f9cf213 100644
--- a/products/experiments/frontend/generated/api.schemas.ts
+++ b/products/experiments/frontend/generated/api.schemas.ts
@@ -1201,6 +1201,61 @@ export interface WorkflowVariablePropertyFilterApi {
value?: (string | number | boolean)[] | string | number | boolean | null
}
+export type BehavioralEventSourceApi = (typeof BehavioralEventSourceApi)[keyof typeof BehavioralEventSourceApi]
+
+export const BehavioralEventSourceApi = {
+ Events: 'events',
+ Actions: 'actions',
+} as const
+
+export type TimeUnitTypeApi = (typeof TimeUnitTypeApi)[keyof typeof TimeUnitTypeApi]
+
+export const TimeUnitTypeApi = {
+ Day: 'day',
+ Week: 'week',
+ Month: 'month',
+ Year: 'year',
+} as const
+
+export type InlineBehavioralTypeApi = (typeof InlineBehavioralTypeApi)[keyof typeof InlineBehavioralTypeApi]
+
+export const InlineBehavioralTypeApi = {
+ PerformedEvent: 'performed_event',
+ PerformedEventMultiple: 'performed_event_multiple',
+} as const
+
+export interface BehavioralPropertyFilterApi {
+ /** Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups */
+ event_filters?:
+ | (
+ | EventPropertyFilterApi
+ | PersonPropertyFilterApi
+ | ElementPropertyFilterApi
+ | FeaturePropertyFilterApi
+ | HogQLPropertyFilterApi
+ )[]
+ | null
+ event_type: BehavioralEventSourceApi
+ /** Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval */
+ explicit_datetime?: string | null
+ explicit_datetime_to?: string | null
+ /** Event name, or action id when event_type is 'actions' */
+ key: string
+ label?: string | null
+ /** Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators */
+ negation?: boolean | null
+ /** Count comparison for performed_event_multiple, defaults to exact */
+ operator?: PropertyOperatorApi | null
+ /** Count threshold for performed_event_multiple */
+ operator_value?: number | null
+ time_interval?: TimeUnitTypeApi | null
+ /** Relative time window size, paired with time_interval */
+ time_value?: number | null
+ /** Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP */
+ type?: 'behavioral'
+ value: InlineBehavioralTypeApi
+}
+
export interface ExperimentApiExposureConfigApi {
/** Custom exposure event name. Required when kind is 'ExperimentEventExposureConfig'. */
event?: string | null
@@ -1233,6 +1288,7 @@ export interface ExperimentApiExposureConfigApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
}
diff --git a/products/feature_flags/backend/test/test_filters_validation.py b/products/feature_flags/backend/test/test_filters_validation.py
index 7dc419b814bd..f54aaf3cbf64 100644
--- a/products/feature_flags/backend/test/test_filters_validation.py
+++ b/products/feature_flags/backend/test/test_filters_validation.py
@@ -362,6 +362,9 @@ class TestRejectSerdeUnsafeFilters(SimpleTestCase):
("property_type_not_string", {"groups": [{"properties": [{"key": "k", "type": 1}]}]}),
# Rust has no `event` variant, so one of these fails the team's whole cached set.
("property_type_event", {"groups": [{"properties": [{"key": "k", "type": "event"}]}]}),
+ # `behavioral` is a real insight filter type, but Rust flag matching has no variant
+ # for it (it can't evaluate events history) — it must stay rejected here.
+ ("property_type_behavioral", {"groups": [{"properties": [{"key": "$pageview", "type": "behavioral"}]}]}),
("property_type_missing", {"groups": [{"properties": [{"key": "k"}]}]}),
("property_empty", {"groups": [{"properties": [{}]}]}),
("property_key_missing", {"groups": [{"properties": [{"type": "person"}]}]}),
diff --git a/products/logs/frontend/generated/api.schemas.ts b/products/logs/frontend/generated/api.schemas.ts
index 2cd73c1b38ec..c2ab570680e4 100644
--- a/products/logs/frontend/generated/api.schemas.ts
+++ b/products/logs/frontend/generated/api.schemas.ts
@@ -284,6 +284,61 @@ export interface WorkflowVariablePropertyFilterApi {
value?: (string | number | boolean)[] | string | number | boolean | null
}
+export type BehavioralEventSourceApi = (typeof BehavioralEventSourceApi)[keyof typeof BehavioralEventSourceApi]
+
+export const BehavioralEventSourceApi = {
+ Events: 'events',
+ Actions: 'actions',
+} as const
+
+export type TimeUnitTypeApi = (typeof TimeUnitTypeApi)[keyof typeof TimeUnitTypeApi]
+
+export const TimeUnitTypeApi = {
+ Day: 'day',
+ Week: 'week',
+ Month: 'month',
+ Year: 'year',
+} as const
+
+export type InlineBehavioralTypeApi = (typeof InlineBehavioralTypeApi)[keyof typeof InlineBehavioralTypeApi]
+
+export const InlineBehavioralTypeApi = {
+ PerformedEvent: 'performed_event',
+ PerformedEventMultiple: 'performed_event_multiple',
+} as const
+
+export interface BehavioralPropertyFilterApi {
+ /** Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups */
+ event_filters?:
+ | (
+ | EventPropertyFilterApi
+ | PersonPropertyFilterApi
+ | ElementPropertyFilterApi
+ | FeaturePropertyFilterApi
+ | HogQLPropertyFilterApi
+ )[]
+ | null
+ event_type: BehavioralEventSourceApi
+ /** Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval */
+ explicit_datetime?: string | null
+ explicit_datetime_to?: string | null
+ /** Event name, or action id when event_type is 'actions' */
+ key: string
+ label?: string | null
+ /** Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators */
+ negation?: boolean | null
+ /** Count comparison for performed_event_multiple, defaults to exact */
+ operator?: PropertyOperatorApi | null
+ /** Count threshold for performed_event_multiple */
+ operator_value?: number | null
+ time_interval?: TimeUnitTypeApi | null
+ /** Relative time window size, paired with time_interval */
+ time_value?: number | null
+ /** Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP */
+ type?: 'behavioral'
+ value: InlineBehavioralTypeApi
+}
+
export interface PropertyGroupFilterValueApi {
type: FilterLogicalOperatorApi
values: (
@@ -311,6 +366,7 @@ export interface PropertyGroupFilterValueApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
}
diff --git a/products/marketing_analytics/frontend/generated/api.schemas.ts b/products/marketing_analytics/frontend/generated/api.schemas.ts
index e6444ed13dd7..0170b70b7553 100644
--- a/products/marketing_analytics/frontend/generated/api.schemas.ts
+++ b/products/marketing_analytics/frontend/generated/api.schemas.ts
@@ -390,6 +390,61 @@ export interface WorkflowVariablePropertyFilterApi {
value?: (string | number | boolean)[] | string | number | boolean | null
}
+export type BehavioralEventSourceApi = (typeof BehavioralEventSourceApi)[keyof typeof BehavioralEventSourceApi]
+
+export const BehavioralEventSourceApi = {
+ Events: 'events',
+ Actions: 'actions',
+} as const
+
+export type TimeUnitTypeApi = (typeof TimeUnitTypeApi)[keyof typeof TimeUnitTypeApi]
+
+export const TimeUnitTypeApi = {
+ Day: 'day',
+ Week: 'week',
+ Month: 'month',
+ Year: 'year',
+} as const
+
+export type InlineBehavioralTypeApi = (typeof InlineBehavioralTypeApi)[keyof typeof InlineBehavioralTypeApi]
+
+export const InlineBehavioralTypeApi = {
+ PerformedEvent: 'performed_event',
+ PerformedEventMultiple: 'performed_event_multiple',
+} as const
+
+export interface BehavioralPropertyFilterApi {
+ /** Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups */
+ event_filters?:
+ | (
+ | EventPropertyFilterApi
+ | PersonPropertyFilterApi
+ | ElementPropertyFilterApi
+ | FeaturePropertyFilterApi
+ | HogQLPropertyFilterApi
+ )[]
+ | null
+ event_type: BehavioralEventSourceApi
+ /** Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval */
+ explicit_datetime?: string | null
+ explicit_datetime_to?: string | null
+ /** Event name, or action id when event_type is 'actions' */
+ key: string
+ label?: string | null
+ /** Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators */
+ negation?: boolean | null
+ /** Count comparison for performed_event_multiple, defaults to exact */
+ operator?: PropertyOperatorApi | null
+ /** Count threshold for performed_event_multiple */
+ operator_value?: number | null
+ time_interval?: TimeUnitTypeApi | null
+ /** Relative time window size, paired with time_interval */
+ time_value?: number | null
+ /** Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP */
+ type?: 'behavioral'
+ value: InlineBehavioralTypeApi
+}
+
export type BaseMathTypeApi = (typeof BaseMathTypeApi)[keyof typeof BaseMathTypeApi]
export const BaseMathTypeApi = {
@@ -678,6 +733,7 @@ export interface ConversionGoalFilter1Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
kind?: 'EventsNode'
@@ -728,6 +784,7 @@ export interface ConversionGoalFilter1Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: ConversionGoalFilter1ApiResponse
@@ -774,6 +831,7 @@ export interface ConversionGoalFilter2Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
id: number
@@ -822,6 +880,7 @@ export interface ConversionGoalFilter2Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: ConversionGoalFilter2ApiResponse
@@ -870,6 +929,7 @@ export interface ConversionGoalFilter3Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
id: string
@@ -919,6 +979,7 @@ export interface ConversionGoalFilter3Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: ConversionGoalFilter3ApiResponse
@@ -989,6 +1050,7 @@ export interface PartialConversionGoalFilter1Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
kind?: 'EventsNode' | null
@@ -1037,6 +1099,7 @@ export interface PartialConversionGoalFilter1Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: PartialConversionGoalFilter1ApiResponse
@@ -1082,6 +1145,7 @@ export interface PartialConversionGoalFilter2Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
id?: number | null
@@ -1129,6 +1193,7 @@ export interface PartialConversionGoalFilter2Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: PartialConversionGoalFilter2ApiResponse
@@ -1176,6 +1241,7 @@ export interface PartialConversionGoalFilter3Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
id?: string | null
@@ -1224,6 +1290,7 @@ export interface PartialConversionGoalFilter3Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: PartialConversionGoalFilter3ApiResponse
diff --git a/products/product_analytics/frontend/generated/api.schemas.ts b/products/product_analytics/frontend/generated/api.schemas.ts
index 560535d11736..e280f0692a12 100644
--- a/products/product_analytics/frontend/generated/api.schemas.ts
+++ b/products/product_analytics/frontend/generated/api.schemas.ts
@@ -795,6 +795,61 @@ export interface WorkflowVariablePropertyFilterApi {
value?: (string | number | boolean)[] | string | number | boolean | null
}
+export type BehavioralEventSourceApi = (typeof BehavioralEventSourceApi)[keyof typeof BehavioralEventSourceApi]
+
+export const BehavioralEventSourceApi = {
+ Events: 'events',
+ Actions: 'actions',
+} as const
+
+export type TimeUnitTypeApi = (typeof TimeUnitTypeApi)[keyof typeof TimeUnitTypeApi]
+
+export const TimeUnitTypeApi = {
+ Day: 'day',
+ Week: 'week',
+ Month: 'month',
+ Year: 'year',
+} as const
+
+export type InlineBehavioralTypeApi = (typeof InlineBehavioralTypeApi)[keyof typeof InlineBehavioralTypeApi]
+
+export const InlineBehavioralTypeApi = {
+ PerformedEvent: 'performed_event',
+ PerformedEventMultiple: 'performed_event_multiple',
+} as const
+
+export interface BehavioralPropertyFilterApi {
+ /** Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups */
+ event_filters?:
+ | (
+ | EventPropertyFilterApi
+ | PersonPropertyFilterApi
+ | ElementPropertyFilterApi
+ | FeaturePropertyFilterApi
+ | HogQLPropertyFilterApi
+ )[]
+ | null
+ event_type: BehavioralEventSourceApi
+ /** Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval */
+ explicit_datetime?: string | null
+ explicit_datetime_to?: string | null
+ /** Event name, or action id when event_type is 'actions' */
+ key: string
+ label?: string | null
+ /** Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators */
+ negation?: boolean | null
+ /** Count comparison for performed_event_multiple, defaults to exact */
+ operator?: PropertyOperatorApi | null
+ /** Count threshold for performed_event_multiple */
+ operator_value?: number | null
+ time_interval?: TimeUnitTypeApi | null
+ /** Relative time window size, paired with time_interval */
+ time_value?: number | null
+ /** Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP */
+ type?: 'behavioral'
+ value: InlineBehavioralTypeApi
+}
+
export interface PropertyGroupFilterValueApi {
type: FilterLogicalOperatorApi
values: (
@@ -822,6 +877,7 @@ export interface PropertyGroupFilterValueApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
}
@@ -1232,6 +1288,7 @@ export interface EventsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
kind?: 'EventsNode'
@@ -1282,6 +1339,7 @@ export interface EventsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: EventsNodeApiResponse
@@ -1319,6 +1377,7 @@ export interface ActionsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
id: number
@@ -1367,6 +1426,7 @@ export interface ActionsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: ActionsNodeApiResponse
@@ -1406,6 +1466,7 @@ export interface DataWarehouseNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
id: string
@@ -1455,6 +1516,7 @@ export interface DataWarehouseNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: DataWarehouseNodeApiResponse
@@ -1494,6 +1556,7 @@ export interface GroupNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
kind?: 'GroupNode'
@@ -1548,6 +1611,7 @@ export interface GroupNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: GroupNodeApiResponse
@@ -1844,6 +1908,7 @@ export interface TrendsQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| PropertyGroupFilterApi
| null
@@ -1901,6 +1966,7 @@ export interface FunnelExclusionEventsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
funnelFromStep: number
@@ -1953,6 +2019,7 @@ export interface FunnelExclusionEventsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: FunnelExclusionEventsNodeApiResponse
@@ -1990,6 +2057,7 @@ export interface FunnelExclusionActionsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
funnelFromStep: number
@@ -2040,6 +2108,7 @@ export interface FunnelExclusionActionsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: FunnelExclusionActionsNodeApiResponse
@@ -2191,6 +2260,7 @@ export interface FunnelsDataWarehouseNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
id: string
@@ -2240,6 +2310,7 @@ export interface FunnelsDataWarehouseNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: FunnelsDataWarehouseNodeApiResponse
@@ -2295,6 +2366,7 @@ export interface FunnelsQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| PropertyGroupFilterApi
| null
@@ -2453,6 +2525,7 @@ export interface RetentionEntityApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
/** Data warehouse table name */
@@ -2546,6 +2619,7 @@ export interface RetentionQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| PropertyGroupFilterApi
| null
@@ -2683,6 +2757,7 @@ export interface PathsQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| PropertyGroupFilterApi
| null
@@ -2852,6 +2927,7 @@ export interface PathsV2QueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| PropertyGroupFilterApi
| null
@@ -2976,6 +3052,7 @@ export interface StickinessQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| PropertyGroupFilterApi
| null
@@ -3068,6 +3145,7 @@ export interface LifecycleDataWarehouseNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
id: string
@@ -3116,6 +3194,7 @@ export interface LifecycleDataWarehouseNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: LifecycleDataWarehouseNodeApiResponse
@@ -3169,6 +3248,7 @@ export interface LifecycleQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| PropertyGroupFilterApi
| null
@@ -4599,6 +4679,7 @@ export interface EventsQueryActionStepApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
selector?: string | null
@@ -4744,6 +4825,7 @@ export interface EventsQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
kind?: 'EventsQuery'
@@ -4783,6 +4865,7 @@ export interface EventsQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: EventsQueryResponseApi | null
@@ -4828,6 +4911,7 @@ export interface PersonsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
kind?: 'PersonsNode'
@@ -4861,6 +4945,7 @@ export interface PersonsNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: PersonsNodeApiResponse
@@ -4997,6 +5082,7 @@ export interface FunnelCorrelationActorsQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
includeRecordings?: boolean | null
@@ -5039,6 +5125,7 @@ export interface ExperimentEventExposureConfigApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
response?: ExperimentEventExposureConfigApiResponse
/** version of the node, used for schema migrations */
@@ -5091,6 +5178,7 @@ export interface ExperimentDataWarehouseNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
kind?: 'ExperimentDataWarehouseNode'
@@ -5138,6 +5226,7 @@ export interface ExperimentDataWarehouseNodeApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: ExperimentDataWarehouseNodeApiResponse
@@ -5511,6 +5600,7 @@ export interface HogQLFiltersApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
}
@@ -6132,6 +6222,7 @@ export interface SessionsQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
/** Filter test accounts */
@@ -6164,6 +6255,7 @@ export interface SessionsQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
kind?: 'SessionsQuery'
@@ -6203,6 +6295,7 @@ export interface SessionsQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: SessionsQueryResponseApi | null
@@ -6255,6 +6348,7 @@ export interface ConversionGoalFilter1Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
kind?: 'EventsNode'
@@ -6305,6 +6399,7 @@ export interface ConversionGoalFilter1Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: ConversionGoalFilter1ApiResponse
@@ -6351,6 +6446,7 @@ export interface ConversionGoalFilter2Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
id: number
@@ -6399,6 +6495,7 @@ export interface ConversionGoalFilter2Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: ConversionGoalFilter2ApiResponse
@@ -6447,6 +6544,7 @@ export interface ConversionGoalFilter3Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
id: string
@@ -6496,6 +6594,7 @@ export interface ConversionGoalFilter3Api {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: ConversionGoalFilter3ApiResponse
@@ -7023,6 +7122,7 @@ export interface TracesQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
/** Use random ordering instead of timestamp DESC. Useful for representative sampling to avoid recency bias. */
@@ -7094,6 +7194,7 @@ export interface TraceQueryApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
response?: TraceQueryResponseApi | null
@@ -8038,6 +8139,7 @@ export interface DashboardFilterApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
}
@@ -8076,6 +8178,7 @@ export interface TileFiltersApi {
| RevenueAnalyticsPropertyFilterApi
| AccountCustomPropertyFilterApi
| WorkflowVariablePropertyFilterApi
+ | BehavioralPropertyFilterApi
)[]
| null
}
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 0ea0e6e6da33..bda981a5fd28 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -2287,6 +2287,56 @@ export namespace Schemas {
value?: (string | number | boolean)[] | string | number | boolean | null;
}
+ export type BehavioralEventSource = typeof BehavioralEventSource[keyof typeof BehavioralEventSource];
+
+
+ export const BehavioralEventSource = {
+ Events: 'events',
+ Actions: 'actions',
+ } as const;
+
+ export type TimeUnitType = typeof TimeUnitType[keyof typeof TimeUnitType];
+
+
+ export const TimeUnitType = {
+ Day: 'day',
+ Week: 'week',
+ Month: 'month',
+ Year: 'year',
+ } as const;
+
+ export type InlineBehavioralType = typeof InlineBehavioralType[keyof typeof InlineBehavioralType];
+
+
+ export const InlineBehavioralType = {
+ PerformedEvent: 'performed_event',
+ PerformedEventMultiple: 'performed_event_multiple',
+ } as const;
+
+ export interface BehavioralPropertyFilter {
+ /** Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups */
+ event_filters?: (EventPropertyFilter | PersonPropertyFilter | ElementPropertyFilter | FeaturePropertyFilter | HogQLPropertyFilter)[] | null;
+ event_type: BehavioralEventSource;
+ /** Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval */
+ explicit_datetime?: string | null;
+ explicit_datetime_to?: string | null;
+ /** Event name, or action id when event_type is 'actions' */
+ key: string;
+ label?: string | null;
+ /** Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators */
+ negation?: boolean | null;
+ /** Count comparison for performed_event_multiple, defaults to exact */
+ operator?: PropertyOperator | null;
+ /** Count threshold for performed_event_multiple */
+ operator_value?: number | null;
+ time_interval?: TimeUnitType | null;
+ /** Relative time window size, paired with time_interval */
+ time_value?: number | null;
+ /** Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP */
+ type?: 'behavioral';
+ value: InlineBehavioralType;
+ }
+
export type BaseMathType = typeof BaseMathType[keyof typeof BaseMathType];
@@ -2547,7 +2597,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 | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
id: number;
kind?: 'ActionsNode';
math?: BaseMathType | FunnelMathType | PropertyMathType | CountPerActorMathType | GroupMathType | ExperimentMetricMathType | CalendarHeatmapMathType | 'hogql' | null;
@@ -2560,7 +2610,7 @@ export namespace Schemas {
name?: string | null;
optionalInFunnel?: boolean | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: ActionsNodeResponse;
/** version of the node, used for schema migrations */
version?: number | null;
@@ -3028,7 +3078,7 @@ export namespace Schemas {
export interface PropertyGroupFilterValue {
type: FilterLogicalOperator;
- values: (PropertyGroupFilterValue | EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[];
+ values: (PropertyGroupFilterValue | EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[];
}
export interface ActorsQueryResponse {
@@ -3228,7 +3278,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 | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
kind?: 'EventsNode';
limit?: number | null;
math?: BaseMathType | FunnelMathType | PropertyMathType | CountPerActorMathType | GroupMathType | ExperimentMetricMathType | CalendarHeatmapMathType | 'hogql' | null;
@@ -3243,7 +3293,7 @@ export namespace Schemas {
/** Columns to order by */
orderBy?: string[] | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: EventsNodeResponse;
/** version of the node, used for schema migrations */
version?: number | null;
@@ -3256,7 +3306,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 | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
id: string;
id_field: string;
kind?: 'DataWarehouseNode';
@@ -3270,7 +3320,7 @@ export namespace Schemas {
name?: string | null;
optionalInFunnel?: boolean | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: DataWarehouseNodeResponse;
table_name: string;
timestamp_field: string;
@@ -3283,7 +3333,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 | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
kind?: 'GroupNode';
limit?: number | null;
math?: BaseMathType | FunnelMathType | PropertyMathType | CountPerActorMathType | GroupMathType | ExperimentMetricMathType | CalendarHeatmapMathType | 'hogql' | null;
@@ -3302,7 +3352,7 @@ export namespace Schemas {
/** Columns to order by */
orderBy?: string[] | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: GroupNodeResponse;
/** version of the node, used for schema migrations */
version?: number | null;
@@ -3569,7 +3619,7 @@ export namespace Schemas {
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
/** Property filters for all series */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | PropertyGroupFilter | null;
response?: TrendsQueryResponse | null;
/** Sampling rate */
samplingFactor?: number | null;
@@ -3600,7 +3650,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 | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
funnelFromStep: number;
funnelToStep: number;
kind?: 'EventsNode';
@@ -3617,7 +3667,7 @@ export namespace Schemas {
/** Columns to order by */
orderBy?: string[] | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: FunnelExclusionEventsNodeResponse;
/** version of the node, used for schema migrations */
version?: number | null;
@@ -3628,7 +3678,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 | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
funnelFromStep: number;
funnelToStep: number;
id: number;
@@ -3643,7 +3693,7 @@ export namespace Schemas {
name?: string | null;
optionalInFunnel?: boolean | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: FunnelExclusionActionsNodeResponse;
/** version of the node, used for schema migrations */
version?: number | null;
@@ -3772,7 +3822,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 | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
id: string;
id_field: string;
kind?: 'FunnelsDataWarehouseNode';
@@ -3786,7 +3836,7 @@ export namespace Schemas {
name?: string | null;
optionalInFunnel?: boolean | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: FunnelsDataWarehouseNodeResponse;
table_name: string;
timestamp_field: string;
@@ -3815,7 +3865,7 @@ export namespace Schemas {
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
/** Property filters for all series */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | PropertyGroupFilter | null;
response?: FunnelsQueryResponse | null;
/** Sampling rate */
samplingFactor?: number | null;
@@ -3954,7 +4004,7 @@ export namespace Schemas {
name?: string | null;
order?: number | null;
/** filters on the event */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
/** Data warehouse table name */
table_name?: string | null;
/** Data warehouse timestamp field */
@@ -4022,7 +4072,7 @@ export namespace Schemas {
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
/** Property filters for all series */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | PropertyGroupFilter | null;
response?: RetentionQueryResponse | null;
/** Properties specific to the retention insight */
retentionFilter: RetentionFilter;
@@ -4134,7 +4184,7 @@ export namespace Schemas {
/** Properties specific to the paths insight */
pathsFilter: PathsFilter;
/** Property filters for all series */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | PropertyGroupFilter | null;
response?: PathsQueryResponse | null;
/** Sampling rate */
samplingFactor?: number | null;
@@ -4277,7 +4327,7 @@ export namespace Schemas {
/** Properties specific to the paths v2 insight */
pathsV2Filter?: PathsV2Filter | null;
/** Property filters for all series */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | PropertyGroupFilter | null;
response?: PathsV2QueryResponse | null;
/** Tags that will be added to the Query log comment */
tags?: QueryLogTags | null;
@@ -4372,7 +4422,7 @@ export namespace Schemas {
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
/** Property filters for all series */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | PropertyGroupFilter | null;
response?: StickinessQueryResponse | null;
/** Sampling rate */
samplingFactor?: number | null;
@@ -4438,7 +4488,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 | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
id: string;
kind?: 'LifecycleDataWarehouseNode';
math?: BaseMathType | FunnelMathType | PropertyMathType | CountPerActorMathType | GroupMathType | ExperimentMetricMathType | CalendarHeatmapMathType | 'hogql' | null;
@@ -4451,7 +4501,7 @@ export namespace Schemas {
name?: string | null;
optionalInFunnel?: boolean | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: LifecycleDataWarehouseNodeResponse;
table_name: string;
timestamp_field: string;
@@ -4478,7 +4528,7 @@ export namespace Schemas {
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
/** Property filters for all series */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | PropertyGroupFilter | null;
response?: LifecycleQueryResponse | null;
/** Sampling rate */
samplingFactor?: number | null;
@@ -4841,7 +4891,7 @@ export namespace Schemas {
export interface FunnelCorrelationActorsQuery {
funnelCorrelationPersonConverted?: boolean | null;
funnelCorrelationPersonEntity?: EventsNode | ActionsNode | DataWarehouseNode | null;
- funnelCorrelationPropertyValues?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ funnelCorrelationPropertyValues?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
includeRecordings?: boolean | null;
kind?: 'FunnelCorrelationActorsQuery';
/** Modifiers used when performing the query */
@@ -4858,7 +4908,7 @@ export namespace Schemas {
export interface ExperimentEventExposureConfig {
event: string;
kind?: 'ExperimentEventExposureConfig';
- properties: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[];
+ properties: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[];
response?: ExperimentEventExposureConfigResponse;
/** version of the node, used for schema migrations */
version?: number | null;
@@ -4887,7 +4937,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 | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
kind?: 'ExperimentDataWarehouseNode';
math?: BaseMathType | FunnelMathType | PropertyMathType | CountPerActorMathType | GroupMathType | ExperimentMetricMathType | CalendarHeatmapMathType | 'hogql' | null;
math_group_type_index?: MathGroupTypeIndex | null;
@@ -4899,7 +4949,7 @@ export namespace Schemas {
name?: string | null;
optionalInFunnel?: boolean | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: ExperimentDataWarehouseNodeResponse;
table_name: string;
timestamp_field: string;
@@ -5264,7 +5314,7 @@ export namespace Schemas {
filterTestAccounts?: boolean | null;
/** Time granularity consumed by the {filters.interval} placeholder. Set from the dashboard-level interval. */
interval?: IntervalType | null;
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
}
export interface HogQLNotice {
@@ -6964,7 +7014,7 @@ export namespace Schemas {
event?: string | null;
href?: string | null;
href_matching?: HrefMatching | null;
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
selector?: string | null;
tag_name?: string | null;
text?: string | null;
@@ -7018,7 +7068,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 | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (PropertyGroupFilter | PropertyGroupFilterValue | EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
kind?: 'EventsQuery';
/** Number of rows to return */
limit?: number | null;
@@ -7031,7 +7081,7 @@ export namespace Schemas {
/** Show events for a given person */
personId?: string | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: EventsQueryResponse | null;
/** Return a limited set of data. Required. */
select: string[];
@@ -7050,14 +7100,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 | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | 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 | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: PersonsNodeResponse;
search?: string | null;
tags?: QueryLogTags | null;
@@ -7501,11 +7551,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 | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ eventProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | 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 | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (PropertyGroupFilter | PropertyGroupFilterValue | EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
kind?: 'SessionsQuery';
/** Number of rows to return */
limit?: number | null;
@@ -7518,7 +7568,7 @@ export namespace Schemas {
/** Show sessions for a given person */
personId?: string | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: SessionsQueryResponse | null;
/** Return a limited set of data. Required. */
select: string[];
@@ -7544,7 +7594,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 | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
kind?: 'EventsNode';
limit?: number | null;
math?: BaseMathType | FunnelMathType | PropertyMathType | CountPerActorMathType | GroupMathType | ExperimentMetricMathType | CalendarHeatmapMathType | 'hogql' | null;
@@ -7559,7 +7609,7 @@ export namespace Schemas {
/** Columns to order by */
orderBy?: string[] | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: ConversionGoalFilter1Response;
schema_map: ConversionGoalFilter1SchemaMap;
/** version of the node, used for schema migrations */
@@ -7579,7 +7629,7 @@ export namespace Schemas {
counts_as_revenue?: boolean | null;
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 | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
id: number;
kind?: 'ActionsNode';
math?: BaseMathType | FunnelMathType | PropertyMathType | CountPerActorMathType | GroupMathType | ExperimentMetricMathType | CalendarHeatmapMathType | 'hogql' | null;
@@ -7592,7 +7642,7 @@ export namespace Schemas {
name?: string | null;
optionalInFunnel?: boolean | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: ConversionGoalFilter2Response;
schema_map: ConversionGoalFilter2SchemaMap;
/** version of the node, used for schema migrations */
@@ -7614,7 +7664,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 | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
id: string;
id_field: string;
kind?: 'DataWarehouseNode';
@@ -7628,7 +7678,7 @@ export namespace Schemas {
name?: string | null;
optionalInFunnel?: boolean | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: ConversionGoalFilter3Response;
schema_map: ConversionGoalFilter3SchemaMap;
table_name: string;
@@ -8116,7 +8166,7 @@ export namespace Schemas {
/** Person who performed the event */
personId?: string | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
/** Use random ordering instead of timestamp DESC. Useful for representative sampling to avoid recency bias. */
randomOrder?: boolean | null;
response?: TracesQueryResponse | null;
@@ -8161,7 +8211,7 @@ export namespace Schemas {
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: TraceQueryResponse | null;
tags?: QueryLogTags | null;
traceId: string;
@@ -8657,7 +8707,7 @@ export namespace Schemas {
filterTestAccounts?: boolean | null;
/** Time granularity forced onto every insight that supports one. Absent/null = inherit. */
interval?: IntervalType | null;
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
}
export interface TileFilters {
@@ -8669,7 +8719,7 @@ export namespace Schemas {
/** When true, this tile ignores every dashboard-level filter; the tile's own overrides still apply. */
ignoreDashboardFilters?: boolean | null;
interval?: IntervalType | null;
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
}
export interface InsightFilterOverrideContext {
@@ -14840,7 +14890,7 @@ export namespace Schemas {
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
/** Property filters for all series */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | PropertyGroupFilter | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | PropertyGroupFilter | null;
response?: CalendarHeatmapResponse | null;
/** Sampling rate */
samplingFactor?: number | null;
@@ -18777,7 +18827,7 @@ export namespace Schemas {
counts_as_revenue?: boolean | null;
custom_name?: string | null;
event?: string | null;
- fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
kind?: 'EventsNode' | null;
limit?: number | null;
math?: BaseMathType | FunnelMathType | PropertyMathType | CountPerActorMathType | GroupMathType | ExperimentMetricMathType | CalendarHeatmapMathType | 'hogql' | null;
@@ -18790,7 +18840,7 @@ export namespace Schemas {
name?: string | null;
optionalInFunnel?: boolean | null;
orderBy?: string[] | null;
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: PartialConversionGoalFilter1Response;
schema_map?: PartialConversionGoalFilter1SchemaMap;
version?: number | null;
@@ -18809,7 +18859,7 @@ export namespace Schemas {
counts_as_customer?: boolean | null;
counts_as_revenue?: boolean | null;
custom_name?: string | null;
- fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
id?: number | null;
kind?: 'ActionsNode' | null;
math?: BaseMathType | FunnelMathType | PropertyMathType | CountPerActorMathType | GroupMathType | ExperimentMetricMathType | CalendarHeatmapMathType | 'hogql' | null;
@@ -18821,7 +18871,7 @@ export namespace Schemas {
math_property_type?: string | null;
name?: string | null;
optionalInFunnel?: boolean | null;
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: PartialConversionGoalFilter2Response;
schema_map?: PartialConversionGoalFilter2SchemaMap;
version?: number | null;
@@ -18842,7 +18892,7 @@ export namespace Schemas {
custom_name?: string | null;
distinct_id_field?: string | null;
dw_source_type?: string | null;
- fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ fixedProperties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
id?: string | null;
id_field?: string | null;
kind?: 'DataWarehouseNode' | null;
@@ -18855,7 +18905,7 @@ export namespace Schemas {
math_property_type?: string | null;
name?: string | null;
optionalInFunnel?: boolean | null;
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: PartialConversionGoalFilter3Response;
schema_map?: PartialConversionGoalFilter3SchemaMap;
table_name?: string | null;
@@ -33017,7 +33067,7 @@ export namespace Schemas {
/** Defaults to 'ExperimentEventExposureConfig' when omitted. Pass 'ActionsNode' for an action-based exposure. */
kind?: Kind1 | null;
/** Property filters (event, person, and other supported types). Pass an empty array if no filters needed. */
- properties: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[];
+ properties: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[];
}
export interface ExperimentApiExposureCriteria {
@@ -33355,7 +33405,7 @@ export namespace Schemas {
exposure_frozen?: boolean | null;
/** Snapshot cohort the exposure freeze AND'd into this group's properties. */
exposure_frozen_cohort?: number | null;
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
rollout_percentage?: number | null;
sort_key?: string | null;
users_affected?: number | null;
@@ -42900,7 +42950,7 @@ export namespace Schemas {
/** Only sessions of persons exposed to this experiment, each ending at or after the person's first exposure as the experiment's exposure criteria count it. Resolved server-side from the experiment, so it links sessions even when the exposure events themselves carry no session id (e.g. server-side SDKs). Composes with the query's date range like any other filter, so set date_from to the experiment's start (or earlier) to cover the full run: the default window only reaches back a few days. */
experiment_exposure?: RecordingsQueryExperimentExposureFilter | null;
filter_test_accounts?: boolean | null;
- having_predicates?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ having_predicates?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | 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';
@@ -42913,7 +42963,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 | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | 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 */
@@ -42947,7 +42997,7 @@ export namespace Schemas {
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
/** Properties configurable in the interface */
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: TraceNeighborsQueryResponse | null;
tags?: QueryLogTags | null;
/** Timestamp of the current trace to find neighbors for */
@@ -43103,7 +43153,7 @@ export namespace Schemas {
kind?: 'MCPToolCallBreakdownQuery';
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: MCPToolCallBreakdownQueryResponse | null;
tags?: QueryLogTags | null;
/** version of the node, used for schema migrations */
@@ -43147,7 +43197,7 @@ export namespace Schemas {
kind?: 'MCPToolCallsAndErrorsQuery';
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | null;
response?: MCPToolCallsAndErrorsQueryResponse | null;
tags?: QueryLogTags | null;
/** version of the node, used for schema migrations */
@@ -43191,7 +43241,7 @@ export namespace Schemas {
kind?: 'MCPHarnessBreakdownQuery';
/** Modifiers used when performing the query */
modifiers?: HogQLQueryModifiers | null;
- properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter)[] | null;
+ properties?: (EventPropertyFilter | PersonPropertyFilter | PersonMetadataPropertyFilter | ElementPropertyFilter | EventMetadataPropertyFilter | SessionPropertyFilter | CohortPropertyFilter | RecordingPropertyFilter | LogEntryPropertyFilter | GroupPropertyFilter | FeaturePropertyFilter | FlagPropertyFilter | HogQLPropertyFilter | EmptyPropertyFilter | DataWarehousePropertyFilter | DataWarehousePersonPropertyFilter | ErrorTrackingIssueFilter | LogPropertyFilter | MetricPropertyFilter | SpanPropertyFilter | RevenueAnalyticsPropertyFilter | AccountCustomPropertyFilter | WorkflowVariablePropertyFilter | BehavioralPropertyFilter)[] | 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/endpoints/api.ts b/services/mcp/src/generated/endpoints/api.ts
index 7aa93972ba30..1eef04bd65a0 100644
--- a/services/mcp/src/generated/endpoints/api.ts
+++ b/services/mcp/src/generated/endpoints/api.ts
@@ -324,6 +324,13 @@ export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemOnenineTyp
export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwooneTypeDefault = `revenue_analytics`
export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwotwoTypeDefault = `account_custom_property`
export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwothreeTypeDefault = `workflow_variable`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault = `exact`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault = `event`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault = `person`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault = `element`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault = `feature`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault = `hogql`
+export const endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwofourTypeDefault = `behavioral`
export const endpointsRunCreateBodyRefreshDefault = `cache`
export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
@@ -1655,6 +1662,392 @@ export const EndpointsRunCreateBody = /* @__PURE__ */ zod.object({
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault
+ )
+ .describe('Event property with \"$feature\/\" prepended'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod.string().describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Count comparison for performed_event_multiple, defaults to exact'),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ endpointsRunCreateBodyFiltersOverrideOnePropertiesOneItemTwofourTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
zod.null(),
diff --git a/services/mcp/src/generated/error_tracking/api.ts b/services/mcp/src/generated/error_tracking/api.ts
index 642d2ff003cd..135fde76992a 100644
--- a/services/mcp/src/generated/error_tracking/api.ts
+++ b/services/mcp/src/generated/error_tracking/api.ts
@@ -54,6 +54,13 @@ export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwozeroTy
export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwotwoTypeDefault = `revenue_analytics`
export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwothreeTypeDefault = `account_custom_property`
export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwofourTypeDefault = `workflow_variable`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneOperatorDefault = `exact`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneTypeDefault = `event`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemTwoTypeDefault = `person`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemThreeTypeDefault = `element`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFourTypeDefault = `feature`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFiveTypeDefault = `hogql`
+export const errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwofiveTypeDefault = `behavioral`
export const errorTrackingAssignmentRulesCreateBodyOrderKeyDefault = 0
export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object({
@@ -1229,6 +1236,358 @@ export const ErrorTrackingAssignmentRulesCreateBody = /* @__PURE__ */ zod.object
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFourTypeDefault
+ )
+ .describe('Event property with \"$feature\/\" prepended'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod.string().describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Count comparison for performed_event_multiple, defaults to exact'),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod.union([zod.enum(['day', 'week', 'month', 'year']), zod.null()]).optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(errorTrackingAssignmentRulesCreateBodyFiltersOneValuesItemTwofiveTypeDefault)
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
})
@@ -1300,6 +1659,13 @@ export const errorTrackingBypassRulesCreateBodyFiltersOneValuesItemTwozeroTypeDe
export const errorTrackingBypassRulesCreateBodyFiltersOneValuesItemTwotwoTypeDefault = `revenue_analytics`
export const errorTrackingBypassRulesCreateBodyFiltersOneValuesItemTwothreeTypeDefault = `account_custom_property`
export const errorTrackingBypassRulesCreateBodyFiltersOneValuesItemTwofourTypeDefault = `workflow_variable`
+export const errorTrackingBypassRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneOperatorDefault = `exact`
+export const errorTrackingBypassRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneTypeDefault = `event`
+export const errorTrackingBypassRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemTwoTypeDefault = `person`
+export const errorTrackingBypassRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemThreeTypeDefault = `element`
+export const errorTrackingBypassRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFourTypeDefault = `feature`
+export const errorTrackingBypassRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFiveTypeDefault = `hogql`
+export const errorTrackingBypassRulesCreateBodyFiltersOneValuesItemTwofiveTypeDefault = `behavioral`
export const ErrorTrackingBypassRulesCreateBody = /* @__PURE__ */ zod.object({
filters: zod
@@ -2474,6 +2840,358 @@ export const ErrorTrackingBypassRulesCreateBody = /* @__PURE__ */ zod.object({
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ errorTrackingBypassRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ errorTrackingBypassRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ errorTrackingBypassRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ errorTrackingBypassRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ errorTrackingBypassRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFourTypeDefault
+ )
+ .describe('Event property with \"$feature\/\" prepended'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ errorTrackingBypassRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod.string().describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Count comparison for performed_event_multiple, defaults to exact'),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod.union([zod.enum(['day', 'week', 'month', 'year']), zod.null()]).optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(errorTrackingBypassRulesCreateBodyFiltersOneValuesItemTwofiveTypeDefault)
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
})
@@ -2516,6 +3234,13 @@ export const errorTrackingBypassRulesUpdateBodyFiltersOneValuesItemTwozeroTypeDe
export const errorTrackingBypassRulesUpdateBodyFiltersOneValuesItemTwotwoTypeDefault = `revenue_analytics`
export const errorTrackingBypassRulesUpdateBodyFiltersOneValuesItemTwothreeTypeDefault = `account_custom_property`
export const errorTrackingBypassRulesUpdateBodyFiltersOneValuesItemTwofourTypeDefault = `workflow_variable`
+export const errorTrackingBypassRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneOperatorDefault = `exact`
+export const errorTrackingBypassRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneTypeDefault = `event`
+export const errorTrackingBypassRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemTwoTypeDefault = `person`
+export const errorTrackingBypassRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemThreeTypeDefault = `element`
+export const errorTrackingBypassRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFourTypeDefault = `feature`
+export const errorTrackingBypassRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFiveTypeDefault = `hogql`
+export const errorTrackingBypassRulesUpdateBodyFiltersOneValuesItemTwofiveTypeDefault = `behavioral`
export const ErrorTrackingBypassRulesUpdateBody = /* @__PURE__ */ zod.object({
filters: zod
@@ -3690,6 +4415,358 @@ export const ErrorTrackingBypassRulesUpdateBody = /* @__PURE__ */ zod.object({
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ errorTrackingBypassRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ errorTrackingBypassRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ errorTrackingBypassRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ errorTrackingBypassRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ errorTrackingBypassRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFourTypeDefault
+ )
+ .describe('Event property with \"$feature\/\" prepended'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ errorTrackingBypassRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod.string().describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Count comparison for performed_event_multiple, defaults to exact'),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod.union([zod.enum(['day', 'week', 'month', 'year']), zod.null()]).optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(errorTrackingBypassRulesUpdateBodyFiltersOneValuesItemTwofiveTypeDefault)
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
})
@@ -3764,6 +4841,13 @@ export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwozeroType
export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwotwoTypeDefault = `revenue_analytics`
export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwothreeTypeDefault = `account_custom_property`
export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwofourTypeDefault = `workflow_variable`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneOperatorDefault = `exact`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneTypeDefault = `event`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemTwoTypeDefault = `person`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemThreeTypeDefault = `element`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFourTypeDefault = `feature`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFiveTypeDefault = `hogql`
+export const errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwofiveTypeDefault = `behavioral`
export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
filters: zod
@@ -4938,6 +6022,358 @@ export const ErrorTrackingGroupingRulesCreateBody = /* @__PURE__ */ zod.object({
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFourTypeDefault
+ )
+ .describe('Event property with \"$feature\/\" prepended'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod.string().describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Count comparison for performed_event_multiple, defaults to exact'),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod.union([zod.enum(['day', 'week', 'month', 'year']), zod.null()]).optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(errorTrackingGroupingRulesCreateBodyFiltersOneValuesItemTwofiveTypeDefault)
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
})
@@ -4999,6 +6435,13 @@ export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwozeroType
export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwotwoTypeDefault = `revenue_analytics`
export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwothreeTypeDefault = `account_custom_property`
export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwofourTypeDefault = `workflow_variable`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneOperatorDefault = `exact`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneTypeDefault = `event`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemTwoTypeDefault = `person`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemThreeTypeDefault = `element`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFourTypeDefault = `feature`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFiveTypeDefault = `hogql`
+export const errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwofiveTypeDefault = `behavioral`
export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
filters: zod
@@ -6181,6 +7624,370 @@ export const ErrorTrackingGroupingRulesUpdateBody = /* @__PURE__ */ zod.object({
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFourTypeDefault
+ )
+ .describe('Event property with \"$feature\/\" prepended'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([zod.string(), zod.number(), zod.boolean()])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod.string().describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Count comparison for performed_event_multiple, defaults to exact'),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(errorTrackingGroupingRulesUpdateBodyFiltersOneValuesItemTwofiveTypeDefault)
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
}),
@@ -6838,6 +8645,13 @@ export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwozeroT
export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwotwoTypeDefault = `revenue_analytics`
export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwothreeTypeDefault = `account_custom_property`
export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwofourTypeDefault = `workflow_variable`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneOperatorDefault = `exact`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneTypeDefault = `event`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemTwoTypeDefault = `person`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemThreeTypeDefault = `element`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFourTypeDefault = `feature`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFiveTypeDefault = `hogql`
+export const errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwofiveTypeDefault = `behavioral`
export const errorTrackingSuppressionRulesCreateBodySamplingRateDefault = 1
export const errorTrackingSuppressionRulesCreateBodySamplingRateMin = 0
export const errorTrackingSuppressionRulesCreateBodySamplingRateMax = 1
@@ -8015,6 +9829,358 @@ export const ErrorTrackingSuppressionRulesCreateBody = /* @__PURE__ */ zod.objec
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFourTypeDefault
+ )
+ .describe('Event property with \"$feature\/\" prepended'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod.string().describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Count comparison for performed_event_multiple, defaults to exact'),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod.union([zod.enum(['day', 'week', 'month', 'year']), zod.null()]).optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(errorTrackingSuppressionRulesCreateBodyFiltersOneValuesItemTwofiveTypeDefault)
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
})
@@ -8066,6 +10232,13 @@ export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwozeroT
export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwotwoTypeDefault = `revenue_analytics`
export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwothreeTypeDefault = `account_custom_property`
export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwofourTypeDefault = `workflow_variable`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneOperatorDefault = `exact`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneTypeDefault = `event`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemTwoTypeDefault = `person`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemThreeTypeDefault = `element`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFourTypeDefault = `feature`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFiveTypeDefault = `hogql`
+export const errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwofiveTypeDefault = `behavioral`
export const errorTrackingSuppressionRulesUpdateBodySamplingRateMin = 0
export const errorTrackingSuppressionRulesUpdateBodySamplingRateMax = 1
@@ -9242,6 +11415,358 @@ export const ErrorTrackingSuppressionRulesUpdateBody = /* @__PURE__ */ zod.objec
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFourTypeDefault
+ )
+ .describe('Event property with \"$feature\/\" prepended'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwofiveEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(zod.union([zod.string(), zod.number(), zod.boolean()])),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod.string().describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Count comparison for performed_event_multiple, defaults to exact'),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod.union([zod.enum(['day', 'week', 'month', 'year']), zod.null()]).optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(errorTrackingSuppressionRulesUpdateBodyFiltersOneValuesItemTwofiveTypeDefault)
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
})
diff --git a/services/mcp/src/generated/experiments/api.ts b/services/mcp/src/generated/experiments/api.ts
index 6897af481a17..3c7e05315536 100644
--- a/services/mcp/src/generated/experiments/api.ts
+++ b/services/mcp/src/generated/experiments/api.ts
@@ -784,6 +784,13 @@ export const experimentsCreateBodyExposureCriteriaOneActivationConfigOneProperti
export const experimentsCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwooneTypeDefault = `revenue_analytics`
export const experimentsCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwotwoTypeDefault = `account_custom_property`
export const experimentsCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwothreeTypeDefault = `workflow_variable`
+export const experimentsCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemOneOperatorDefault = `exact`
+export const experimentsCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemOneTypeDefault = `event`
+export const experimentsCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemTwoTypeDefault = `person`
+export const experimentsCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemThreeTypeDefault = `element`
+export const experimentsCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemFourTypeDefault = `feature`
+export const experimentsCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemFiveTypeDefault = `hogql`
+export const experimentsCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourTypeDefault = `behavioral`
export const experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemOneOperatorDefault = `exact`
export const experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemOneTypeDefault = `event`
export const experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwoTypeDefault = `person`
@@ -809,6 +816,13 @@ export const experimentsCreateBodyExposureCriteriaOneExposureConfigOneProperties
export const experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwooneTypeDefault = `revenue_analytics`
export const experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwotwoTypeDefault = `account_custom_property`
export const experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwothreeTypeDefault = `workflow_variable`
+export const experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemOneOperatorDefault = `exact`
+export const experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemOneTypeDefault = `event`
+export const experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemTwoTypeDefault = `person`
+export const experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemThreeTypeDefault = `element`
+export const experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemFourTypeDefault = `feature`
+export const experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemFiveTypeDefault = `hogql`
+export const experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourTypeDefault = `behavioral`
export const experimentsCreateBodyMetricsOneItemCompletionEventOnePropertiesOneItemOperatorDefault = `exact`
export const experimentsCreateBodyMetricsOneItemCompletionEventOnePropertiesOneItemTypeDefault = `event`
export const experimentsCreateBodyMetricsOneItemDenominatorOnePropertiesOneItemOperatorDefault = `exact`
@@ -2392,6 +2406,413 @@ export const ExperimentsCreateBody = /* @__PURE__ */ zod
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ experimentsCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ experimentsCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ experimentsCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ experimentsCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ experimentsCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemFourTypeDefault
+ )
+ .describe(
+ 'Event property with \"$feature\/\" prepended'
+ ),
+ 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.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ experimentsCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod
+ .string()
+ .describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Count comparison for performed_event_multiple, defaults to exact'
+ ),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ experimentsCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
)
.describe(
@@ -3691,55 +4112,462 @@ export const ExperimentsCreateBody = /* @__PURE__ */ zod
])
.optional(),
}),
- ])
- )
- .describe(
- 'Property filters (event, person, and other supported types). Pass an empty array if no filters needed.'
- ),
- }),
- zod.null(),
- ])
- .optional(),
- filterTestAccounts: zod.union([zod.boolean(), zod.null()]).optional(),
- multiple_variant_handling: zod
- .union([zod.enum(['exclude', 'first_seen']), zod.null()])
- .optional()
- .describe(
- "How to handle entities exposed to multiple variants. 'exclude' (default) drops them from the analysis; 'first_seen' assigns them to the variant from their earliest exposure."
- ),
- }),
- zod.null(),
- ])
- .optional()
- .describe('Exposure configuration including filter test accounts and custom exposure events.'),
- metrics: zod
- .union([
- zod
- .array(
- zod.object({
- completion_event: zod
- .union([
- zod.object({
- event: zod
- .union([zod.string(), zod.null()])
- .optional()
- .describe("Event name, e.g. '$pageview'. Required for EventsNode."),
- id: zod
- .union([zod.number(), zod.null()])
- .optional()
- .describe('Action ID. Required for ActionsNode.'),
- kind: zod.enum(['EventsNode', 'ActionsNode']),
- math: zod
- .union([
- zod.enum([
- 'total',
- 'sum',
- 'unique_session',
- 'min',
- 'max',
- 'avg',
- 'dau',
- 'unique_group',
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemFourTypeDefault
+ )
+ .describe(
+ 'Event property with \"$feature\/\" prepended'
+ ),
+ 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.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod
+ .string()
+ .describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Count comparison for performed_event_multiple, defaults to exact'
+ ),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ experimentsCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
+ ])
+ )
+ .describe(
+ 'Property filters (event, person, and other supported types). Pass an empty array if no filters needed.'
+ ),
+ }),
+ zod.null(),
+ ])
+ .optional(),
+ filterTestAccounts: zod.union([zod.boolean(), zod.null()]).optional(),
+ multiple_variant_handling: zod
+ .union([zod.enum(['exclude', 'first_seen']), zod.null()])
+ .optional()
+ .describe(
+ "How to handle entities exposed to multiple variants. 'exclude' (default) drops them from the analysis; 'first_seen' assigns them to the variant from their earliest exposure."
+ ),
+ }),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Exposure configuration including filter test accounts and custom exposure events.'),
+ metrics: zod
+ .union([
+ zod
+ .array(
+ zod.object({
+ completion_event: zod
+ .union([
+ zod.object({
+ event: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe("Event name, e.g. '$pageview'. Required for EventsNode."),
+ id: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Action ID. Required for ActionsNode.'),
+ kind: zod.enum(['EventsNode', 'ActionsNode']),
+ math: zod
+ .union([
+ zod.enum([
+ 'total',
+ 'sum',
+ 'unique_session',
+ 'min',
+ 'max',
+ 'avg',
+ 'dau',
+ 'unique_group',
'hogql',
]),
zod.null(),
@@ -5873,6 +6701,13 @@ export const experimentsPartialUpdateBodyExposureCriteriaOneActivationConfigOneP
export const experimentsPartialUpdateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwooneTypeDefault = `revenue_analytics`
export const experimentsPartialUpdateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwotwoTypeDefault = `account_custom_property`
export const experimentsPartialUpdateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwothreeTypeDefault = `workflow_variable`
+export const experimentsPartialUpdateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemOneOperatorDefault = `exact`
+export const experimentsPartialUpdateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemOneTypeDefault = `event`
+export const experimentsPartialUpdateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemTwoTypeDefault = `person`
+export const experimentsPartialUpdateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemThreeTypeDefault = `element`
+export const experimentsPartialUpdateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemFourTypeDefault = `feature`
+export const experimentsPartialUpdateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemFiveTypeDefault = `hogql`
+export const experimentsPartialUpdateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourTypeDefault = `behavioral`
export const experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemOneOperatorDefault = `exact`
export const experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemOneTypeDefault = `event`
export const experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwoTypeDefault = `person`
@@ -5898,6 +6733,13 @@ export const experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePro
export const experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwooneTypeDefault = `revenue_analytics`
export const experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwotwoTypeDefault = `account_custom_property`
export const experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwothreeTypeDefault = `workflow_variable`
+export const experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemOneOperatorDefault = `exact`
+export const experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemOneTypeDefault = `event`
+export const experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemTwoTypeDefault = `person`
+export const experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemThreeTypeDefault = `element`
+export const experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemFourTypeDefault = `feature`
+export const experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemFiveTypeDefault = `hogql`
+export const experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourTypeDefault = `behavioral`
export const experimentsPartialUpdateBodyMetricsOneItemCompletionEventOnePropertiesOneItemOperatorDefault = `exact`
export const experimentsPartialUpdateBodyMetricsOneItemCompletionEventOnePropertiesOneItemTypeDefault = `event`
export const experimentsPartialUpdateBodyMetricsOneItemDenominatorOnePropertiesOneItemOperatorDefault = `exact`
@@ -7478,6 +8320,413 @@ export const ExperimentsPartialUpdateBody = /* @__PURE__ */ zod
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ experimentsPartialUpdateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ experimentsPartialUpdateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ experimentsPartialUpdateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ experimentsPartialUpdateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ experimentsPartialUpdateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemFourTypeDefault
+ )
+ .describe(
+ 'Event property with \"$feature\/\" prepended'
+ ),
+ 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.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ experimentsPartialUpdateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod
+ .string()
+ .describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Count comparison for performed_event_multiple, defaults to exact'
+ ),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ experimentsPartialUpdateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
)
.describe(
@@ -8716,66 +9965,473 @@ export const ExperimentsPartialUpdateBody = /* @__PURE__ */ zod
zod.null(),
])
.optional(),
- }),
- zod.object({
- key: zod.string(),
- label: zod.union([zod.string(), zod.null()]).optional(),
- operator: zod.enum([
- 'exact',
- 'is_not',
- 'icontains',
- 'not_icontains',
- 'starts_with',
- 'not_starts_with',
- 'ends_with',
- 'not_ends_with',
- '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',
- ]),
+ }),
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('workflow_variable')
+ .default(
+ experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwothreeTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([zod.string(), zod.number(), zod.boolean()])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemFourTypeDefault
+ )
+ .describe(
+ 'Event property with \"$feature\/\" prepended'
+ ),
+ 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.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod
+ .string()
+ .describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Count comparison for performed_event_multiple, defaults to exact'
+ ),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
type: zod
- .literal('workflow_variable')
+ .literal('behavioral')
.default(
- experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwothreeTypeDefault
+ experimentsPartialUpdateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
),
- value: zod
- .union([
- zod.array(
- zod.union([zod.string(), zod.number(), zod.boolean()])
- ),
- zod.string(),
- zod.number(),
- zod.boolean(),
- zod.null(),
- ])
- .optional(),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
}),
])
)
@@ -11040,6 +12696,13 @@ export const experimentsDuplicateCreateBodyExposureCriteriaOneActivationConfigOn
export const experimentsDuplicateCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwooneTypeDefault = `revenue_analytics`
export const experimentsDuplicateCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwotwoTypeDefault = `account_custom_property`
export const experimentsDuplicateCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwothreeTypeDefault = `workflow_variable`
+export const experimentsDuplicateCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemOneOperatorDefault = `exact`
+export const experimentsDuplicateCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemOneTypeDefault = `event`
+export const experimentsDuplicateCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemTwoTypeDefault = `person`
+export const experimentsDuplicateCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemThreeTypeDefault = `element`
+export const experimentsDuplicateCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemFourTypeDefault = `feature`
+export const experimentsDuplicateCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemFiveTypeDefault = `hogql`
+export const experimentsDuplicateCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourTypeDefault = `behavioral`
export const experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemOneOperatorDefault = `exact`
export const experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemOneTypeDefault = `event`
export const experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwoTypeDefault = `person`
@@ -11065,6 +12728,13 @@ export const experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOneP
export const experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwooneTypeDefault = `revenue_analytics`
export const experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwotwoTypeDefault = `account_custom_property`
export const experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwothreeTypeDefault = `workflow_variable`
+export const experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemOneOperatorDefault = `exact`
+export const experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemOneTypeDefault = `event`
+export const experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemTwoTypeDefault = `person`
+export const experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemThreeTypeDefault = `element`
+export const experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemFourTypeDefault = `feature`
+export const experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemFiveTypeDefault = `hogql`
+export const experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourTypeDefault = `behavioral`
export const experimentsDuplicateCreateBodyMetricsOneItemCompletionEventOnePropertiesOneItemOperatorDefault = `exact`
export const experimentsDuplicateCreateBodyMetricsOneItemCompletionEventOnePropertiesOneItemTypeDefault = `event`
export const experimentsDuplicateCreateBodyMetricsOneItemDenominatorOnePropertiesOneItemOperatorDefault = `exact`
@@ -12544,6 +14214,413 @@ export const ExperimentsDuplicateCreateBody = /* @__PURE__ */ zod
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ experimentsDuplicateCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ experimentsDuplicateCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ experimentsDuplicateCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ experimentsDuplicateCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ experimentsDuplicateCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemFourTypeDefault
+ )
+ .describe(
+ 'Event property with \"$feature\/\" prepended'
+ ),
+ 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.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ experimentsDuplicateCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod
+ .string()
+ .describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Count comparison for performed_event_multiple, defaults to exact'
+ ),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ experimentsDuplicateCreateBodyExposureCriteriaOneActivationConfigOnePropertiesItemTwofourTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
)
.describe(
@@ -13843,6 +15920,413 @@ export const ExperimentsDuplicateCreateBody = /* @__PURE__ */ zod
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemFourTypeDefault
+ )
+ .describe(
+ 'Event property with \"$feature\/\" prepended'
+ ),
+ 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.string(),
+ label: zod
+ .union([zod.string(), zod.null()])
+ .optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod
+ .string()
+ .describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Count comparison for performed_event_multiple, defaults to exact'
+ ),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ experimentsDuplicateCreateBodyExposureCriteriaOneExposureConfigOnePropertiesItemTwofourTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
)
.describe(
diff --git a/services/mcp/src/generated/logs/api.ts b/services/mcp/src/generated/logs/api.ts
index a7cf01681cb3..97b09a79f604 100644
--- a/services/mcp/src/generated/logs/api.ts
+++ b/services/mcp/src/generated/logs/api.ts
@@ -58,6 +58,13 @@ export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwo
export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwotwoTypeDefault = `revenue_analytics`
export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwothreeTypeDefault = `account_custom_property`
export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofourTypeDefault = `workflow_variable`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemOneOperatorDefault = `exact`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemOneTypeDefault = `event`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemTwoTypeDefault = `person`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemThreeTypeDefault = `element`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemFourTypeDefault = `feature`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemFiveTypeDefault = `hogql`
+export const logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveTypeDefault = `behavioral`
export const logsAlertsCreateBodyThresholdCountDefault = 100
export const logsAlertsCreateBodyThresholdCountMin = 0
@@ -1319,6 +1326,398 @@ export const LogsAlertsCreateBody = /* @__PURE__ */ zod.object({
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemFourTypeDefault
+ )
+ .describe(
+ 'Event property with \"$feature\/\" prepended'
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod
+ .string()
+ .describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Count comparison for performed_event_multiple, defaults to exact'
+ ),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ logsAlertsCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
})
@@ -1450,6 +1849,13 @@ export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValues
export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwotwoTypeDefault = `revenue_analytics`
export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwothreeTypeDefault = `account_custom_property`
export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofourTypeDefault = `workflow_variable`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemOneOperatorDefault = `exact`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemOneTypeDefault = `event`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemTwoTypeDefault = `person`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemThreeTypeDefault = `element`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemFourTypeDefault = `feature`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemFiveTypeDefault = `hogql`
+export const logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveTypeDefault = `behavioral`
export const logsAlertsPartialUpdateBodyThresholdCountMin = 0
export const logsAlertsPartialUpdateBodyEvaluationPeriodsMax = 10
@@ -2705,6 +3111,398 @@ export const LogsAlertsPartialUpdateBody = /* @__PURE__ */ zod.object({
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemFourTypeDefault
+ )
+ .describe(
+ 'Event property with \"$feature\/\" prepended'
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod
+ .string()
+ .describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Count comparison for performed_event_multiple, defaults to exact'
+ ),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ logsAlertsPartialUpdateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
})
@@ -2901,6 +3699,13 @@ export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValue
export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwotwoTypeDefault = `revenue_analytics`
export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwothreeTypeDefault = `account_custom_property`
export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofourTypeDefault = `workflow_variable`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemOneOperatorDefault = `exact`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemOneTypeDefault = `event`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemTwoTypeDefault = `person`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemThreeTypeDefault = `element`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemFourTypeDefault = `feature`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemFiveTypeDefault = `hogql`
+export const logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveTypeDefault = `behavioral`
export const logsAlertsSimulateCreateBodyThresholdCountMin = 0
export const logsAlertsSimulateCreateBodyCheckIntervalMinutesDefault = 5
@@ -4153,6 +4958,398 @@ export const LogsAlertsSimulateCreateBody = /* @__PURE__ */ zod.object({
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemFourTypeDefault
+ )
+ .describe(
+ 'Event property with \"$feature\/\" prepended'
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod
+ .string()
+ .describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Count comparison for performed_event_multiple, defaults to exact'
+ ),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ logsAlertsSimulateCreateBodyFiltersOneFilterGroupOneValuesItemValuesItemTwofiveTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
})
diff --git a/services/mcp/src/generated/marketing_analytics/api.ts b/services/mcp/src/generated/marketing_analytics/api.ts
index 10195d04e769..2694693290de 100644
--- a/services/mcp/src/generated/marketing_analytics/api.ts
+++ b/services/mcp/src/generated/marketing_analytics/api.ts
@@ -71,6 +71,13 @@ export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneF
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneFixedPropertiesOneItemTwooneTypeDefault = `revenue_analytics`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneFixedPropertiesOneItemTwotwoTypeDefault = `account_custom_property`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneFixedPropertiesOneItemTwothreeTypeDefault = `workflow_variable`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault = `exact`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault = `event`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault = `person`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault = `element`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault = `feature`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault = `hogql`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneFixedPropertiesOneItemTwofourTypeDefault = `behavioral`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneKindDefault = `EventsNode`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOnePropertiesOneItemOneOperatorDefault = `exact`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOnePropertiesOneItemOneTypeDefault = `event`
@@ -97,6 +104,13 @@ export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneP
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOnePropertiesOneItemTwooneTypeDefault = `revenue_analytics`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOnePropertiesOneItemTwotwoTypeDefault = `account_custom_property`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOnePropertiesOneItemTwothreeTypeDefault = `workflow_variable`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault = `exact`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault = `event`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault = `person`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault = `element`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault = `feature`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault = `hogql`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOnePropertiesOneItemTwofourTypeDefault = `behavioral`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemOneOperatorDefault = `exact`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemOneTypeDefault = `event`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemTwoTypeDefault = `person`
@@ -122,6 +136,13 @@ export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoF
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemTwooneTypeDefault = `revenue_analytics`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemTwotwoTypeDefault = `account_custom_property`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemTwothreeTypeDefault = `workflow_variable`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault = `exact`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault = `event`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault = `person`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault = `element`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault = `feature`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault = `hogql`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemTwofourTypeDefault = `behavioral`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoKindDefault = `ActionsNode`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoPropertiesOneItemOneOperatorDefault = `exact`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoPropertiesOneItemOneTypeDefault = `event`
@@ -148,6 +169,13 @@ export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoP
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoPropertiesOneItemTwooneTypeDefault = `revenue_analytics`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoPropertiesOneItemTwotwoTypeDefault = `account_custom_property`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoPropertiesOneItemTwothreeTypeDefault = `workflow_variable`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault = `exact`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault = `event`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault = `person`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault = `element`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault = `feature`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault = `hogql`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoPropertiesOneItemTwofourTypeDefault = `behavioral`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemOneOperatorDefault = `exact`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemOneTypeDefault = `event`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemTwoTypeDefault = `person`
@@ -173,6 +201,13 @@ export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThre
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemTwooneTypeDefault = `revenue_analytics`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemTwotwoTypeDefault = `account_custom_property`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemTwothreeTypeDefault = `workflow_variable`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault = `exact`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault = `event`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault = `person`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault = `element`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault = `feature`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault = `hogql`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemTwofourTypeDefault = `behavioral`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeKindDefault = `DataWarehouseNode`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreePropertiesOneItemOneOperatorDefault = `exact`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreePropertiesOneItemOneTypeDefault = `event`
@@ -199,6 +234,13 @@ export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThre
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreePropertiesOneItemTwooneTypeDefault = `revenue_analytics`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreePropertiesOneItemTwotwoTypeDefault = `account_custom_property`
export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreePropertiesOneItemTwothreeTypeDefault = `workflow_variable`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault = `exact`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault = `event`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault = `person`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault = `element`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault = `feature`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault = `hogql`
+export const marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreePropertiesOneItemTwofourTypeDefault = `behavioral`
export const MarketingAnalyticsConversionGoalsUpdatePartialUpdateBody = /* @__PURE__ */ zod
.object({
@@ -1441,6 +1483,398 @@ export const MarketingAnalyticsConversionGoalsUpdatePartialUpdateBody = /* @__PU
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault
+ )
+ .describe(
+ 'Event property with \"$feature\/\" prepended'
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod
+ .string()
+ .describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Count comparison for performed_event_multiple, defaults to exact'
+ ),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOneFixedPropertiesOneItemTwofourTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
zod.null(),
@@ -2905,6 +3339,398 @@ export const MarketingAnalyticsConversionGoalsUpdatePartialUpdateBody = /* @__PU
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault
+ )
+ .describe(
+ 'Event property with \"$feature\/\" prepended'
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod
+ .string()
+ .describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Count comparison for performed_event_multiple, defaults to exact'
+ ),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneOnePropertiesOneItemTwofourTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
zod.null(),
@@ -4155,6 +4981,398 @@ export const MarketingAnalyticsConversionGoalsUpdatePartialUpdateBody = /* @__PU
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault
+ )
+ .describe(
+ 'Event property with \"$feature\/\" prepended'
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod
+ .string()
+ .describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Count comparison for performed_event_multiple, defaults to exact'
+ ),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoFixedPropertiesOneItemTwofourTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
zod.null(),
@@ -5618,6 +6836,398 @@ export const MarketingAnalyticsConversionGoalsUpdatePartialUpdateBody = /* @__PU
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault
+ )
+ .describe(
+ 'Event property with \"$feature\/\" prepended'
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod
+ .string()
+ .describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Count comparison for performed_event_multiple, defaults to exact'
+ ),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneTwoPropertiesOneItemTwofourTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
zod.null(),
@@ -6870,6 +8480,398 @@ export const MarketingAnalyticsConversionGoalsUpdatePartialUpdateBody = /* @__PU
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault
+ )
+ .describe(
+ 'Event property with \"$feature\/\" prepended'
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod
+ .string()
+ .describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Count comparison for performed_event_multiple, defaults to exact'
+ ),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreeFixedPropertiesOneItemTwofourTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
zod.null(),
@@ -8334,6 +10336,398 @@ export const MarketingAnalyticsConversionGoalsUpdatePartialUpdateBody = /* @__PU
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault
+ )
+ .describe(
+ 'Event property with \"$feature\/\" prepended'
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod
+ .string()
+ .describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Count comparison for performed_event_multiple, defaults to exact'
+ ),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ marketingAnalyticsConversionGoalsUpdatePartialUpdateBodyGoalOneThreePropertiesOneItemTwofourTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
zod.null(),
@@ -8395,6 +10789,13 @@ export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneFixedPro
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneFixedPropertiesOneItemTwooneTypeDefault = `revenue_analytics`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneFixedPropertiesOneItemTwotwoTypeDefault = `account_custom_property`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneFixedPropertiesOneItemTwothreeTypeDefault = `workflow_variable`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault = `exact`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault = `event`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault = `person`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault = `element`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault = `feature`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault = `hogql`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneFixedPropertiesOneItemTwofourTypeDefault = `behavioral`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneKindDefault = `EventsNode`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOnePropertiesOneItemOneOperatorDefault = `exact`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOnePropertiesOneItemOneTypeDefault = `event`
@@ -8421,6 +10822,13 @@ export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneProperti
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOnePropertiesOneItemTwooneTypeDefault = `revenue_analytics`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOnePropertiesOneItemTwotwoTypeDefault = `account_custom_property`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOnePropertiesOneItemTwothreeTypeDefault = `workflow_variable`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault = `exact`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault = `event`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault = `person`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault = `element`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault = `feature`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault = `hogql`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOnePropertiesOneItemTwofourTypeDefault = `behavioral`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemOneOperatorDefault = `exact`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemOneTypeDefault = `event`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemTwoTypeDefault = `person`
@@ -8446,6 +10854,13 @@ export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPro
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemTwooneTypeDefault = `revenue_analytics`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemTwotwoTypeDefault = `account_custom_property`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemTwothreeTypeDefault = `workflow_variable`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault = `exact`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault = `event`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault = `person`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault = `element`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault = `feature`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault = `hogql`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemTwofourTypeDefault = `behavioral`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoKindDefault = `ActionsNode`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoPropertiesOneItemOneOperatorDefault = `exact`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoPropertiesOneItemOneTypeDefault = `event`
@@ -8472,6 +10887,13 @@ export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoProperti
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoPropertiesOneItemTwooneTypeDefault = `revenue_analytics`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoPropertiesOneItemTwotwoTypeDefault = `account_custom_property`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoPropertiesOneItemTwothreeTypeDefault = `workflow_variable`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault = `exact`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault = `event`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault = `person`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault = `element`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault = `feature`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault = `hogql`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoPropertiesOneItemTwofourTypeDefault = `behavioral`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemOneOperatorDefault = `exact`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemOneTypeDefault = `event`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemTwoTypeDefault = `person`
@@ -8497,6 +10919,13 @@ export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedP
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemTwooneTypeDefault = `revenue_analytics`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemTwotwoTypeDefault = `account_custom_property`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemTwothreeTypeDefault = `workflow_variable`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault = `exact`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault = `event`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault = `person`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault = `element`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault = `feature`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault = `hogql`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemTwofourTypeDefault = `behavioral`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeKindDefault = `DataWarehouseNode`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreePropertiesOneItemOneOperatorDefault = `exact`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreePropertiesOneItemOneTypeDefault = `event`
@@ -8523,6 +10952,13 @@ export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeProper
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreePropertiesOneItemTwooneTypeDefault = `revenue_analytics`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreePropertiesOneItemTwotwoTypeDefault = `account_custom_property`
export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreePropertiesOneItemTwothreeTypeDefault = `workflow_variable`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault = `exact`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault = `event`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault = `person`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault = `element`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault = `feature`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault = `hogql`
+export const marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreePropertiesOneItemTwofourTypeDefault = `behavioral`
export const MarketingAnalyticsConversionGoalsCreateCreateBody = /* @__PURE__ */ zod.object({
goal: zod
@@ -9771,6 +12207,392 @@ export const MarketingAnalyticsConversionGoalsCreateCreateBody = /* @__PURE__ */
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault
+ )
+ .describe('Event property with \"$feature\/\" prepended'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneFixedPropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod.string().describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Count comparison for performed_event_multiple, defaults to exact'),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOneFixedPropertiesOneItemTwofourTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
zod.null(),
@@ -11233,6 +14055,392 @@ export const MarketingAnalyticsConversionGoalsCreateCreateBody = /* @__PURE__ */
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault
+ )
+ .describe('Event property with \"$feature\/\" prepended'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOnePropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod.string().describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Count comparison for performed_event_multiple, defaults to exact'),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneOnePropertiesOneItemTwofourTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
zod.null(),
@@ -12489,6 +15697,392 @@ export const MarketingAnalyticsConversionGoalsCreateCreateBody = /* @__PURE__ */
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault
+ )
+ .describe('Event property with \"$feature\/\" prepended'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod.string().describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Count comparison for performed_event_multiple, defaults to exact'),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoFixedPropertiesOneItemTwofourTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
zod.null(),
@@ -13947,6 +17541,392 @@ export const MarketingAnalyticsConversionGoalsCreateCreateBody = /* @__PURE__ */
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault
+ )
+ .describe('Event property with \"$feature\/\" prepended'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoPropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod.string().describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Count comparison for performed_event_multiple, defaults to exact'),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneTwoPropertiesOneItemTwofourTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
zod.null(),
@@ -15205,6 +19185,392 @@ export const MarketingAnalyticsConversionGoalsCreateCreateBody = /* @__PURE__ */
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault
+ )
+ .describe('Event property with \"$feature\/\" prepended'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod.string().describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Count comparison for performed_event_multiple, defaults to exact'),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreeFixedPropertiesOneItemTwofourTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
zod.null(),
@@ -16664,6 +21030,392 @@ export const MarketingAnalyticsConversionGoalsCreateCreateBody = /* @__PURE__ */
])
.optional(),
}),
+ zod.object({
+ event_filters: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.object({
+ key: zod.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemOneOperatorDefault
+ ),
+ type: zod
+ .literal('event')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemOneTypeDefault
+ )
+ .describe('Event properties'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemTwoTypeDefault
+ )
+ .describe('Person properties'),
+ 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(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('element')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemThreeTypeDefault
+ ),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ operator: zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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('feature')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemFourTypeDefault
+ )
+ .describe('Event property with \"$feature\/\" prepended'),
+ 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.string(),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ type: zod
+ .literal('hogql')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreePropertiesOneItemTwofourEventFiltersOneItemFiveTypeDefault
+ ),
+ value: zod
+ .union([
+ zod.array(
+ zod.union([
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ ])
+ ),
+ zod.string(),
+ zod.number(),
+ zod.boolean(),
+ zod.null(),
+ ])
+ .optional(),
+ }),
+ ])
+ ),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral\/cohort filters and groups'
+ ),
+ event_type: zod.enum(['events', 'actions']),
+ explicit_datetime: zod
+ .union([zod.string(), zod.null()])
+ .optional()
+ .describe(
+ 'Absolute or relative (e.g. -30d) lower date bound — alternative to time_value\/time_interval'
+ ),
+ explicit_datetime_to: zod.union([zod.string(), zod.null()]).optional(),
+ key: zod.string().describe("Event name, or action id when event_type is 'actions'"),
+ label: zod.union([zod.string(), zod.null()]).optional(),
+ negation: zod
+ .union([zod.boolean(), zod.null()])
+ .optional()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ ),
+ operator: zod
+ .union([
+ zod.enum([
+ 'exact',
+ 'is_not',
+ 'icontains',
+ 'not_icontains',
+ 'starts_with',
+ 'not_starts_with',
+ 'ends_with',
+ 'not_ends_with',
+ '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',
+ ]),
+ zod.null(),
+ ])
+ .optional()
+ .describe('Count comparison for performed_event_multiple, defaults to exact'),
+ operator_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Count threshold for performed_event_multiple'),
+ time_interval: zod
+ .union([zod.enum(['day', 'week', 'month', 'year']), zod.null()])
+ .optional(),
+ time_value: zod
+ .union([zod.number(), zod.null()])
+ .optional()
+ .describe('Relative time window size, paired with time_interval'),
+ type: zod
+ .literal('behavioral')
+ .default(
+ marketingAnalyticsConversionGoalsCreateCreateBodyGoalOneThreePropertiesOneItemTwofourTypeDefault
+ )
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ ),
+ value: zod.enum(['performed_event', 'performed_event_multiple']),
+ }),
])
),
zod.null(),
diff --git a/services/mcp/src/tools/generated/mcp_analytics.ts b/services/mcp/src/tools/generated/mcp_analytics.ts
index 93b2bd6a9e42..cfe0c39b4c5b 100644
--- a/services/mcp/src/tools/generated/mcp_analytics.ts
+++ b/services/mcp/src/tools/generated/mcp_analytics.ts
@@ -507,6 +507,54 @@ const WorkflowVariablePropertyFilter = z.object({
value: PropertyFilterValue.optional(),
})
+const BehavioralEventSource = z.enum(['events', 'actions'])
+
+const TimeUnitType = z.enum(['day', 'week', 'month', 'year'])
+
+const InlineBehavioralType = z.enum(['performed_event', 'performed_event_multiple'])
+
+const BehavioralPropertyFilter = z.object({
+ event_filters: z
+ .array(
+ z.union([
+ EventPropertyFilter,
+ PersonPropertyFilter,
+ ElementPropertyFilter,
+ FeaturePropertyFilter,
+ HogQLPropertyFilter,
+ ])
+ )
+ .describe(
+ 'Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups'
+ )
+ .optional(),
+ event_type: BehavioralEventSource,
+ explicit_datetime: z
+ .string()
+ .describe('Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval')
+ .optional(),
+ explicit_datetime_to: z.string().optional(),
+ key: z.string().describe("Event name, or action id when event_type is 'actions'"),
+ label: z.string().optional(),
+ negation: z.coerce
+ .boolean()
+ .describe(
+ 'Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators'
+ )
+ .optional(),
+ operator: PropertyOperator.describe('Count comparison for performed_event_multiple, defaults to exact').optional(),
+ operator_value: z.coerce.number().int().describe('Count threshold for performed_event_multiple').optional(),
+ time_interval: TimeUnitType.optional(),
+ time_value: z.coerce.number().int().describe('Relative time window size, paired with time_interval').optional(),
+ type: z
+ .literal('behavioral')
+ .describe(
+ "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP"
+ )
+ .default('behavioral'),
+ value: InlineBehavioralType,
+})
+
const AnyPropertyFilter = z.union([
EventPropertyFilter,
PersonPropertyFilter,
@@ -531,6 +579,7 @@ const AnyPropertyFilter = z.union([
RevenueAnalyticsPropertyFilter,
AccountCustomPropertyFilter,
WorkflowVariablePropertyFilter,
+ BehavioralPropertyFilter,
])
const MCPHarnessBreakdownQuery = z.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 7e56772bcbfa..81fe5ca02554 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
@@ -2160,6 +2160,635 @@
},
"required": ["key", "operator"],
"type": "object"
+ },
+ {
+ "properties": {
+ "event_filters": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "default": "exact"
+ },
+ "type": {
+ "const": "event",
+ "default": "event",
+ "description": "Event properties",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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",
+ "default": "person",
+ "description": "Person properties",
+ "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": {
+ "enum": ["tag_name", "text", "href", "selector"],
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "element",
+ "default": "element",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "feature",
+ "default": "feature",
+ "description": "Event property with \"$feature/\" prepended",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "const": "hogql",
+ "default": "hogql",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups"
+ },
+ "event_type": {
+ "enum": ["events", "actions"],
+ "type": "string"
+ },
+ "explicit_datetime": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval"
+ },
+ "explicit_datetime_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "description": "Event name, or action id when event_type is 'actions'",
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "negation": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators"
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "description": "Count comparison for performed_event_multiple, defaults to exact"
+ },
+ "operator_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Count threshold for performed_event_multiple"
+ },
+ "time_interval": {
+ "anyOf": [
+ {
+ "enum": ["day", "week", "month", "year"],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "time_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Relative time window size, paired with time_interval"
+ },
+ "type": {
+ "const": "behavioral",
+ "default": "behavioral",
+ "description": "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP",
+ "type": "string"
+ },
+ "value": {
+ "enum": ["performed_event", "performed_event_multiple"],
+ "type": "string"
+ }
+ },
+ "required": ["event_type", "key", "value"],
+ "type": "object"
}
]
},
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-bypass-rules-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-bypass-rules-create.json
index de6d6fab39a0..e91b1ae54a7e 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-bypass-rules-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-bypass-rules-create.json
@@ -2137,6 +2137,635 @@
},
"required": ["key", "operator"],
"type": "object"
+ },
+ {
+ "properties": {
+ "event_filters": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "default": "exact"
+ },
+ "type": {
+ "const": "event",
+ "default": "event",
+ "description": "Event properties",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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",
+ "default": "person",
+ "description": "Person properties",
+ "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": {
+ "enum": ["tag_name", "text", "href", "selector"],
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "element",
+ "default": "element",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "feature",
+ "default": "feature",
+ "description": "Event property with \"$feature/\" prepended",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "const": "hogql",
+ "default": "hogql",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups"
+ },
+ "event_type": {
+ "enum": ["events", "actions"],
+ "type": "string"
+ },
+ "explicit_datetime": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval"
+ },
+ "explicit_datetime_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "description": "Event name, or action id when event_type is 'actions'",
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "negation": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators"
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "description": "Count comparison for performed_event_multiple, defaults to exact"
+ },
+ "operator_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Count threshold for performed_event_multiple"
+ },
+ "time_interval": {
+ "anyOf": [
+ {
+ "enum": ["day", "week", "month", "year"],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "time_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Relative time window size, paired with time_interval"
+ },
+ "type": {
+ "const": "behavioral",
+ "default": "behavioral",
+ "description": "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP",
+ "type": "string"
+ },
+ "value": {
+ "enum": ["performed_event", "performed_event_multiple"],
+ "type": "string"
+ }
+ },
+ "required": ["event_type", "key", "value"],
+ "type": "object"
}
]
},
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-bypass-rules-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-bypass-rules-update.json
index b4f155af56b2..c054b94df10a 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-bypass-rules-update.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-bypass-rules-update.json
@@ -2137,6 +2137,635 @@
},
"required": ["key", "operator"],
"type": "object"
+ },
+ {
+ "properties": {
+ "event_filters": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "default": "exact"
+ },
+ "type": {
+ "const": "event",
+ "default": "event",
+ "description": "Event properties",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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",
+ "default": "person",
+ "description": "Person properties",
+ "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": {
+ "enum": ["tag_name", "text", "href", "selector"],
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "element",
+ "default": "element",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "feature",
+ "default": "feature",
+ "description": "Event property with \"$feature/\" prepended",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "const": "hogql",
+ "default": "hogql",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups"
+ },
+ "event_type": {
+ "enum": ["events", "actions"],
+ "type": "string"
+ },
+ "explicit_datetime": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval"
+ },
+ "explicit_datetime_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "description": "Event name, or action id when event_type is 'actions'",
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "negation": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators"
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "description": "Count comparison for performed_event_multiple, defaults to exact"
+ },
+ "operator_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Count threshold for performed_event_multiple"
+ },
+ "time_interval": {
+ "anyOf": [
+ {
+ "enum": ["day", "week", "month", "year"],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "time_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Relative time window size, paired with time_interval"
+ },
+ "type": {
+ "const": "behavioral",
+ "default": "behavioral",
+ "description": "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP",
+ "type": "string"
+ },
+ "value": {
+ "enum": ["performed_event", "performed_event_multiple"],
+ "type": "string"
+ }
+ },
+ "required": ["event_type", "key", "value"],
+ "type": "object"
}
]
},
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 d59d6c2fe674..97e4d03cecb1 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
@@ -2178,6 +2178,635 @@
},
"required": ["key", "operator"],
"type": "object"
+ },
+ {
+ "properties": {
+ "event_filters": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "default": "exact"
+ },
+ "type": {
+ "const": "event",
+ "default": "event",
+ "description": "Event properties",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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",
+ "default": "person",
+ "description": "Person properties",
+ "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": {
+ "enum": ["tag_name", "text", "href", "selector"],
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "element",
+ "default": "element",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "feature",
+ "default": "feature",
+ "description": "Event property with \"$feature/\" prepended",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "const": "hogql",
+ "default": "hogql",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups"
+ },
+ "event_type": {
+ "enum": ["events", "actions"],
+ "type": "string"
+ },
+ "explicit_datetime": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval"
+ },
+ "explicit_datetime_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "description": "Event name, or action id when event_type is 'actions'",
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "negation": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators"
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "description": "Count comparison for performed_event_multiple, defaults to exact"
+ },
+ "operator_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Count threshold for performed_event_multiple"
+ },
+ "time_interval": {
+ "anyOf": [
+ {
+ "enum": ["day", "week", "month", "year"],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "time_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Relative time window size, paired with time_interval"
+ },
+ "type": {
+ "const": "behavioral",
+ "default": "behavioral",
+ "description": "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP",
+ "type": "string"
+ },
+ "value": {
+ "enum": ["performed_event", "performed_event_multiple"],
+ "type": "string"
+ }
+ },
+ "required": ["event_type", "key", "value"],
+ "type": "object"
}
]
},
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 9e26f1eb1eec..c4a3241172b5 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
@@ -2138,6 +2138,640 @@
},
"required": ["key", "operator"],
"type": "object"
+ },
+ {
+ "properties": {
+ "event_filters": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "default": "exact"
+ },
+ "type": {
+ "const": "event",
+ "default": "event",
+ "description": "Event properties",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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",
+ "default": "person",
+ "description": "Person properties",
+ "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": {
+ "enum": [
+ "tag_name",
+ "text",
+ "href",
+ "selector"
+ ],
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "element",
+ "default": "element",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "feature",
+ "default": "feature",
+ "description": "Event property with \"$feature/\" prepended",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "const": "hogql",
+ "default": "hogql",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups"
+ },
+ "event_type": {
+ "enum": ["events", "actions"],
+ "type": "string"
+ },
+ "explicit_datetime": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval"
+ },
+ "explicit_datetime_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "description": "Event name, or action id when event_type is 'actions'",
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "negation": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators"
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "description": "Count comparison for performed_event_multiple, defaults to exact"
+ },
+ "operator_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Count threshold for performed_event_multiple"
+ },
+ "time_interval": {
+ "anyOf": [
+ {
+ "enum": ["day", "week", "month", "year"],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "time_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Relative time window size, paired with time_interval"
+ },
+ "type": {
+ "const": "behavioral",
+ "default": "behavioral",
+ "description": "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP",
+ "type": "string"
+ },
+ "value": {
+ "enum": ["performed_event", "performed_event_multiple"],
+ "type": "string"
+ }
+ },
+ "required": ["event_type", "key", "value"],
+ "type": "object"
}
]
},
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 8a85f066e591..03bcc9872ef9 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
@@ -2137,6 +2137,635 @@
},
"required": ["key", "operator"],
"type": "object"
+ },
+ {
+ "properties": {
+ "event_filters": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "default": "exact"
+ },
+ "type": {
+ "const": "event",
+ "default": "event",
+ "description": "Event properties",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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",
+ "default": "person",
+ "description": "Person properties",
+ "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": {
+ "enum": ["tag_name", "text", "href", "selector"],
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "element",
+ "default": "element",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "feature",
+ "default": "feature",
+ "description": "Event property with \"$feature/\" prepended",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "const": "hogql",
+ "default": "hogql",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups"
+ },
+ "event_type": {
+ "enum": ["events", "actions"],
+ "type": "string"
+ },
+ "explicit_datetime": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval"
+ },
+ "explicit_datetime_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "description": "Event name, or action id when event_type is 'actions'",
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "negation": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators"
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "description": "Count comparison for performed_event_multiple, defaults to exact"
+ },
+ "operator_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Count threshold for performed_event_multiple"
+ },
+ "time_interval": {
+ "anyOf": [
+ {
+ "enum": ["day", "week", "month", "year"],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "time_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Relative time window size, paired with time_interval"
+ },
+ "type": {
+ "const": "behavioral",
+ "default": "behavioral",
+ "description": "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP",
+ "type": "string"
+ },
+ "value": {
+ "enum": ["performed_event", "performed_event_multiple"],
+ "type": "string"
+ }
+ },
+ "required": ["event_type", "key", "value"],
+ "type": "object"
}
]
},
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 04240ee45e92..81210254c394 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
@@ -2137,6 +2137,635 @@
},
"required": ["key", "operator"],
"type": "object"
+ },
+ {
+ "properties": {
+ "event_filters": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "default": "exact"
+ },
+ "type": {
+ "const": "event",
+ "default": "event",
+ "description": "Event properties",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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",
+ "default": "person",
+ "description": "Person properties",
+ "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": {
+ "enum": ["tag_name", "text", "href", "selector"],
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "element",
+ "default": "element",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "feature",
+ "default": "feature",
+ "description": "Event property with \"$feature/\" prepended",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "const": "hogql",
+ "default": "hogql",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups"
+ },
+ "event_type": {
+ "enum": ["events", "actions"],
+ "type": "string"
+ },
+ "explicit_datetime": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval"
+ },
+ "explicit_datetime_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "description": "Event name, or action id when event_type is 'actions'",
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "negation": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators"
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "description": "Count comparison for performed_event_multiple, defaults to exact"
+ },
+ "operator_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Count threshold for performed_event_multiple"
+ },
+ "time_interval": {
+ "anyOf": [
+ {
+ "enum": ["day", "week", "month", "year"],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "time_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Relative time window size, paired with time_interval"
+ },
+ "type": {
+ "const": "behavioral",
+ "default": "behavioral",
+ "description": "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP",
+ "type": "string"
+ },
+ "value": {
+ "enum": ["performed_event", "performed_event_multiple"],
+ "type": "string"
+ }
+ },
+ "required": ["event_type", "key", "value"],
+ "type": "object"
}
]
},
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-create.json
index 89b935772271..f56fde50048c 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-create.json
@@ -2201,6 +2201,640 @@
},
"required": ["key", "operator"],
"type": "object"
+ },
+ {
+ "properties": {
+ "event_filters": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "default": "exact"
+ },
+ "type": {
+ "const": "event",
+ "default": "event",
+ "description": "Event properties",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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",
+ "default": "person",
+ "description": "Person properties",
+ "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": {
+ "enum": [
+ "tag_name",
+ "text",
+ "href",
+ "selector"
+ ],
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "element",
+ "default": "element",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "feature",
+ "default": "feature",
+ "description": "Event property with \"$feature/\" prepended",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "const": "hogql",
+ "default": "hogql",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups"
+ },
+ "event_type": {
+ "enum": ["events", "actions"],
+ "type": "string"
+ },
+ "explicit_datetime": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval"
+ },
+ "explicit_datetime_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "description": "Event name, or action id when event_type is 'actions'",
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "negation": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators"
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "description": "Count comparison for performed_event_multiple, defaults to exact"
+ },
+ "operator_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Count threshold for performed_event_multiple"
+ },
+ "time_interval": {
+ "anyOf": [
+ {
+ "enum": ["day", "week", "month", "year"],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "time_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Relative time window size, paired with time_interval"
+ },
+ "type": {
+ "const": "behavioral",
+ "default": "behavioral",
+ "description": "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP",
+ "type": "string"
+ },
+ "value": {
+ "enum": ["performed_event", "performed_event_multiple"],
+ "type": "string"
+ }
+ },
+ "required": ["event_type", "key", "value"],
+ "type": "object"
}
]
},
@@ -4395,6 +5029,640 @@
},
"required": ["key", "operator"],
"type": "object"
+ },
+ {
+ "properties": {
+ "event_filters": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "default": "exact"
+ },
+ "type": {
+ "const": "event",
+ "default": "event",
+ "description": "Event properties",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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",
+ "default": "person",
+ "description": "Person properties",
+ "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": {
+ "enum": [
+ "tag_name",
+ "text",
+ "href",
+ "selector"
+ ],
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "element",
+ "default": "element",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "feature",
+ "default": "feature",
+ "description": "Event property with \"$feature/\" prepended",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "const": "hogql",
+ "default": "hogql",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups"
+ },
+ "event_type": {
+ "enum": ["events", "actions"],
+ "type": "string"
+ },
+ "explicit_datetime": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval"
+ },
+ "explicit_datetime_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "description": "Event name, or action id when event_type is 'actions'",
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "negation": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators"
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "description": "Count comparison for performed_event_multiple, defaults to exact"
+ },
+ "operator_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Count threshold for performed_event_multiple"
+ },
+ "time_interval": {
+ "anyOf": [
+ {
+ "enum": ["day", "week", "month", "year"],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "time_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Relative time window size, paired with time_interval"
+ },
+ "type": {
+ "const": "behavioral",
+ "default": "behavioral",
+ "description": "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP",
+ "type": "string"
+ },
+ "value": {
+ "enum": ["performed_event", "performed_event_multiple"],
+ "type": "string"
+ }
+ },
+ "required": ["event_type", "key", "value"],
+ "type": "object"
}
]
},
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-update.json
index 225dfee56c60..9f638e960ec6 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-update.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-update.json
@@ -2243,6 +2243,640 @@
},
"required": ["key", "operator"],
"type": "object"
+ },
+ {
+ "properties": {
+ "event_filters": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "default": "exact"
+ },
+ "type": {
+ "const": "event",
+ "default": "event",
+ "description": "Event properties",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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",
+ "default": "person",
+ "description": "Person properties",
+ "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": {
+ "enum": [
+ "tag_name",
+ "text",
+ "href",
+ "selector"
+ ],
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "element",
+ "default": "element",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "feature",
+ "default": "feature",
+ "description": "Event property with \"$feature/\" prepended",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "const": "hogql",
+ "default": "hogql",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups"
+ },
+ "event_type": {
+ "enum": ["events", "actions"],
+ "type": "string"
+ },
+ "explicit_datetime": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval"
+ },
+ "explicit_datetime_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "description": "Event name, or action id when event_type is 'actions'",
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "negation": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators"
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "description": "Count comparison for performed_event_multiple, defaults to exact"
+ },
+ "operator_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Count threshold for performed_event_multiple"
+ },
+ "time_interval": {
+ "anyOf": [
+ {
+ "enum": ["day", "week", "month", "year"],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "time_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Relative time window size, paired with time_interval"
+ },
+ "type": {
+ "const": "behavioral",
+ "default": "behavioral",
+ "description": "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP",
+ "type": "string"
+ },
+ "value": {
+ "enum": ["performed_event", "performed_event_multiple"],
+ "type": "string"
+ }
+ },
+ "required": ["event_type", "key", "value"],
+ "type": "object"
}
]
},
@@ -4437,6 +5071,640 @@
},
"required": ["key", "operator"],
"type": "object"
+ },
+ {
+ "properties": {
+ "event_filters": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "default": "exact"
+ },
+ "type": {
+ "const": "event",
+ "default": "event",
+ "description": "Event properties",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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",
+ "default": "person",
+ "description": "Person properties",
+ "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": {
+ "enum": [
+ "tag_name",
+ "text",
+ "href",
+ "selector"
+ ],
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "element",
+ "default": "element",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "feature",
+ "default": "feature",
+ "description": "Event property with \"$feature/\" prepended",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "const": "hogql",
+ "default": "hogql",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups"
+ },
+ "event_type": {
+ "enum": ["events", "actions"],
+ "type": "string"
+ },
+ "explicit_datetime": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval"
+ },
+ "explicit_datetime_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "description": "Event name, or action id when event_type is 'actions'",
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "negation": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators"
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "description": "Count comparison for performed_event_multiple, defaults to exact"
+ },
+ "operator_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Count threshold for performed_event_multiple"
+ },
+ "time_interval": {
+ "anyOf": [
+ {
+ "enum": ["day", "week", "month", "year"],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "time_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Relative time window size, paired with time_interval"
+ },
+ "type": {
+ "const": "behavioral",
+ "default": "behavioral",
+ "description": "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP",
+ "type": "string"
+ },
+ "value": {
+ "enum": ["performed_event", "performed_event_multiple"],
+ "type": "string"
+ }
+ },
+ "required": ["event_type", "key", "value"],
+ "type": "object"
}
]
},
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-create.json
index 364ba74b9832..99aa0778af8c 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-create.json
@@ -2185,6 +2185,643 @@
},
"required": ["key", "operator"],
"type": "object"
+ },
+ {
+ "properties": {
+ "event_filters": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "default": "exact"
+ },
+ "type": {
+ "const": "event",
+ "default": "event",
+ "description": "Event properties",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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",
+ "default": "person",
+ "description": "Person properties",
+ "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": {
+ "enum": [
+ "tag_name",
+ "text",
+ "href",
+ "selector"
+ ],
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "element",
+ "default": "element",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "feature",
+ "default": "feature",
+ "description": "Event property with \"$feature/\" prepended",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "const": "hogql",
+ "default": "hogql",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups"
+ },
+ "event_type": {
+ "enum": ["events", "actions"],
+ "type": "string"
+ },
+ "explicit_datetime": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval"
+ },
+ "explicit_datetime_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "description": "Event name, or action id when event_type is 'actions'",
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "negation": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators"
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "description": "Count comparison for performed_event_multiple, defaults to exact"
+ },
+ "operator_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Count threshold for performed_event_multiple"
+ },
+ "time_interval": {
+ "anyOf": [
+ {
+ "enum": ["day", "week", "month", "year"],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "time_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Relative time window size, paired with time_interval"
+ },
+ "type": {
+ "const": "behavioral",
+ "default": "behavioral",
+ "description": "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP",
+ "type": "string"
+ },
+ "value": {
+ "enum": [
+ "performed_event",
+ "performed_event_multiple"
+ ],
+ "type": "string"
+ }
+ },
+ "required": ["event_type", "key", "value"],
+ "type": "object"
}
]
},
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-partial-update.json
index 38ac4225e724..a82e5999f28d 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-partial-update.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-partial-update.json
@@ -2181,6 +2181,643 @@
},
"required": ["key", "operator"],
"type": "object"
+ },
+ {
+ "properties": {
+ "event_filters": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "default": "exact"
+ },
+ "type": {
+ "const": "event",
+ "default": "event",
+ "description": "Event properties",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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",
+ "default": "person",
+ "description": "Person properties",
+ "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": {
+ "enum": [
+ "tag_name",
+ "text",
+ "href",
+ "selector"
+ ],
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "element",
+ "default": "element",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "feature",
+ "default": "feature",
+ "description": "Event property with \"$feature/\" prepended",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "const": "hogql",
+ "default": "hogql",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups"
+ },
+ "event_type": {
+ "enum": ["events", "actions"],
+ "type": "string"
+ },
+ "explicit_datetime": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval"
+ },
+ "explicit_datetime_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "description": "Event name, or action id when event_type is 'actions'",
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "negation": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators"
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "description": "Count comparison for performed_event_multiple, defaults to exact"
+ },
+ "operator_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Count threshold for performed_event_multiple"
+ },
+ "time_interval": {
+ "anyOf": [
+ {
+ "enum": ["day", "week", "month", "year"],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "time_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Relative time window size, paired with time_interval"
+ },
+ "type": {
+ "const": "behavioral",
+ "default": "behavioral",
+ "description": "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP",
+ "type": "string"
+ },
+ "value": {
+ "enum": [
+ "performed_event",
+ "performed_event_multiple"
+ ],
+ "type": "string"
+ }
+ },
+ "required": ["event_type", "key", "value"],
+ "type": "object"
}
]
},
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-simulate-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-simulate-create.json
index 85272190f529..32c7a4244d09 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-simulate-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-alerts-simulate-create.json
@@ -2191,6 +2191,643 @@
},
"required": ["key", "operator"],
"type": "object"
+ },
+ {
+ "properties": {
+ "event_filters": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "default": "exact"
+ },
+ "type": {
+ "const": "event",
+ "default": "event",
+ "description": "Event properties",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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",
+ "default": "person",
+ "description": "Person properties",
+ "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": {
+ "enum": [
+ "tag_name",
+ "text",
+ "href",
+ "selector"
+ ],
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "element",
+ "default": "element",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "operator": {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "feature",
+ "default": "feature",
+ "description": "Event property with \"$feature/\" prepended",
+ "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": {
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "const": "hogql",
+ "default": "hogql",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Extra property filters the matching events must satisfy. Deliberately excludes nested behavioral/cohort filters and groups"
+ },
+ "event_type": {
+ "enum": ["events", "actions"],
+ "type": "string"
+ },
+ "explicit_datetime": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Absolute or relative (e.g. -30d) lower date bound — alternative to time_value/time_interval"
+ },
+ "explicit_datetime_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key": {
+ "description": "Event name, or action id when event_type is 'actions'",
+ "type": "string"
+ },
+ "label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "negation": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Match persons who did NOT satisfy the criterion. Not the same as a low count — zero-occurrence persons never match count operators"
+ },
+ "operator": {
+ "anyOf": [
+ {
+ "enum": [
+ "exact",
+ "is_not",
+ "icontains",
+ "not_icontains",
+ "starts_with",
+ "not_starts_with",
+ "ends_with",
+ "not_ends_with",
+ "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": "null"
+ }
+ ],
+ "description": "Count comparison for performed_event_multiple, defaults to exact"
+ },
+ "operator_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Count threshold for performed_event_multiple"
+ },
+ "time_interval": {
+ "anyOf": [
+ {
+ "enum": ["day", "week", "month", "year"],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "time_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Relative time window size, paired with time_interval"
+ },
+ "type": {
+ "const": "behavioral",
+ "default": "behavioral",
+ "description": "Person performed (or didn't perform) an event in a time window. ClickHouse-only — not evaluable by flags or CDP",
+ "type": "string"
+ },
+ "value": {
+ "enum": [
+ "performed_event",
+ "performed_event_multiple"
+ ],
+ "type": "string"
+ }
+ },
+ "required": ["event_type", "key", "value"],
+ "type": "object"
}
]
},