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.

2.7 MB
Raw Blame
{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
        "AIEventType": {
            "enum": [
                "$ai_generation",
                "$ai_embedding",
                "$ai_span",
                "$ai_trace",
                "$ai_metric",
                "$ai_feedback",
                "$ai_evaluation",
                "$ai_tag",
                "$ai_trace_summary",
                "$ai_generation_summary",
                "$ai_trace_clusters",
                "$ai_generation_clusters"
            ],
            "type": "string"
        },
        "AccessControlFilterWarning": {
            "additionalProperties": false,
            "properties": {
                "message": {
                    "description": "Human-readable warning shown to the user",
                    "type": "string"
                },
                "resources": {
                    "description": "Resource types the user has access restrictions on, referenced by the query, e.g. [\"insight\", \"dashboard\"]",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "type": {
                    "const": "access_control",
                    "description": "Tells warning kinds apart in the shared `warnings` list",
                    "type": "string"
                }
            },
            "required": ["type", "resources", "message"],
            "type": "object"
        },
        "AccessControlLevel": {
            "enum": ["none", "member", "admin", "viewer", "editor", "manager"],
            "type": "string"
        },
        "AccountCustomPropertyFilter": {
            "additionalProperties": false,
            "properties": {
                "key": {
                    "type": "string"
                },
                "label": {
                    "type": "string"
                },
                "operator": {
                    "$ref": "#/definitions/PropertyOperator"
                },
                "type": {
                    "const": "account_custom_property",
                    "description": "Customer analytics account custom property — the key is the property definition id",
                    "type": "string"
                },
                "value": {
                    "$ref": "#/definitions/PropertyFilterValue"
                }
            },
            "required": ["key", "operator", "type"],
            "type": "object"
        },
        "AccountUsersQuery": {
            "additionalProperties": false,
            "description": "The persons who use an account. Only valid as an `ActorsQuery` source.",
            "properties": {
                "accountId": {
                    "description": "ID of the account whose users to list.",
                    "type": "string"
                },
                "kind": {
                    "const": "AccountUsersQuery",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "response": {
                    "$ref": "#/definitions/ActorsQueryResponse"
                },
                "tags": {
                    "$ref": "#/definitions/QueryLogTags"
                },
                "version": {
                    "description": "version of the node, used for schema migrations",
                    "type": "number"
                }
            },
            "required": ["accountId", "kind"],
            "type": "object"
        },
        "AccountsQuery": {
            "additionalProperties": false,
            "properties": {
                "allRolesUnassigned": {
                    "description": "Match accounts with no active relationship of any definition.",
                    "type": "boolean"
                },
                "assignedOnly": {
                    "description": "Match accounts with at least one active relationship of any definition.",
                    "type": "boolean"
                },
                "assignedToUserIds": {
                    "description": "Match accounts where any of these user ids actively holds any relationship (CSM, Account executive, or a custom definition). Drives the \"My accounts\" shortcut (the current user's id) and the shareable \"Assigned to\" filter — the ids are explicit so a shared URL resolves identically for every viewer.",
                    "items": {
                        "$ref": "#/definitions/integer"
                    },
                    "type": "array"
                },
                "filterExpression": {
                    "$ref": "#/definitions/HogQLExpression",
                    "description": "Optional HogQL boolean expression AND-ed into the WHERE clause. Used by the overview tile click-to-filter affordance."
                },
                "includeIgnored": {
                    "description": "Include ignored accounts. Ignored accounts are hidden by default.",
                    "type": "boolean"
                },
                "kind": {
                    "const": "AccountsQuery",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "metrics": {
                    "description": "Aggregation expressions evaluated against the filtered account set; one value per metric is returned in `metricsResults`. When `metrics` is set without a `select`, the runner skips the regular row fetch and returns only the aggregated values.",
                    "items": {
                        "$ref": "#/definitions/HogQLExpression"
                    },
                    "type": "array"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "orderBy": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "response": {
                    "$ref": "#/definitions/AccountsQueryResponse"
                },
                "search": {
                    "type": "string"
                },
                "select": {
                    "items": {
                        "$ref": "#/definitions/HogQLExpression"
                    },
                    "type": "array"
                },
                "tagNames": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "tags": {
                    "$ref": "#/definitions/QueryLogTags"
                },
                "version": {
                    "description": "version of the node, used for schema migrations",
                    "type": "number"
                }
            },
            "required": ["kind"],
            "type": "object"
        },
        "AccountsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "columns": {
                    "items": {},
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "kind": {
                    "const": "AccountsQuery",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "metricsResults": {
                    "description": "When `metrics` is set on the query, the aggregated values in the same order.",
                    "items": {
                        "type": ["number", "null"]
                    },
                    "type": "array"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "items": {},
                        "type": "array"
                    },
                    "type": "array"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "types": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": ["columns", "hogql", "kind", "limit", "offset", "results", "types"],
            "type": "object"
        },
        "AccountsTableAccountField": {
            "enum": [
                "name",
                "external_id",
                "created_at",
                "updated_at",
                "churned_at",
                "ignored_at",
                "stripe_customer_id",
                "hubspot_deal_id",
                "billing_id",
                "sfdc_id",
                "zendesk_id"
            ],
            "type": "string"
        },
        "AccountsTableAccountFieldColumn": {
            "additionalProperties": false,
            "properties": {
                "field": {
                    "$ref": "#/definitions/AccountsTableAccountField"
                },
                "kind": {
                    "const": "account_field",
                    "type": "string"
                }
            },
            "required": ["kind", "field"],
            "type": "object"
        },
        "AccountsTableAccountFieldFilter": {
            "additionalProperties": false,
            "properties": {
                "field": {
                    "$ref": "#/definitions/AccountsTableAccountField"
                },
                "kind": {
                    "const": "account_field",
                    "type": "string"
                },
                "operator": {
                    "$ref": "#/definitions/AccountsTableAccountFieldOperator"
                },
                "values": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                }
            },
            "required": ["kind", "field", "operator"],
            "type": "object"
        },
        "AccountsTableAccountFieldOperator": {
            "enum": [
                "exact",
                "is_not",
                "icontains",
                "not_icontains",
                "is_set",
                "is_not_set",
                "is_date_exact",
                "is_date_before",
                "is_date_after"
            ],
            "type": "string"
        },
        "AccountsTableAccountIdFilter": {
            "additionalProperties": false,
            "properties": {
                "accountId": {
                    "type": "string"
                },
                "kind": {
                    "const": "account_id",
                    "type": "string"
                }
            },
            "required": ["kind", "accountId"],
            "type": "object"
        },
        "AccountsTableAggregateMetric": {
            "additionalProperties": false,
            "properties": {
                "aggregation": {
                    "$ref": "#/definitions/AccountsTableAggregation"
                },
                "column": {
                    "$ref": "#/definitions/AccountsTableCustomPropertyColumn"
                },
                "kind": {
                    "const": "aggregate",
                    "type": "string"
                },
                "scale": {
                    "type": "number"
                }
            },
            "required": ["kind", "aggregation", "column"],
            "type": "object"
        },
        "AccountsTableAggregation": {
            "enum": ["sum", "avg", "min", "max", "median"],
            "type": "string"
        },
        "AccountsTableAssignedFilter": {
            "additionalProperties": false,
            "properties": {
                "kind": {
                    "const": "assigned",
                    "type": "string"
                }
            },
            "required": ["kind"],
            "type": "object"
        },
        "AccountsTableAssignedToFilter": {
            "additionalProperties": false,
            "properties": {
                "kind": {
                    "const": "assigned_to",
                    "type": "string"
                },
                "userIds": {
                    "description": "Match accounts where any listed user actively holds any relationship.",
                    "items": {
                        "$ref": "#/definitions/integer"
                    },
                    "type": "array"
                }
            },
            "required": ["kind", "userIds"],
            "type": "object"
        },
        "AccountsTableColumn": {
            "description": "A typed column supported by the Postgres-backed Accounts table.",
            "discriminator": {
                "propertyName": "kind"
            },
            "oneOf": [
                {
                    "$ref": "#/definitions/AccountsTableAccountFieldColumn"
                },
                {
                    "$ref": "#/definitions/AccountsTableTagsColumn"
                },
                {
                    "$ref": "#/definitions/AccountsTableNoteCountColumn"
                },
                {
                    "$ref": "#/definitions/AccountsTableRelationshipColumn"
                },
                {
                    "$ref": "#/definitions/AccountsTableCustomPropertyColumn"
                },
                {
                    "$ref": "#/definitions/AccountsTableCustomPropertyHistoryColumn"
                }
            ],
            "required": ["kind"],
            "type": "object"
        },
        "AccountsTableCountMetric": {
            "additionalProperties": false,
            "properties": {
                "kind": {
                    "const": "count",
                    "type": "string"
                }
            },
            "required": ["kind"],
            "type": "object"
        },
        "AccountsTableCountThresholdMetric": {
            "additionalProperties": false,
            "properties": {
                "column": {
                    "$ref": "#/definitions/AccountsTableCustomPropertyColumn"
                },
                "kind": {
                    "const": "count_threshold",
                    "type": "string"
                },
                "operator": {
                    "$ref": "#/definitions/AccountsTableThresholdOperator"
                },
                "value": {
                    "type": "number"
                }
            },
            "required": ["kind", "column", "operator", "value"],
            "type": "object"
        },
        "AccountsTableCustomPropertyColumn": {
            "additionalProperties": false,
            "properties": {
                "definitionId": {
                    "description": "Team-scoped custom property definition to return for each account.",
                    "type": "string"
                },
                "kind": {
                    "const": "custom_property",
                    "type": "string"
                }
            },
            "required": ["kind", "definitionId"],
            "type": "object"
        },
        "AccountsTableCustomPropertyDefinition": {
            "additionalProperties": false,
            "properties": {
                "description": {
                    "type": ["string", "null"]
                },
                "display_type": {
                    "$ref": "#/definitions/AccountsTableCustomPropertyDisplayType"
                },
                "has_workflow_reference": {
                    "type": "boolean"
                },
                "id": {
                    "type": "string"
                },
                "is_big_number": {
                    "type": "boolean"
                },
                "is_canonical": {
                    "type": "boolean"
                },
                "name": {
                    "type": "string"
                },
                "options": {
                    "anyOf": [
                        {
                            "items": {
                                "$ref": "#/definitions/AccountsTableCustomPropertyOption"
                            },
                            "type": "array"
                        },
                        {
                            "type": "null"
                        }
                    ]
                },
                "source": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/AccountsTableCustomPropertySource"
                        },
                        {
                            "type": "null"
                        }
                    ]
                }
            },
            "required": ["id", "name", "display_type", "is_canonical", "has_workflow_reference"],
            "type": "object"
        },
        "AccountsTableCustomPropertyDisplayType": {
            "enum": ["text", "link", "number", "currency", "percent", "date", "datetime", "boolean", "select"],
            "type": "string"
        },
        "AccountsTableCustomPropertyFilter": {
            "additionalProperties": false,
            "properties": {
                "definitionId": {
                    "type": "string"
                },
                "kind": {
                    "const": "custom_property",
                    "type": "string"
                },
                "operator": {
                    "$ref": "#/definitions/AccountsTableCustomPropertyOperator"
                },
                "values": {
                    "description": "Values interpreted according to the custom property definition's display type.",
                    "items": {
                        "type": ["string", "number", "boolean"]
                    },
                    "type": "array"
                }
            },
            "required": ["kind", "definitionId", "operator"],
            "type": "object"
        },
        "AccountsTableCustomPropertyHistoryColumn": {
            "additionalProperties": false,
            "properties": {
                "definitionId": {
                    "description": "Team-scoped numeric custom property definition whose write history should be returned.",
                    "type": "string"
                },
                "kind": {
                    "const": "custom_property_history",
                    "type": "string"
                },
                "windowDays": {
                    "description": "Number of days of history to return. The current value is included even when it is older.",
                    "enum": [7, 14, 30, 90],
                    "type": "number"
                }
            },
            "required": ["kind", "definitionId", "windowDays"],
            "type": "object"
        },
        "AccountsTableCustomPropertyHistoryPoint": {
            "additionalProperties": false,
            "properties": {
                "timestamp": {
                    "format": "date-time",
                    "type": "string"
                },
                "value": {
                    "type": "number"
                }
            },
            "required": ["timestamp", "value"],
            "type": "object"
        },
        "AccountsTableCustomPropertyOperator": {
            "enum": [
                "exact",
                "is_not",
                "icontains",
                "not_icontains",
                "regex",
                "not_regex",
                "gt",
                "gte",
                "lt",
                "lte",
                "is_set",
                "is_not_set",
                "is_date_exact",
                "is_date_before",
                "is_date_after"
            ],
            "type": "string"
        },
        "AccountsTableCustomPropertyOption": {
            "additionalProperties": false,
            "properties": {
                "color": {
                    "type": "string"
                },
                "id": {
                    "type": ["string", "null"]
                },
                "label": {
                    "type": "string"
                }
            },
            "required": ["label", "color"],
            "type": "object"
        },
        "AccountsTableCustomPropertySource": {
            "additionalProperties": false,
            "properties": {
                "id": {
                    "type": "string"
                }
            },
            "required": ["id"],
            "type": "object"
        },
        "AccountsTableCustomPropertyValue": {
            "type": ["string", "number", "boolean", "null"]
        },
        "AccountsTableFilter": {
            "description": "A typed filter applied to the Postgres-backed Accounts table.",
            "discriminator": {
                "propertyName": "kind"
            },
            "oneOf": [
                {
                    "$ref": "#/definitions/AccountsTableSearchFilter"
                },
                {
                    "$ref": "#/definitions/AccountsTableTagsFilter"
                },
                {
                    "$ref": "#/definitions/AccountsTableAssignedToFilter"
                },
                {
                    "$ref": "#/definitions/AccountsTableAssignedFilter"
                },
                {
                    "$ref": "#/definitions/AccountsTableUnassignedFilter"
                },
                {
                    "$ref": "#/definitions/AccountsTableRelationshipFilter"
                },
                {
                    "$ref": "#/definitions/AccountsTableAccountIdFilter"
                },
                {
                    "$ref": "#/definitions/AccountsTableAccountFieldFilter"
                },
                {
                    "$ref": "#/definitions/AccountsTableCustomPropertyFilter"
                }
            ],
            "required": ["kind"],
            "type": "object"
        },
        "AccountsTableMetric": {
            "description": "A typed aggregate evaluated against the filtered account set.",
            "discriminator": {
                "propertyName": "kind"
            },
            "oneOf": [
                {
                    "$ref": "#/definitions/AccountsTableCountMetric"
                },
                {
                    "$ref": "#/definitions/AccountsTableAggregateMetric"
                },
                {
                    "$ref": "#/definitions/AccountsTableCountThresholdMetric"
                }
            ],
            "required": ["kind"],
            "type": "object"
        },
        "AccountsTableNoteCountColumn": {
            "additionalProperties": false,
            "properties": {
                "kind": {
                    "const": "note_count",
                    "type": "string"
                }
            },
            "required": ["kind"],
            "type": "object"
        },
        "AccountsTablePropertyFilter": {
            "anyOf": [
                {
                    "$ref": "#/definitions/AccountsTableAccountFieldFilter"
                },
                {
                    "$ref": "#/definitions/AccountsTableRelationshipFilter"
                },
                {
                    "$ref": "#/definitions/AccountsTableCustomPropertyFilter"
                }
            ]
        },
        "AccountsTableQuery": {
            "additionalProperties": false,
            "properties": {
                "columns": {
                    "description": "Columns to load for each account. Account identity fields are always returned.",
                    "items": {
                        "$ref": "#/definitions/AccountsTableColumn"
                    },
                    "type": "array"
                },
                "filterGroups": {
                    "description": "Nonempty property-filter groups are ORed together; filters within each group use AND. Global filters still apply.",
                    "items": {
                        "items": {
                            "$ref": "#/definitions/AccountsTablePropertyFilter"
                        },
                        "type": "array"
                    },
                    "type": "array"
                },
                "filters": {
                    "description": "Filters are combined with AND. Values within tag and assignment filters use OR.",
                    "items": {
                        "$ref": "#/definitions/AccountsTableFilter"
                    },
                    "type": "array"
                },
                "ignoreMissingDefinitions": {
                    "description": "Omit missing definitions and custom-property filters incompatible with their current types.",
                    "type": "boolean"
                },
                "includeChurned": {
                    "description": "Include churned accounts. Churned accounts are hidden by default.",
                    "type": "boolean"
                },
                "includeIgnored": {
                    "description": "Include ignored accounts. Ignored accounts are hidden by default.",
                    "type": "boolean"
                },
                "kind": {
                    "const": "AccountsTableQuery",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/positive_integer"
                },
                "metrics": {
                    "description": "Aggregates to evaluate against the filtered account set. A metrics query skips row loading.",
                    "items": {
                        "$ref": "#/definitions/AccountsTableMetric"
                    },
                    "type": "array"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "response": {
                    "$ref": "#/definitions/AccountsTableQueryResponse"
                },
                "sort": {
                    "$ref": "#/definitions/AccountsTableSort"
                },
                "tags": {
                    "$ref": "#/definitions/QueryLogTags"
                },
                "useDefaultColumns": {
                    "type": "boolean"
                },
                "version": {
                    "description": "version of the node, used for schema migrations",
                    "type": "number"
                }
            },
            "required": ["columns", "kind"],
            "type": "object"
        },
        "AccountsTableQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "columns": {
                    "items": {
                        "$ref": "#/definitions/AccountsTableResolvedColumn"
                    },
                    "type": "array"
                },
                "customPropertyDefinitions": {
                    "items": {
                        "$ref": "#/definitions/AccountsTableCustomPropertyDefinition"
                    },
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "kind": {
                    "const": "AccountsTableQuery",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "metricsResults": {
                    "description": "Aggregated values in the same order as the requested metrics.",
                    "items": {
                        "type": ["number", "null"]
                    },
                    "type": "array"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "relationshipDefinitions": {
                    "items": {
                        "$ref": "#/definitions/AccountsTableRelationshipDefinition"
                    },
                    "type": "array"
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/AccountsTableRow"
                    },
                    "type": "array"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": ["hasMore", "kind", "limit", "offset", "results"],
            "type": "object"
        },
        "AccountsTableRelationshipColumn": {
            "additionalProperties": false,
            "properties": {
                "definitionId": {
                    "description": "Team-scoped relationship definition to return for each account.",
                    "type": "string"
                },
                "kind": {
                    "const": "relationship",
                    "type": "string"
                }
            },
            "required": ["kind", "definitionId"],
            "type": "object"
        },
        "AccountsTableRelationshipDefinition": {
            "additionalProperties": false,
            "properties": {
                "description": {
                    "type": ["string", "null"]
                },
                "id": {
                    "type": "string"
                },
                "is_controlled": {
                    "type": "boolean"
                },
                "is_single_holder": {
                    "type": "boolean"
                },
                "name": {
                    "type": "string"
                }
            },
            "required": ["id", "name", "is_controlled"],
            "type": "object"
        },
        "AccountsTableRelationshipFilter": {
            "additionalProperties": false,
            "properties": {
                "definitionId": {
                    "type": "string"
                },
                "kind": {
                    "const": "relationship",
                    "type": "string"
                },
                "operator": {
                    "$ref": "#/definitions/AccountsTableRelationshipOperator"
                },
                "userIds": {
                    "items": {
                        "$ref": "#/definitions/integer"
                    },
                    "type": "array"
                }
            },
            "required": ["kind", "definitionId", "operator"],
            "type": "object"
        },
        "AccountsTableRelationshipOperator": {
            "enum": ["exact", "is_not", "is_set", "is_not_set"],
            "type": "string"
        },
        "AccountsTableResolvedColumn": {
            "discriminator": {
                "propertyName": "kind"
            },
            "oneOf": [
                {
                    "$ref": "#/definitions/AccountsTableAccountFieldColumn"
                },
                {
                    "$ref": "#/definitions/AccountsTableTagsColumn"
                },
                {
                    "$ref": "#/definitions/AccountsTableNoteCountColumn"
                },
                {
                    "$ref": "#/definitions/AccountsTableRelationshipColumn"
                },
                {
                    "$ref": "#/definitions/AccountsTableCustomPropertyColumn"
                },
                {
                    "$ref": "#/definitions/AccountsTableCustomPropertyHistoryColumn"
                }
            ],
            "required": ["kind"],
            "type": "object"
        },
        "AccountsTableRow": {
            "additionalProperties": false,
            "properties": {
                "accountFields": {
                    "additionalProperties": {
                        "type": ["string", "null"]
                    },
                    "description": "Requested direct Account fields, keyed by their typed field reference.",
                    "type": "object"
                },
                "customProperties": {
                    "additionalProperties": {
                        "$ref": "#/definitions/AccountsTableCustomPropertyValue"
                    },
                    "description": "Current values keyed by requested custom property definition ID.",
                    "type": "object"
                },
                "customPropertyHistory": {
                    "additionalProperties": {
                        "items": {
                            "$ref": "#/definitions/AccountsTableCustomPropertyHistoryPoint"
                        },
                        "type": "array"
                    },
                    "description": "Numeric write history keyed by requested custom property definition ID.",
                    "type": "object"
                },
                "externalId": {
                    "type": ["string", "null"]
                },
                "id": {
                    "type": "string"
                },
                "logoDomain": {
                    "description": "Bare hostname the row's logo is rendered from. Null when no source resolved one.",
                    "type": ["string", "null"]
                },
                "name": {
                    "type": "string"
                },
                "noteCount": {
                    "$ref": "#/definitions/integer",
                    "description": "Number of linked internal notes. Omitted when the request does not select the note count."
                },
                "relationships": {
                    "additionalProperties": {
                        "items": {
                            "$ref": "#/definitions/integer"
                        },
                        "type": "array"
                    },
                    "description": "Active assignee user IDs keyed by requested relationship definition ID.",
                    "type": "object"
                },
                "tags": {
                    "description": "Sorted tag names. Omitted when the request does not select tags.",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                }
            },
            "required": ["id", "name", "accountFields", "relationships", "customProperties", "customPropertyHistory"],
            "type": "object"
        },
        "AccountsTableSearchFilter": {
            "additionalProperties": false,
            "properties": {
                "kind": {
                    "const": "search",
                    "type": "string"
                },
                "query": {
                    "type": "string"
                }
            },
            "required": ["kind", "query"],
            "type": "object"
        },
        "AccountsTableSort": {
            "additionalProperties": false,
            "properties": {
                "column": {
                    "$ref": "#/definitions/AccountsTableSortableColumn"
                },
                "direction": {
                    "$ref": "#/definitions/AccountsTableSortDirection"
                }
            },
            "required": ["column", "direction"],
            "type": "object"
        },
        "AccountsTableSortDirection": {
            "enum": ["asc", "desc"],
            "type": "string"
        },
        "AccountsTableSortableColumn": {
            "description": "A typed column that supports server-side sorting.",
            "discriminator": {
                "propertyName": "kind"
            },
            "oneOf": [
                {
                    "$ref": "#/definitions/AccountsTableAccountFieldColumn"
                },
                {
                    "$ref": "#/definitions/AccountsTableTagsColumn"
                },
                {
                    "$ref": "#/definitions/AccountsTableNoteCountColumn"
                },
                {
                    "$ref": "#/definitions/AccountsTableRelationshipColumn"
                },
                {
                    "$ref": "#/definitions/AccountsTableCustomPropertyColumn"
                }
            ],
            "required": ["kind"],
            "type": "object"
        },
        "AccountsTableTagsColumn": {
            "additionalProperties": false,
            "properties": {
                "kind": {
                    "const": "tags",
                    "type": "string"
                }
            },
            "required": ["kind"],
            "type": "object"
        },
        "AccountsTableTagsFilter": {
            "additionalProperties": false,
            "properties": {
                "kind": {
                    "const": "tags",
                    "type": "string"
                },
                "tagNames": {
                    "description": "Match accounts carrying any of these tag names.",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                }
            },
            "required": ["kind", "tagNames"],
            "type": "object"
        },
        "AccountsTableThresholdOperator": {
            "enum": ["gt", "gte", "lt", "lte", "exact", "is_not"],
            "type": "string"
        },
        "AccountsTableUnassignedFilter": {
            "additionalProperties": false,
            "properties": {
                "kind": {
                    "const": "unassigned",
                    "type": "string"
                }
            },
            "required": ["kind"],
            "type": "object"
        },
        "ActionConversionGoal": {
            "additionalProperties": false,
            "properties": {
                "actionId": {
                    "$ref": "#/definitions/integer"
                },
                "properties": {
                    "$ref": "#/definitions/WebAnalyticsPropertyFilters"
                }
            },
            "required": ["actionId"],
            "type": "object"
        },
        "ActionsNode": {
            "additionalProperties": false,
            "properties": {
                "custom_name": {
                    "type": "string"
                },
                "fixedProperties": {
                    "description": "Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)",
                    "items": {
                        "$ref": "#/definitions/AnyPropertyFilter"
                    },
                    "type": "array"
                },
                "id": {
                    "$ref": "#/definitions/integer"
                },
                "kind": {
                    "const": "ActionsNode",
                    "type": "string"
                },
                "math": {
                    "$ref": "#/definitions/MathType"
                },
                "math_group_type_index": {
                    "enum": [0, 1, 2, 3, 4],
                    "type": "number"
                },
                "math_hogql": {
                    "type": "string"
                },
                "math_multiplier": {
                    "type": "number"
                },
                "math_property": {
                    "type": "string"
                },
                "math_property_revenue_currency": {
                    "$ref": "#/definitions/RevenueCurrencyPropertyConfig"
                },
                "math_property_type": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "optionalInFunnel": {
                    "type": "boolean"
                },
                "properties": {
                    "description": "Properties configurable in the interface",
                    "items": {
                        "$ref": "#/definitions/AnyPropertyFilter"
                    },
                    "type": "array"
                },
                "response": {
                    "type": "object"
                },
                "version": {
                    "description": "version of the node, used for schema migrations",
                    "type": "number"
                }
            },
            "required": ["id", "kind"],
            "type": "object"
        },
        "ActorsPropertyTaxonomyQuery": {
            "additionalProperties": false,
            "properties": {
                "groupTypeIndex": {
                    "$ref": "#/definitions/integer"
                },
                "kind": {
                    "const": "ActorsPropertyTaxonomyQuery",
                    "type": "string"
                },
                "maxPropertyValues": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "properties": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "response": {
                    "$ref": "#/definitions/ActorsPropertyTaxonomyQueryResponse"
                },
                "tags": {
                    "$ref": "#/definitions/QueryLogTags"
                },
                "version": {
                    "description": "version of the node, used for schema migrations",
                    "type": "number"
                }
            },
            "required": ["kind", "properties"],
            "type": "object"
        },
        "ActorsPropertyTaxonomyQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/ActorsPropertyTaxonomyResponse"
                        },
                        {
                            "items": {
                                "$ref": "#/definitions/ActorsPropertyTaxonomyResponse"
                            },
                            "type": "array"
                        }
                    ]
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": ["results"],
            "type": "object"
        },
        "ActorsPropertyTaxonomyResponse": {
            "additionalProperties": false,
            "properties": {
                "sample_count": {
                    "$ref": "#/definitions/integer"
                },
                "sample_values": {
                    "items": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "number"
                            },
                            {
                                "type": "boolean"
                            },
                            {
                                "$ref": "#/definitions/integer"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": ["sample_values", "sample_count"],
            "type": "object"
        },
        "ActorsQuery": {
            "additionalProperties": false,
            "properties": {
                "filterTestAccounts": {
                    "description": "Exclude persons matching the team's \"internal and test account\" filters. Only person-scoped filters (person properties, cohorts) are applied. Event-scoped test account filters have no meaning in a persons query and are ignored.",
                    "type": "boolean"
                },
                "fixedProperties": {
                    "description": "Currently only person filters supported. No filters for querying groups. See `filter_conditions()` in actor_strategies.py.",
                    "items": {
                        "$ref": "#/definitions/AnyPersonScopeFilter"
                    },
                    "type": "array"
                },
                "kind": {
                    "const": "ActorsQuery",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "orderBy": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "properties": {
                    "anyOf": [
                        {
                            "items": {
                                "$ref": "#/definitions/AnyPersonScopeFilter"
                            },
                            "type": "array"
                        },
                        {
                            "$ref": "#/definitions/PropertyGroupFilterValue"
                        }
                    ],
                    "description": "Currently only person filters supported. No filters for querying groups. See `filter_conditions()` in actor_strategies.py."
                },
                "response": {
                    "$ref": "#/definitions/ActorsQueryResponse"
                },
                "search": {
                    "type": "string"
                },
                "select": {
                    "items": {
                        "$ref": "#/definitions/HogQLExpression"
                    },
                    "type": "array"
                },
                "source": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/InsightActorsQuery"
                        },
                        {
                            "$ref": "#/definitions/FunnelsActorsQuery"
                        },
                        {
                            "$ref": "#/definitions/ExperimentActorsQuery"
                        },
                        {
                            "$ref": "#/definitions/StickinessActorsQuery"
                        },
                        {
                            "$ref": "#/definitions/PathsV2ActorsQuery"
                        },
                        {
                            "$ref": "#/definitions/AccountUsersQuery"
                        },
                        {
                            "$ref": "#/definitions/HogQLQuery"
                        }
                    ]
                },
                "tags": {
                    "$ref": "#/definitions/QueryLogTags"
                },
                "version": {
                    "description": "version of the node, used for schema migrations",
                    "type": "number"
                }
            },
            "required": ["kind"],
            "type": "object"
        },
        "ActorsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "columns": {
                    "items": {},
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "missing_actors_count": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "items": {},
                        "type": "array"
                    },
                    "type": "array"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "types": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": ["columns", "hogql", "limit", "offset", "results"],
            "type": "object"
        },
        "AgentMode": {
            "enum": [
                "product_analytics",
                "sql",
                "session_replay",
                "error_tracking",
                "plan",
                "execution",
                "survey",
                "research",
                "flags",
                "llm_analytics",
                "sandbox",
                "user_interview",
                "customer_analytics"
            ],
            "type": "string"
        },
        "AggregatedSpanRow": {
            "additionalProperties": false,
            "description": "One aggregated span row keyed by `(service_name, name)`. Used by the delta-table view.",
            "properties": {
                "avg_duration_nano": {
                    "type": "number"
                },
                "count": {
                    "$ref": "#/definitions/integer"
                },
                "error_count": {
                    "$ref": "#/definitions/integer"
                },
                "health_reason": {
                    "description": "Short reason for `health_status`, such as `error rate 0.2% → 4.1%`. Empty when the status is `ok`.",
                    "type": "string"
                },
                "health_status": {
                    "$ref": "#/definitions/SpanHealthStatus",
                    "description": "Set only when the query asked for `includeHealth`. Same statuses as the service health check."
                },
                "name": {
                    "type": "string"
                },
                "p50_duration_nano": {
                    "type": "number"
                },
                "p95_duration_nano": {
                    "type": "number"
                },
                "p999_duration_nano": {
                    "type": "number"
                },
                "p99_duration_nano": {
                    "type": "number"
                },
                "service_name": {
                    "type": "string"
                },
                "sessions": {
                    "$ref": "#/definitions/integer",
                    "description": "Set only when the query asked for `includeImpact`. `sessions` and `users` are uniq() estimates; the two span counts are exact."
                },
                "spans_with_distinct_id": {
                    "$ref": "#/definitions/integer"
                },
                "spans_with_session_id": {
                    "$ref": "#/definitions/integer"
                },
                "total_duration_nano": {
                    "type": "number"
                },
                "users": {
                    "$ref": "#/definitions/integer"
                }
            },
            "required": [
                "service_name",
                "name",
                "count",
                "total_duration_nano",
                "avg_duration_nano",
                "p50_duration_nano",
                "p95_duration_nano",
                "p99_duration_nano",
                "p999_duration_nano",
                "error_count"
            ],
            "type": "object"
        },
        "AggregationAxisFormat": {
            "enum": [
                "numeric",
                "duration",
                "duration_ms",
                "duration_ns",
                "percentage",
                "percentage_scaled",
                "currency",
                "short"
            ],
            "type": "string"
        },
        "AlertCalculationInterval": {
            "enum": ["real_time", "every_15_minutes", "hourly", "daily", "weekly", "monthly"],
            "type": "string"
        },
        "AlertCondition": {
            "additionalProperties": false,
            "properties": {
                "type": {
                    "$ref": "#/definitions/AlertConditionType"
                }
            },
            "required": ["type"],
            "type": "object"
        },
        "AlertConditionType": {
            "enum": ["absolute_value", "relative_increase", "relative_decrease"],
            "type": "string"
        },
        "AlertScheduleRestriction": {
            "additionalProperties": false,
            "description": "Quiet hours: local time windows when the alert must not run. At most five windows after API normalization.",
            "properties": {
                "blocked_windows": {
                    "items": {
                        "$ref": "#/definitions/AlertScheduleRestrictionWindow"
                    },
                    "type": "array"
                }
            },
            "required": ["blocked_windows"],
            "type": "object"
        },
        "AlertScheduleRestrictionWindow": {
            "additionalProperties": false,
            "description": "One blocked period for quiet hours: 24-hour HH:MM in the project timezone; interval is half-open [start, end).",
            "properties": {
                "end": {
                    "type": "string"
                },
                "start": {
                    "type": "string"
                }
            },
            "required": ["start", "end"],
            "type": "object"
        },
        "AlertState": {
            "enum": ["Firing", "Not firing", "Errored", "Snoozed"],
            "type": "string"
        },
        "AmazonAdsDefaultSources": {
            "enum": ["amazon", "amazon_ads"],
            "type": "string"
        },
        "AnalyticsListDisplayConfiguration": {
            "additionalProperties": false,
            "description": "One person's display choices for the Analytics lists.",
            "properties": {
                "default_sort": {
                    "description": "The sort a list opens with. A column header click still changes the sort for that visit.",
                    "enum": ["-last_viewed_at", "-created_at"],
                    "type": "string"
                },
                "hide_insights": {
                    "description": "Leaves insights out of the All list.",
                    "type": "boolean"
                }
            },
            "type": "object"
        },
        "AnalyticsQueryResponseBase": {
            "additionalProperties": false,
            "properties": {
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {},
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": ["results"],
            "type": "object"
        },
        "AnnotationScope": {
            "enum": ["dashboard_item", "dashboard", "project", "organization"],
            "type": "string"
        },
        "AnyAssistantGeneratedQuery": {
            "anyOf": [
                {
                    "$ref": "#/definitions/DataVisualizationNode"
                },
                {
                    "$ref": "#/definitions/AssistantTrendsQuery"
                },
                {
                    "$ref": "#/definitions/AssistantFunnelsQuery"
                },
                {
                    "$ref": "#/definitions/AssistantRetentionQuery"
                },
                {
                    "$ref": "#/definitions/AssistantStickinessQuery"
                },
                {
                    "$ref": "#/definitions/AssistantPathsQuery"
                },
                {
                    "$ref": "#/definitions/AssistantLifecycleQuery"
                },
                {
                    "$ref": "#/definitions/AssistantHogQLQuery"
                }
            ],
            "description": "The union type with all cleaned queries for the assistant. Only used for generating the schemas with an LLM."
        },
        "AnyDataNode": {
            "discriminator": {
                "propertyName": "kind"
            },
            "oneOf": [
                {
                    "$ref": "#/definitions/EventsNode"
                },
                {
                    "$ref": "#/definitions/ActionsNode"
                },
                {
                    "$ref": "#/definitions/PersonsNode"
                },
                {
                    "$ref": "#/definitions/EventsQuery"
                },
                {
                    "$ref": "#/definitions/SessionsQuery"
                },
                {
                    "$ref": "#/definitions/ActorsQuery"
                },
                {
                    "$ref": "#/definitions/GroupsQuery"
                },
                {
                    "$ref": "#/definitions/InsightActorsQuery"
                },
                {
                    "$ref": "#/definitions/InsightActorsQueryOptions"
                },
                {
                    "$ref": "#/definitions/SessionsTimelineQuery"
                },
                {
                    "$ref": "#/definitions/HogQuery"
                },
                {
                    "$ref": "#/definitions/HogQLQuery"
                },
                {
                    "$ref": "#/definitions/HogQLMetadata"
                },
                {
                    "$ref": "#/definitions/HogQLAutocomplete"
                },
                {
                    "$ref": "#/definitions/MarketingAnalyticsTableQuery"
                },
                {
                    "$ref": "#/definitions/MarketingAnalyticsAggregatedQuery"
                },
                {
                    "$ref": "#/definitions/MarketingAnalyticsAttributionQuery"
                },
                {
                    "$ref": "#/definitions/MarketingAnalyticsAttributionPathsQuery"
                },
                {
                    "$ref": "#/definitions/MarketingAnalyticsRetentionQuery"
                },
                {
                    "$ref": "#/definitions/MarketingAnalyticsSearchQuery"
                },
                {
                    "$ref": "#/definitions/MarketingAnalyticsRecommendationsQuery"
                },
                {
                    "$ref": "#/definitions/WebOverviewQuery"
                },
                {
                    "$ref": "#/definitions/WebStatsTableQuery"
                },
                {
                    "$ref": "#/definitions/WebExternalClicksTableQuery"
                },
                {
                    "$ref": "#/definitions/WebBotsTableQuery"
                },
                {
                    "$ref": "#/definitions/WebAgentAnalyticsQuery"
                },
                {
                    "$ref": "#/definitions/WebPageDirectoryQuery"
                },
                {
                    "$ref": "#/definitions/WebGoalsQuery"
                },
                {
                    "$ref": "#/definitions/WebVitalsQuery"
                },
                {
                    "$ref": "#/definitions/WebVitalsPathBreakdownQuery"
                },
                {
                    "$ref": "#/definitions/WebPageURLSearchQuery"
                },
                {
                    "$ref": "#/definitions/WebAnalyticsExternalSummaryQuery"
                },
                {
                    "$ref": "#/definitions/WebNotableChangesQuery"
                },
                {
                    "$ref": "#/definitions/SessionAttributionExplorerQuery"
                },
                {
                    "$ref": "#/definitions/ErrorTrackingQuery"
                },
                {
                    "$ref": "#/definitions/ErrorTrackingSimilarIssuesQuery"
                },
                {
                    "$ref": "#/definitions/ErrorTrackingFingerprintProjectionQuery"
                },
                {
                    "$ref": "#/definitions/ErrorTrackingBreakdownsQuery"
                },
                {
                    "$ref": "#/definitions/ErrorTrackingReleasesQuery"
                },
                {
                    "$ref": "#/definitions/ErrorTrackingIssueCorrelationQuery"
                },
                {
                    "$ref": "#/definitions/ErrorTrackingIssueEventsQuery"
                },
                {
                    "$ref": "#/definitions/LogsQuery"
                },
                {
                    "$ref": "#/definitions/LogAttributesQuery"
                },
                {
                    "$ref": "#/definitions/LogValuesQuery"
                },
                {
                    "$ref": "#/definitions/MetricsQuery"
                },
                {
                    "$ref": "#/definitions/MetricsHistogramQuery"
                },
                {
                    "$ref": "#/definitions/TraceSpansQuery"
                },
                {
                    "$ref": "#/definitions/TraceSpansAggregationQuery"
                },
                {
                    "$ref": "#/definitions/TraceSpansTreeQuery"
                },
                {
                    "$ref": "#/definitions/TraceSpansAttributeBreakdownQuery"
                },
                {
                    "$ref": "#/definitions/CalendarHeatmapQuery"
                },
                {
                    "$ref": "#/definitions/RecordingsQuery"
                },
                {
                    "$ref": "#/definitions/TracesQuery"
                },
                {
                    "$ref": "#/definitions/TraceQuery"
                },
                {
                    "$ref": "#/definitions/SessionQuery"
                },
                {
                    "$ref": "#/definitions/TraceNeighborsQuery"
                },
                {
                    "$ref": "#/definitions/VectorSearchQuery"
                },
                {
                    "$ref": "#/definitions/InboxUsageQuery"
                },
                {
                    "$ref": "#/definitions/UsageMetricsQuery"
                },
                {
                    "$ref": "#/definitions/AccountsQuery"
                },
                {
                    "$ref": "#/definitions/AccountsTableQuery"
                },
                {
                    "$ref": "#/definitions/EndpointsUsageOverviewQuery"
                },
                {
                    "$ref": "#/definitions/EndpointsUsageTableQuery"
                },
                {
                    "$ref": "#/definitions/EndpointsUsageTrendsQuery"
                },
                {
                    "$ref": "#/definitions/MCPToolCallBreakdownQuery"
                },
                {
                    "$ref": "#/definitions/MCPToolCallsAndErrorsQuery"
                },
                {
                    "$ref": "#/definitions/MCPHarnessBreakdownQuery"
                },
                {
                    "$ref": "#/definitions/MCPModelBreakdownQuery"
                },
                {
                    "$ref": "#/definitions/MCPProtocolVersionBreakdownQuery"
                },
                {
                    "$ref": "#/definitions/MCPToolTopUsersQuery"
                },
                {
                    "$ref": "#/definitions/MCPToolFailuresQuery"
                },
                {
                    "$ref": "#/definitions/MCPToolFailureOccurrencesQuery"
                },
                {
                    "$ref": "#/definitions/MCPToolStatsQuery"
                },
                {
                    "$ref": "#/definitions/MCPToolDailyStatsQuery"
                },
                {
                    "$ref": "#/definitions/MCPToolQualityRowsQuery"
                },
                {
                    "$ref": "#/definitions/MCPToolQualityDailyStatsQuery"
                },
                {
                    "$ref": "#/definitions/MCPToolCategoryCountsQuery"
                },
                {
                    "$ref": "#/definitions/MCPToolCategoriesQuery"
                },
                {
                    "$ref": "#/definitions/MCPToolCategoryMapQuery"
                },
                {
                    "$ref": "#/definitions/MCPToolDescriptionsQuery"
                },
                {
                    "$ref": "#/definitions/MCPToolSampleIntentsQuery"
                },
                {
                    "$ref": "#/definitions/MCPToolNeighborsQuery"
                },
                {
                    "$ref": "#/definitions/MCPMissingCapabilitiesQuery"
                }
            ],
            "required": ["kind"],
            "type": "object"
        },
        "AnyDataWarehouseNode": {
            "anyOf": [
                {
                    "$ref": "#/definitions/DataWarehouseNode"
                },
                {
                    "$ref": "#/definitions/FunnelsDataWarehouseNode"
                },
                {
                    "$ref": "#/definitions/LifecycleDataWarehouseNode"
                }
            ]
        },
        "AnyEntityNode<DataWarehouseNode>": {
            "anyOf": [
                {
                    "$ref": "#/definitions/EventsNode"
                },
                {
                    "$ref": "#/definitions/ActionsNode"
                },
                {
                    "$ref": "#/definitions/DataWarehouseNode"
                }
            ]
        },
        "AnyFilterLike": {
            "anyOf": [
                {
                    "$ref": "#/definitions/AnyPropertyFilter"
                },
                {
                    "$ref": "#/definitions/PropertyGroupFilter"
                },
                {
                    "$ref": "#/definitions/PropertyGroupFilterValue"
                }
            ]
        },
        "AnyGroupScopeFilter": {
            "anyOf": [
                {
                    "$ref": "#/definitions/GroupPropertyFilter"
                },
                {
                    "$ref": "#/definitions/HogQLPropertyFilter"
                }
            ]
        },
        "AnyPersonScopeFilter": {
            "anyOf": [
                {
                    "$ref": "#/definitions/PersonPropertyFilter"
                },
                {
                    "$ref": "#/definitions/PersonMetadataPropertyFilter"
                },
                {
                    "$ref": "#/definitions/CohortPropertyFilter"
                },
                {
                    "$ref": "#/definitions/HogQLPropertyFilter"
                },
                {
                    "$ref": "#/definitions/EmptyPropertyFilter"
                }
            ],
            "description": "Any filter type supported by `property_to_expr(scope=\"person\", ...)`."
        },
        "AnyPropertyFilter": {
            "anyOf": [
                {
                    "$ref": "#/definitions/EventPropertyFilter"
                },
                {
                    "$ref": "#/definitions/PersonPropertyFilter"
                },
                {
                    "$ref": "#/definitions/PersonMetadataPropertyFilter"
                },
                {
                    "$ref": "#/definitions/ElementPropertyFilter"
                },
                {
                    "$ref": "#/definitions/EventMetadataPropertyFilter"
                },
                {
                    "$ref": "#/definitions/SessionPropertyFilter"
                },
                {
                    "$ref": "#/definitions/CohortPropertyFilter"
                },
                {
                    "$ref": "#/definitions/RecordingPropertyFilter"
                },
                {
                    "$ref": "#/definitions/LogEntryPropertyFilter"
                },
                {
                    "$ref": "#/definitions/GroupPropertyFilter"
                },
                {
                    "$ref": "#/definitions/FeaturePropertyFilter"
                },
                {
                    "$ref": "#/definitions/FlagPropertyFilter"
                },
                {
                    "$ref": "#/definitions/HogQLPropertyFilter"
                },
                {
                    "$ref": "#/definitions/EmptyPropertyFilter"
                },
                {
                    "$ref": "#/definitions/DataWarehousePropertyFilter"
                },
                {
                    "$ref": "#/definitions/DataWarehousePersonPropertyFilter"
                },
                {
                    "$ref": "#/definitions/ErrorTrackingIssueFilter"
                },
                {
                    "$ref": "#/definitions/LogPropertyFilter"
                },
                {
                    "$ref": "#/definitions/MetricPropertyFilter"
                },
                {
                    "$ref": "#/definitions/SpanPropertyFilter"
                },
                {
                    "$ref": "#/definitions/RevenueAnalyticsPropertyFilter"
                },
                {
                    "$ref": "#/definitions/AccountCustomPropertyFilter"
                },
                {
                    "$ref": "#/definitions/WorkflowVariablePropertyFilter"
                },
                {
                    "$ref": "#/definitions/BehavioralPropertyFilter"
                }
            ]
        },
        "AnyResponseType": {
            "anyOf": [
                {
                    "type": "object"
                },
                {
                    "$ref": "#/definitions/HogQueryResponse"
                },
                {
                    "$ref": "#/definitions/HogQLQueryResponse"
                },
                {
                    "$ref": "#/definitions/HogQLMetadataResponse"
                },
                {
                    "$ref": "#/definitions/HogQLAutocompleteResponse"
                },
                {
                    "type": "object"
                },
                {
                    "not": {}
                },
                {
                    "$ref": "#/definitions/EventsQueryResponse"
                },
                {
                    "$ref": "#/definitions/SessionsQueryResponse"
                },
                {
                    "$ref": "#/definitions/ErrorTrackingQueryResponse"
                },
                {
                    "$ref": "#/definitions/LogsQueryResponse"
                },
                {
                    "$ref": "#/definitions/LogAttributesQueryResponse"
                },
                {
                    "$ref": "#/definitions/LogValuesQueryResponse"
                },
                {
                    "$ref": "#/definitions/MetricsQueryResponse"
                },
                {
                    "$ref": "#/definitions/TraceSpansQueryResponse"
                },
                {
                    "$ref": "#/definitions/TraceSpansAggregationQueryResponse"
                },
                {
                    "$ref": "#/definitions/TraceSpansTreeQueryResponse"
                },
                {
                    "$ref": "#/definitions/TraceSpansAttributeBreakdownQueryResponse"
                }
            ]
        },
        "AppleSearchAdsDefaultSources": {
            "enum": ["apple", "apple_search_ads", "apple_ads", "asa"],
            "type": "string"
        },
        "ApprovalCardUIStatus": {
            "anyOf": [
                {
                    "$ref": "#/definitions/ApprovalDecisionStatus"
                },
                {
                    "const": "approving",
                    "type": "string"
                },
                {
                    "const": "rejecting",
                    "type": "string"
                },
                {
                    "const": "custom",
                    "type": "string"
                }
            ]
        },
        "ApprovalDecisionStatus": {
            "enum": ["pending", "approved", "rejected", "auto_rejected"],
            "type": "string"
        },
        "ApprovalResumePayload": {
            "additionalProperties": false,
            "properties": {
                "action": {
                    "enum": ["approve", "reject"],
                    "type": "string"
                },
                "feedback": {
                    "type": "string"
                },
                "payload": {
                    "additionalProperties": {},
                    "type": "object"
                },
                "proposal_id": {
                    "type": "string"
                }
            },
            "required": ["action", "proposal_id"],
            "type": "object"
        },
        "ArtifactContent": {
            "anyOf": [
                {
                    "$ref": "#/definitions/VisualizationArtifactContent"
                },
                {
                    "$ref": "#/definitions/NotebookArtifactContent"
                }
            ]
        },
        "ArtifactContentType": {
            "description": "Type of artifact content",
            "enum": ["visualization", "notebook"],
            "type": "string"
        },
        "ArtifactMessage": {
            "additionalProperties": false,
            "description": "Frontend artifact message containing enriched content field. Do not use in the backend.",
            "properties": {
                "artifact_id": {
                    "description": "The ID of the artifact (short_id for both drafts and saved insights)",
                    "type": "string"
                },
                "content": {
                    "$ref": "#/definitions/ArtifactContent",
                    "description": "Content of artifact"
                },
                "id": {
                    "type": "string"
                },
                "parent_tool_call_id": {
                    "type": "string"
                },
                "source": {
                    "$ref": "#/definitions/ArtifactSource",
                    "description": "Source of artifact - determines which model to fetch from"
                },
                "type": {
                    "const": "ai/artifact",
                    "type": "string"
                }
            },
            "required": ["type", "artifact_id", "source", "content"],
            "type": "object"
        },
        "ArtifactSource": {
            "description": "Source of artifact - determines which model to fetch from",
            "enum": ["artifact", "insight", "state"],
            "type": "string"
        },
        "AssistantArrayPropertyFilter": {
            "additionalProperties": false,
            "properties": {
                "operator": {
                    "$ref": "#/definitions/AssistantArrayPropertyFilterOperator",
                    "description": "`exact` - exact match of any of the values. `is_not` - does not match any of the values."
                },
                "value": {
                    "description": "Only use property values from the plan. Always use strings as values. If you have a number, convert it to a string first. If you have a boolean, convert it to a string \"true\" or \"false\".",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                }
            },
            "required": ["operator", "value"],
            "type": "object"
        },
        "AssistantArrayPropertyFilterOperator": {
            "enum": ["exact", "is_not"],
            "type": "string"
        },
        "AssistantBIVisualizationNode": {
            "additionalProperties": {},
            "properties": {
                "config": {
                    "additionalProperties": {},
                    "description": "Complete worksheet configuration, including shelves and filters. Validated by the insight API.",
                    "type": "object"
                },
                "kind": {
                    "const": "BIVisualizationNode",
                    "type": "string"
                },
                "source": {
                    "$ref": "#/definitions/AssistantBareHogQLQuery"
                }
            },
            "required": ["kind", "source", "config"],
            "type": "object"
        },
        "AssistantBareHogQLQuery": {
            "additionalProperties": {},
            "properties": {
                "kind": {
                    "const": "HogQLQuery",
                    "type": "string"
                },
                "query": {
                    "description": "The HogQL query to run.",
                    "type": "string"
                }
            },
            "required": ["kind", "query"],
            "type": "object"
        },
        "AssistantBareInsightQuery": {
            "additionalProperties": {},
            "properties": {
                "kind": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/InsightNodeKind"
                        },
                        {
                            "$ref": "#/definitions/AssistantMetricsNodeKind"
                        }
                    ]
                }
            },
            "required": ["kind"],
            "type": "object"
        },
        "AssistantBaseMultipleBreakdownFilter": {
            "additionalProperties": false,
            "properties": {
                "property": {
                    "description": "Property name from the plan to break down by.",
                    "type": "string"
                }
            },
            "required": ["property"],
            "type": "object"
        },
        "AssistantBasePropertyFilter": {
            "anyOf": [
                {
                    "$ref": "#/definitions/AssistantStringNumberOrBooleanPropertyFilter"
                },
                {
                    "$ref": "#/definitions/AssistantDateTimePropertyFilter"
                },
                {
                    "$ref": "#/definitions/AssistantSetPropertyFilter"
                }
            ]
        },
        "AssistantBehavioralPropertyFilter": {
            "additionalProperties": false,
            "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/AssistantBehavioralPropertyFilterOperator"
                },
                "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"
        },
        "AssistantBehavioralPropertyFilterOperator": {
            "enum": ["exact", "gt", "gte", "lt", "lte"],
            "type": "string"
        },
        "AssistantBreakdownFilter": {
            "additionalProperties": false,
            "properties": {
                "breakdown_limit": {
                    "$ref": "#/definitions/integer",
                    "default": 25,
                    "description": "How many distinct values to show."
                }
            },
            "type": "object"
        },
        "AssistantCohortPropertyFilter": {
            "additionalProperties": false,
            "properties": {
                "key": {
                    "const": "id",
                    "type": "string"
                },
                "operator": {
                    "default": "in",
                    "enum": ["in", "not_in"],
                    "type": "string"
                },
                "type": {
                    "const": "cohort",
                    "description": "Filter events by cohort membership. Use this to narrow down results to persons belonging to a specific cohort. Use `operator: \"in\"` to include cohort members, or `operator: \"not_in\"` to exclude them. Examples:\n- Include: `{ type: \"cohort\", key: \"id\", value: 42, operator: \"in\" }`\n- Exclude: `{ type: \"cohort\", key: \"id\", value: 42, operator: \"not_in\" }`",
                    "type": "string"
                },
                "value": {
                    "$ref": "#/definitions/integer",
                    "description": "The cohort ID to filter by."
                }
            },
            "required": ["type", "key", "value", "operator"],
            "type": "object"
        },
        "AssistantDataTableNode": {
            "additionalProperties": {},
            "properties": {
                "kind": {
                    "const": "DataTableNode",
                    "type": "string"
                },
                "source": {
                    "$ref": "#/definitions/AssistantEventsQuery"
                }
            },
            "required": ["kind", "source"],
            "type": "object"
        },
        "AssistantDataVisualizationAxis": {
            "additionalProperties": false,
            "properties": {
                "column": {
                    "description": "Name of a column returned by the SQL query to map onto this axis.",
                    "type": "string"
                },
                "settings": {
                    "$ref": "#/definitions/AssistantDataVisualizationAxisSettings",
                    "description": "Optional series settings. Only applies to Y-axis series."
                }
            },
            "required": ["column"],
            "type": "object"
        },
        "AssistantDataVisualizationAxisDisplaySettings": {
            "additionalProperties": false,
            "properties": {
                "color": {
                    "description": "Custom color for this series as a hex string (e.g. `#1d4aff`).",
                    "type": "string"
                },
                "displayType": {
                    "description": "Chart type. `auto` uses `display`.",
                    "enum": ["auto", "line", "bar", "area"],
                    "type": "string"
                },
                "excludeFromTotal": {
                    "description": "Keep this series out of the tooltip's total row, e.g. a target line over stacked bars. A bar series still stacks, so set `displayType` to `line` for a series drawn over the stack.",
                    "type": "boolean"
                },
                "label": {
                    "description": "Series label in legends and tooltips; replaces the column name.",
                    "type": "string"
                },
                "trendLine": {
                    "description": "Draw a linear trend line for this series. Only meaningful for line, bar, and area charts.",
                    "type": "boolean"
                },
                "valueLabels": {
                    "description": "Per-series override of chart-level `showValuesOnSeries`. `show` labels this series even when the chart setting is off, `hide` leaves it unlabeled when the setting is on, `auto` follows the chart.",
                    "enum": ["auto", "show", "hide"],
                    "type": "string"
                },
                "yAxisPosition": {
                    "description": "Which Y axis this numeric series should use. Use `right` for a secondary Y axis.",
                    "enum": ["left", "right"],
                    "type": "string"
                }
            },
            "type": "object"
        },
        "AssistantDataVisualizationAxisFormatting": {
            "additionalProperties": false,
            "properties": {
                "decimalPlaces": {
                    "description": "Number of decimal places to display.",
                    "type": "number"
                },
                "prefix": {
                    "description": "Text prepended to each value (e.g. `$`).",
                    "type": "string"
                },
                "style": {
                    "description": "`none`: unformatted; `number`: thousands separators; `short`: abbreviations (1.2k, 3.4M). `percent`: multiplies by 100 and adds `%`. Pass a 0–1 ratio (`a / b`) and omit the `%` suffix to avoid doubling it.",
                    "enum": ["none", "number", "short", "percent"],
                    "type": "string"
                },
                "suffix": {
                    "description": "Value suffix (e.g. ` ms`). Omit for `percent`, which adds `%`.",
                    "type": "string"
                }
            },
            "type": "object"
        },
        "AssistantDataVisualizationAxisSettings": {
            "additionalProperties": false,
            "properties": {
                "display": {
                    "$ref": "#/definitions/AssistantDataVisualizationAxisDisplaySettings",
                    "description": "Display settings for a plotted Y series."
                },
                "formatting": {
                    "$ref": "#/definitions/AssistantDataVisualizationAxisFormatting",
                    "description": "Number-formatting settings for the values on this axis or series."
                }
            },
            "type": "object"
        },
        "AssistantDataVisualizationBoxPlotSettings": {
            "additionalProperties": false,
            "properties": {
                "excludeOutliers": {
                    "description": "Clip whiskers to 1.5 times the interquartile range. Defaults to true.",
                    "type": "boolean"
                },
                "maxColumn": {
                    "description": "Numeric column containing the maximum for each box.",
                    "type": "string"
                },
                "meanColumn": {
                    "description": "Numeric column containing the mean for each box.",
                    "type": "string"
                },
                "medianColumn": {
                    "description": "Numeric column containing the median for each box.",
                    "type": "string"
                },
                "minColumn": {
                    "description": "Numeric column containing the minimum for each box.",
                    "type": "string"
                },
                "p25Column": {
                    "description": "Numeric column containing the 25th percentile for each box.",
                    "type": "string"
                },
                "p75Column": {
                    "description": "Numeric column containing the 75th percentile for each box.",
                    "type": "string"
                },
                "seriesColumn": {
                    "description": "Optional column that groups each X-axis value into separate colored series. Set to `null` for one series.",
                    "type": ["string", "null"]
                },
                "xAxisColumn": {
                    "description": "X-axis category column. Set to `null` for one overall distribution or one box per series.",
                    "type": ["string", "null"]
                }
            },
            "required": ["minColumn", "p25Column", "medianColumn", "meanColumn", "p75Column", "maxColumn"],
            "type": "object"
        },
        "AssistantDataVisualizationChartSettings": {
            "additionalProperties": false,
            "properties": {
                "boxPlot": {
                    "$ref": "#/definitions/AssistantDataVisualizationBoxPlotSettings",
                    "description": "Column mappings for `BoxPlot`. The SQL must return one pre-aggregated row per X-axis and series pair."
                },
                "goalLines": {
                    "description": "Horizontal goal lines drawn across the chart.",
                    "items": {
                        "$ref": "#/definitions/AssistantDataVisualizationGoalLine"
                    },
                    "type": "array"
                },
                "leftYAxisSettings": {
                    "$ref": "#/definitions/AssistantDataVisualizationYAxisSettings",
                    "description": "Settings for the left Y axis."
                },
                "legendPosition": {
                    "description": "Where the legend sits. Defaults to right for pie and donut, top for other charts.",
                    "enum": ["top", "bottom", "left", "right"],
                    "type": "string"
                },
                "metric": {
                    "$ref": "#/definitions/AssistantDataVisualizationMetricSettings",
                    "description": "Settings for `Metric`. `summary` defaults to `latest`."
                },
                "pie": {
                    "$ref": "#/definitions/PieChartSettings",
                    "description": "Settings for `ActionsPie` and `ActionsDonut`."
                },
                "rightYAxisSettings": {
                    "$ref": "#/definitions/AssistantDataVisualizationYAxisSettings",
                    "description": "Settings for the right Y axis. Only applies when a Y series uses `settings.display.yAxisPosition: \"right\"`."
                },
                "seriesBreakdownColumn": {
                    "description": "Column that splits a single Y series into multiple colored series — e.g. breaking down a line chart by `country`. Set to `null` or omit to disable. A breakdown buckets rows by x value, so it is ignored when `display` is `ScatterPlot`.",
                    "type": ["string", "null"]
                },
                "showAnnotations": {
                    "description": "Show annotations on the chart. Only applies to line, area, bar, and stacked bar charts whose X axis is a date or datetime column.",
                    "type": "boolean"
                },
                "showLegend": {
                    "description": "Show the chart legend.",
                    "type": "boolean"
                },
                "showNullsAsZero": {
                    "description": "Replace null aggregation results with zero.",
                    "type": "boolean"
                },
                "showTotalRow": {
                    "description": "Show a total summing all Y series. Applies to line, bar, and area charts.",
                    "type": "boolean"
                },
                "showValuesOnSeries": {
                    "description": "Render each data point's value as a label directly on the series.",
                    "type": "boolean"
                },
                "stackBars100": {
                    "description": "Stack bars to 100% of the total. Only meaningful with `ActionsStackedBar`.",
                    "type": "boolean"
                },
                "xAxis": {
                    "$ref": "#/definitions/AssistantDataVisualizationColumn",
                    "description": "Column used as the X axis. Typically a time bucket or categorical column, but `ScatterPlot` plots two measures against each other, so it needs a numeric column here too."
                },
                "xAxisLabel": {
                    "description": "Label rendered under the X axis.",
                    "type": "string"
                },
                "yAxis": {
                    "description": "One or more numeric columns plotted as Y series.",
                    "items": {
                        "$ref": "#/definitions/AssistantDataVisualizationAxis"
                    },
                    "type": "array"
                }
            },
            "type": "object"
        },
        "AssistantDataVisualizationColumn": {
            "additionalProperties": false,
            "description": "A column with a description and number formatting. Series display settings apply only to Y-axis series.",
            "properties": {
                "column": {
                    "description": "Name of a column returned by the SQL query.",
                    "type": "string"
                },
                "settings": {
                    "$ref": "#/definitions/AssistantDataVisualizationColumnSettings",
                    "description": "Optional display and number-formatting settings for this column."
                }
            },
            "required": ["column"],
            "type": "object"
        },
        "AssistantDataVisualizationColumnDisplaySettings": {
            "additionalProperties": false,
            "properties": {
                "description": {
                    "description": "Table column description shown in the header tooltip.",
                    "type": "string"
                }
            },
            "type": "object"
        },
        "AssistantDataVisualizationColumnSettings": {
            "additionalProperties": false,
            "properties": {
                "display": {
                    "$ref": "#/definitions/AssistantDataVisualizationColumnDisplaySettings",
                    "description": "Display settings for this column."
                },
                "formatting": {
                    "$ref": "#/definitions/AssistantDataVisualizationAxisFormatting",
                    "description": "Number-formatting settings for the values in this column."
                }
            },
            "type": "object"
        },
        "AssistantDataVisualizationDisplayType": {
            "description": "Subset of `ChartDisplayType` values supported by `AssistantDataVisualizationNode`.\n\n- `ActionsTable` — render rows as a data table. This is the default when `display` is omitted.\n- `BoldNumber` — big-number display for single-value results (first numeric column of the first row).\n- `Metric` — big number with a change pill and a sparkline (a KPI or scorecard). Uses the first numeric Y column, one value per row.\n- `ActionsLineGraph` — line chart. Requires at least two columns, including one numeric column.\n- `ActionsBar` — bar chart with one bar per X-axis value.\n- `ActionsBarValue` — horizontal bar chart (bar ranking) with one bar per category. Requires a category column and a numeric column.\n- `ActionsPie` — pie chart for categorical proportions. Requires one label column and one numeric column.\n- `ActionsDonut` — donut (ring) chart with the total in the center. Same columns as `ActionsPie`.\n- `ActionsProportionBar` — one flat bar that shows the parts of one whole, one segment per label. Same columns as `ActionsPie`.\n- `ActionsStackedBar` — bar chart stacked by a series breakdown column.\n- `ActionsAreaGraph` — area chart. Requires at least two columns, including one numeric column.\n- `TwoDimensionalHeatmap` — 2D heatmap. Requires an X column, a Y column, and a numeric value column.\n- `ScatterPlot` — scatter plot of one measure against another. Requires two numeric columns, one per axis.\n- `BoxPlot` — box plot from pre-aggregated SQL rows. Requires six numeric summary columns.",
            "enum": [
                "ActionsTable",
                "BoldNumber",
                "Metric",
                "ActionsLineGraph",
                "ActionsBar",
                "ActionsBarValue",
                "ActionsPie",
                "ActionsDonut",
                "ActionsProportionBar",
                "ActionsStackedBar",
                "ActionsAreaGraph",
                "TwoDimensionalHeatmap",
                "ScatterPlot",
                "BoxPlot"
            ],
            "type": "string"
        },
        "AssistantDataVisualizationGoalLine": {
            "additionalProperties": false,
            "properties": {
                "label": {
                    "description": "Label rendered next to the goal line.",
                    "type": "string"
                },
                "value": {
                    "description": "Y-axis value at which the goal line is drawn.",
                    "type": "number"
                }
            },
            "required": ["label", "value"],
            "type": "object"
        },
        "AssistantDataVisualizationMetricSettings": {
            "additionalProperties": false,
            "properties": {
                "showChange": {
                    "type": "boolean"
                },
                "summary": {
                    "enum": ["total", "average", "latest"],
                    "type": "string"
                }
            },
            "type": "object"
        },
        "AssistantDataVisualizationNode": {
            "additionalProperties": false,
            "description": "SQL-backed visualization. Use this when the analysis requires custom SQL that cannot be expressed as a standard product-analytics insight — cross-source joins with the data warehouse, window functions, or bespoke aggregations.\n\nPrefer `AssistantInsightVizNode` for standard product analytics (trends, funnels, retention, paths, stickiness, lifecycle). Only reach for this node when SQL is strictly necessary.",
            "properties": {
                "chartSettings": {
                    "$ref": "#/definitions/AssistantDataVisualizationChartSettings",
                    "description": "Chart configuration. Ignored when `display` is `ActionsTable` or `BoldNumber`."
                },
                "display": {
                    "$ref": "#/definitions/AssistantDataVisualizationDisplayType",
                    "description": "Chart type (default `ActionsTable`): `BoldNumber` = one value; `Metric` = KPI; `ActionsLineGraph` / `ActionsAreaGraph` = time series; `ActionsPie` / `ActionsDonut` / `ActionsProportionBar` = shares; `ActionsBar` / `ActionsStackedBar` = categories; `ActionsBarValue` = horizontal rankings; `TwoDimensionalHeatmap` = 2D aggregates; `ScatterPlot` = two measures; `BoxPlot` = distribution summaries with `chartSettings.boxPlot`."
                },
                "kind": {
                    "const": "DataVisualizationNode",
                    "type": "string"
                },
                "source": {
                    "description": "HogQL query object that produces the rows to visualize.",
                    "type": "object"
                },
                "tableSettings": {
                    "$ref": "#/definitions/AssistantDataVisualizationTableSettings",
                    "description": "Table configuration. Only applies when `display` is `ActionsTable` or omitted."
                }
            },
            "required": ["kind", "source"],
            "type": "object"
        },
        "AssistantDataVisualizationTableSettings": {
            "additionalProperties": false,
            "properties": {
                "columns": {
                    "description": "Columns to display and their order. Omit to show every column returned by the query.",
                    "items": {
                        "$ref": "#/definitions/AssistantDataVisualizationColumn"
                    },
                    "type": "array"
                },
                "pinnedColumns": {
                    "description": "Column names to pin to the left of the table.",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "transpose": {
                    "description": "Transpose rows and columns.",
                    "type": "boolean"
                }
            },
            "type": "object"
        },
        "AssistantDataVisualizationYAxisSettings": {
            "additionalProperties": false,
            "properties": {
                "label": {
                    "description": "Label rendered beside this Y axis.",
                    "type": "string"
                },
                "scale": {
                    "description": "Scale used for this Y axis.",
                    "enum": ["linear", "logarithmic"],
                    "type": "string"
                },
                "showGridLines": {
                    "description": "Show grid lines for this Y axis.",
                    "type": "boolean"
                },
                "showTicks": {
                    "description": "Show tick labels on this Y axis.",
                    "type": "boolean"
                },
                "startAtZero": {
                    "description": "Whether this Y axis should start at zero.",
                    "type": "boolean"
                }
            },
            "type": "object"
        },
        "AssistantDateRange": {
            "additionalProperties": false,
            "description": "This filter only works with absolute dates. A bound without a UTC offset is read in the project timezone.",
            "properties": {
                "date_from": {
                    "description": "ISO8601 date string.",
                    "type": "string"
                },
                "date_to": {
                    "description": "ISO8601 date string. A calendar day without a time (`2026-09-01`) is inclusive to the last moment of that day.",
                    "type": ["string", "null"]
                }
            },
            "required": ["date_from"],
            "type": "object"
        },
        "AssistantDateRangeFilter": {
            "anyOf": [
                {
                    "$ref": "#/definitions/AssistantDateRange"
                },
                {
                    "$ref": "#/definitions/AssistantDurationRange"
                }
            ]
        },
        "AssistantDateTimePropertyFilter": {
            "additionalProperties": false,
            "properties": {
                "operator": {
                    "$ref": "#/definitions/AssistantDateTimePropertyFilterOperator"
                },
                "value": {
                    "description": "Value must be a date in ISO 8601 format.",
                    "type": "string"
                }
            },
            "required": ["operator", "value"],
            "type": "object"
        },
        "AssistantDateTimePropertyFilterOperator": {
            "enum": ["is_date_exact", "is_date_before", "is_date_after"],
            "type": "string"
        },
        "AssistantDurationRange": {
            "additionalProperties": false,
            "description": "This filter only works with durations.",
            "properties": {
                "date_from": {
                    "description": "Duration in the past. Supported units are: `h` (hour), `d` (day), `w` (week), `m` (month), `y` (year), `all` (all time). Use the `Start` suffix to define the exact left date boundary. Examples: `-1d` last day from now, `-180d` last 180 days from now, `mStart` this month start, `-1dStart` yesterday's start.",
                    "type": "string"
                }
            },
            "required": ["date_from"],
            "type": "object"
        },
        "AssistantElementPropertyFilter": {
            "anyOf": [
                {
                    "additionalProperties": false,
                    "properties": {
                        "key": {
                            "description": "The element property to filter on. `tag_name` — HTML tag (e.g., `button`, `a`, `input`). `text` — visible text content of the element. `href` — the `href` attribute for links. `selector` — a CSS selector matching the element (e.g., `div.main > button.cta`).",
                            "enum": ["tag_name", "text", "href", "selector"],
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantStringOrBooleanValuePropertyFilterOperator",
                            "description": "`icontains` - case insensitive contains. `not_icontains` - case insensitive does not contain. `regex` - matches the regex pattern. `not_regex` - does not match the regex pattern."
                        },
                        "type": {
                            "const": "element",
                            "description": "Filter by autocaptured HTML element properties (`$autocapture`, `$rageclick`). Example: `{ type: \"element\", key: \"text\", value: \"Sign Up\", operator: \"exact\" }`",
                            "type": "string"
                        },
                        "value": {
                            "description": "Only use property values from the plan. If the operator is `regex` or `not_regex`, the value must be a valid ClickHouse regex pattern to match against. Otherwise, the value must be a substring that will be matched against the property value. Use the string values `true` or `false` for boolean properties.",
                            "type": "string"
                        }
                    },
                    "required": ["key", "operator", "type", "value"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "key": {
                            "description": "The element property to filter on. `tag_name` — HTML tag (e.g., `button`, `a`, `input`). `text` — visible text content of the element. `href` — the `href` attribute for links. `selector` — a CSS selector matching the element (e.g., `div.main > button.cta`).",
                            "enum": ["tag_name", "text", "href", "selector"],
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantNumericValuePropertyFilterOperator"
                        },
                        "type": {
                            "const": "element",
                            "description": "Filter by autocaptured HTML element properties (`$autocapture`, `$rageclick`). Example: `{ type: \"element\", key: \"text\", value: \"Sign Up\", operator: \"exact\" }`",
                            "type": "string"
                        },
                        "value": {
                            "type": "number"
                        }
                    },
                    "required": ["key", "operator", "type", "value"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "key": {
                            "description": "The element property to filter on. `tag_name` — HTML tag (e.g., `button`, `a`, `input`). `text` — visible text content of the element. `href` — the `href` attribute for links. `selector` — a CSS selector matching the element (e.g., `div.main > button.cta`).",
                            "enum": ["tag_name", "text", "href", "selector"],
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantArrayPropertyFilterOperator",
                            "description": "`exact` - exact match of any of the values. `is_not` - does not match any of the values."
                        },
                        "type": {
                            "const": "element",
                            "description": "Filter by autocaptured HTML element properties (`$autocapture`, `$rageclick`). Example: `{ type: \"element\", key: \"text\", value: \"Sign Up\", operator: \"exact\" }`",
                            "type": "string"
                        },
                        "value": {
                            "description": "Only use property values from the plan. Always use strings as values. If you have a number, convert it to a string first. If you have a boolean, convert it to a string \"true\" or \"false\".",
                            "items": {
                                "type": "string"
                            },
                            "type": "array"
                        }
                    },
                    "required": ["key", "operator", "type", "value"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "key": {
                            "description": "The element property to filter on. `tag_name` — HTML tag (e.g., `button`, `a`, `input`). `text` — visible text content of the element. `href` — the `href` attribute for links. `selector` — a CSS selector matching the element (e.g., `div.main > button.cta`).",
                            "enum": ["tag_name", "text", "href", "selector"],
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantDateTimePropertyFilterOperator"
                        },
                        "type": {
                            "const": "element",
                            "description": "Filter by autocaptured HTML element properties (`$autocapture`, `$rageclick`). Example: `{ type: \"element\", key: \"text\", value: \"Sign Up\", operator: \"exact\" }`",
                            "type": "string"
                        },
                        "value": {
                            "description": "Value must be a date in ISO 8601 format.",
                            "type": "string"
                        }
                    },
                    "required": ["key", "operator", "type", "value"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "key": {
                            "description": "The element property to filter on. `tag_name` — HTML tag (e.g., `button`, `a`, `input`). `text` — visible text content of the element. `href` — the `href` attribute for links. `selector` — a CSS selector matching the element (e.g., `div.main > button.cta`).",
                            "enum": ["tag_name", "text", "href", "selector"],
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantSetPropertyFilterOperator",
                            "description": "`is_set` - the property has any value. `is_not_set` - the property doesn't have a value or wasn't collected."
                        },
                        "type": {
                            "const": "element",
                            "description": "Filter by autocaptured HTML element properties (`$autocapture`, `$rageclick`). Example: `{ type: \"element\", key: \"text\", value: \"Sign Up\", operator: \"exact\" }`",
                            "type": "string"
                        }
                    },
                    "required": ["key", "operator", "type"],
                    "type": "object"
                }
            ]
        },
        "AssistantErrorTrackingQuery": {
            "additionalProperties": false,
            "properties": {
                "assignee": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/ErrorTrackingIssueAssignee"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Filter by assignee."
                },
                "dateRange": {
                    "$ref": "#/definitions/DateRange",
                    "description": "Date range to filter results."
                },
                "filterGroup": {
                    "default": [],
                    "description": "Property filters for the query",
                    "items": {
                        "$ref": "#/definitions/AssistantPropertyFilter"
                    },
                    "type": "array"
                },
                "filterTestAccounts": {
                    "description": "Whether to filter out test accounts.",
                    "type": "boolean"
                },
                "issueId": {
                    "description": "Filter to a specific error tracking issue by ID.",
                    "type": "string"
                },
                "kind": {
                    "const": "ErrorTrackingQuery",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "orderBy": {
                    "$ref": "#/definitions/ErrorTrackingOrderBy",
                    "description": "Field to sort results by."
                },
                "orderDirection": {
                    "description": "Sort direction.",
                    "enum": ["ASC", "DESC"],
                    "type": "string"
                },
                "searchQuery": {
                    "description": "Free-text search across exception type, message, and stack frames.",
                    "type": "string"
                },
                "status": {
                    "$ref": "#/definitions/ErrorTrackingQueryStatus",
                    "description": "Filter by issue status."
                },
                "volumeResolution": {
                    "$ref": "#/definitions/integer",
                    "description": "Controls volume chart granularity. Use 1 for sparklines, 0 for counts only."
                }
            },
            "required": ["kind"],
            "type": "object"
        },
        "AssistantEventMultipleBreakdownFilterType": {
            "enum": [
                "person",
                "event",
                "event_metadata",
                "element",
                "session",
                "hogql",
                "cohort",
                "revenue_analytics",
                "data_warehouse",
                "data_warehouse_person_property"
            ],
            "type": "string"
        },
        "AssistantEventType": {
            "enum": ["status", "message", "conversation", "notebook", "update", "approval", "sandbox"],
            "type": "string"
        },
        "AssistantEventsQuery": {
            "additionalProperties": {},
            "properties": {
                "kind": {
                    "const": "EventsQuery",
                    "type": "string"
                },
                "select": {
                    "description": "Event columns as HogQL expressions.",
                    "items": {
                        "$ref": "#/definitions/HogQLExpression"
                    },
                    "type": "array"
                }
            },
            "required": ["kind", "select"],
            "type": "object"
        },
        "AssistantFlagPropertyFilter": {
            "additionalProperties": false,
            "properties": {
                "key": {
                    "description": "The feature flag key.",
                    "type": "string"
                },
                "operator": {
                    "const": "flag_evaluates_to",
                    "type": "string"
                },
                "type": {
                    "const": "flag",
                    "description": "Filter events by feature flag state — only include events where a specific flag evaluated to a given value. Examples:\n- Flag enabled: `{ type: \"flag\", key: \"new-onboarding\", operator: \"flag_evaluates_to\", value: true }`\n- Specific variant: `{ type: \"flag\", key: \"checkout-experiment\", operator: \"flag_evaluates_to\", value: \"variant-a\" }`",
                    "type": "string"
                },
                "value": {
                    "description": "`true`/`false` for boolean flags, or a variant name string for multivariate flags.",
                    "type": ["boolean", "string"]
                }
            },
            "required": ["type", "key", "operator", "value"],
            "type": "object"
        },
        "AssistantForm": {
            "additionalProperties": false,
            "properties": {
                "options": {
                    "items": {
                        "$ref": "#/definitions/AssistantFormOption"
                    },
                    "type": "array"
                }
            },
            "required": ["options"],
            "type": "object"
        },
        "AssistantFormOption": {
            "additionalProperties": false,
            "properties": {
                "href": {
                    "description": "When href is set, the button opens the link rather than sending an AI message.",
                    "type": "string"
                },
                "value": {
                    "description": "Button label, which is also the message that gets sent on click.",
                    "type": "string"
                },
                "variant": {
                    "description": "'primary', 'secondary', or 'tertiary' - default 'secondary'",
                    "type": "string"
                }
            },
            "required": ["value"],
            "type": "object"
        },
        "AssistantFunnelNodeShared": {
            "additionalProperties": false,
            "properties": {
                "math": {
                    "$ref": "#/definitions/AssistantFunnelsMath",
                    "description": "Optional math aggregation type for the series. `total` is the default stored on saved funnels and can be preserved when rerunning one. `first_time_for_user` - counts the number of users who have completed the event for the first time ever. `first_time_for_user_with_filters` - counts the number of users who have completed the event with specified filters for the first time."
                },
                "optionalInFunnel": {
                    "default": false,
                    "description": "If true, this step can be skipped without breaking the funnel — conversion between the surrounding required steps still counts even if this step didn't happen. Set this when the user asks for a non-required, skippable, or optional step in the funnel. Do not set it on the first or last step (those must be required).",
                    "type": "boolean"
                },
                "properties": {
                    "items": {
                        "$ref": "#/definitions/AssistantPropertyFilter"
                    },
                    "type": "array"
                }
            },
            "type": "object"
        },
        "AssistantFunnelsActionsNode": {
            "additionalProperties": false,
            "properties": {
                "id": {
                    "description": "Action ID from the plan.",
                    "type": "number"
                },
                "kind": {
                    "const": "ActionsNode",
                    "type": "string"
                },
                "math": {
                    "$ref": "#/definitions/AssistantFunnelsMath",
                    "description": "Optional math aggregation type for the series. `total` is the default stored on saved funnels and can be preserved when rerunning one. `first_time_for_user` - counts the number of users who have completed the event for the first time ever. `first_time_for_user_with_filters` - counts the number of users who have completed the event with specified filters for the first time."
                },
                "name": {
                    "description": "Action name from the plan.",
                    "type": "string"
                },
                "optionalInFunnel": {
                    "default": false,
                    "description": "If true, this step can be skipped without breaking the funnel — conversion between the surrounding required steps still counts even if this step didn't happen. Set this when the user asks for a non-required, skippable, or optional step in the funnel. Do not set it on the first or last step (those must be required).",
                    "type": "boolean"
                },
                "properties": {
                    "items": {
                        "$ref": "#/definitions/AssistantPropertyFilter"
                    },
                    "type": "array"
                },
                "version": {
                    "description": "version of the node, used for schema migrations",
                    "type": "number"
                }
            },
            "required": ["id", "kind", "name"],
            "type": "object"
        },
        "AssistantFunnelsActorsQuery": {
            "additionalProperties": false,
            "description": "Drills into a funnel insight to list the persons behind one step — either those who converted through it or those who dropped off at it. Returned rows are `distinct_id`, `email`, `name`, and optionally matched session recordings.\n\nPair this with `query-funnel`: run the funnel query first to read the per-step counts, then call this tool with the **same** funnel query as `source`. There are two mutually exclusive modes, and the mode must match the source funnel's `funnelsFilter.funnelVizType`:\n\n1. **Step mode** (source `funnelVizType: \"steps\"`, the default): use `funnelStep` to pick a step.    A **positive** value lists actors who converted **through** that step; a **negative** value lists    actors who **dropped off** at it. Steps are 1-based, so `funnelStep: 2` = converted through step 2,    `funnelStep: -2` = dropped off at step 2. (You cannot drop off at step 1, so the smallest negative    value is `-2`.) Add `funnelStepBreakdown` to scope to one breakdown series.\n\n2. **Trends-dropoff mode** (source `funnelVizType: \"trends\"`): use `funnelTrendsDropOff` together with    `funnelTrendsEntrancePeriodStart` to list the persons behind one point of a funnel-trends    (conversion-over-time) chart.\n\nThe funnel's `time_to_convert` viz type has no persons drilldown — do not use this tool with it.",
            "properties": {
                "funnelStep": {
                    "$ref": "#/definitions/integer",
                    "description": "Step mode only (source `funnelVizType: \"steps\"`). The 1-based index of the step to drill into.\n**Positive** lists actors who converted through that step; **negative** lists actors who dropped off at it. E.g. `2` = converted through step 2, `-2` = dropped off at step 2. The smallest negative value is `-2` (no one can drop off at the entry step)."
                },
                "funnelStepBreakdown": {
                    "description": "Step mode only. Scope the actors to a single breakdown series. Pass the breakdown value(s) from the matching `query-funnel` result row verbatim (an array, e.g. `[\"Chrome\"]`). Omit for the baseline (non-breakdown) series.",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "funnelTrendsDropOff": {
                    "description": "Trends-dropoff mode only (source `funnelVizType: \"trends\"`). When `true`, list the actors who dropped off; when `false`, list those who converted. Use together with `funnelTrendsEntrancePeriodStart`.",
                    "type": "boolean"
                },
                "funnelTrendsEntrancePeriodStart": {
                    "description": "Trends-dropoff mode only. The entrance period to drill into, as a `YYYY-MM-DD HH:mm:ss` string (e.g. `'2024-01-15 00:00:00'`), taken from the funnel-trends point the user is asking about. Use together with `funnelTrendsDropOff`.",
                    "type": "string"
                },
                "includeRecordings": {
                    "default": true,
                    "description": "Whether to include matched session recordings for each actor.",
                    "type": "boolean"
                },
                "kind": {
                    "const": "FunnelsActorsQuery",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer",
                    "default": 100,
                    "description": "Maximum number of persons to return in one page, from 1 to 1000. Higher values are clamped."
                },
                "offset": {
                    "$ref": "#/definitions/integer",
                    "default": 0,
                    "description": "Number of persons to skip before the returned page. Use it with `limit` to walk the whole result set: the response reports `limit`, `offset`, and `hasMore`, so when `hasMore` is true, call again with `offset` raised by `limit`."
                },
                "source": {
                    "$ref": "#/definitions/AssistantFunnelsQuery",
                    "description": "The source funnel insight query whose step (or trends point) we are drilling into."
                }
            },
            "required": ["kind", "source"],
            "type": "object"
        },
        "AssistantFunnelsBreakdownFilter": {
            "additionalProperties": false,
            "properties": {
                "breakdown": {
                    "description": "The entity property to break down by.",
                    "type": "string"
                },
                "breakdown_group_type_index": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/integer"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "If `breakdown_type` is `group`, this is the index of the group. Use the index from the group mapping."
                },
                "breakdown_limit": {
                    "$ref": "#/definitions/integer",
                    "default": 25,
                    "description": "How many distinct values to show."
                },
                "breakdown_type": {
                    "$ref": "#/definitions/AssistantFunnelsBreakdownType",
                    "default": "event",
                    "description": "Type of the entity to break down by. If `group` is used, you must also provide `breakdown_group_type_index` from the group mapping."
                }
            },
            "required": ["breakdown_type", "breakdown"],
            "type": "object"
        },
        "AssistantFunnelsBreakdownType": {
            "enum": ["person", "event", "group", "session"],
            "type": "string"
        },
        "AssistantFunnelsEventsNode": {
            "additionalProperties": false,
            "properties": {
                "custom_name": {
                    "description": "Optional custom name for the event if it is needed to be renamed.",
                    "type": "string"
                },
                "event": {
                    "description": "Name of the event.",
                    "type": "string"
                },
                "kind": {
                    "const": "EventsNode",
                    "type": "string"
                },
                "math": {
                    "$ref": "#/definitions/AssistantFunnelsMath",
                    "description": "Optional math aggregation type for the series. `total` is the default stored on saved funnels and can be preserved when rerunning one. `first_time_for_user` - counts the number of users who have completed the event for the first time ever. `first_time_for_user_with_filters` - counts the number of users who have completed the event with specified filters for the first time."
                },
                "optionalInFunnel": {
                    "default": false,
                    "description": "If true, this step can be skipped without breaking the funnel — conversion between the surrounding required steps still counts even if this step didn't happen. Set this when the user asks for a non-required, skippable, or optional step in the funnel. Do not set it on the first or last step (those must be required).",
                    "type": "boolean"
                },
                "properties": {
                    "items": {
                        "$ref": "#/definitions/AssistantPropertyFilter"
                    },
                    "type": "array"
                },
                "version": {
                    "description": "version of the node, used for schema migrations",
                    "type": "number"
                }
            },
            "required": ["event", "kind"],
            "type": "object"
        },
        "AssistantFunnelsExclusionEventsNode": {
            "additionalProperties": false,
            "description": "Exclustion steps for funnels. The \"from\" and \"to\" steps must not exceed the funnel's series length.",
            "properties": {
                "event": {
                    "type": "string"
                },
                "funnelFromStep": {
                    "$ref": "#/definitions/integer"
                },
                "funnelToStep": {
                    "$ref": "#/definitions/integer"
                },
                "kind": {
                    "const": "EventsNode",
                    "type": "string"
                }
            },
            "required": ["event", "funnelFromStep", "funnelToStep", "kind"],
            "type": "object"
        },
        "AssistantFunnelsFilter": {
            "additionalProperties": false,
            "properties": {
                "binCount": {
                    "description": "Use this setting only when `funnelVizType` is `time_to_convert`: number of bins to show in histogram.",
                    "type": "integer"
                },
                "breakdownAttributionType": {
                    "$ref": "#/definitions/BreakdownAttributionType",
                    "default": "first_touch",
                    "description": "Controls how the breakdown value is attributed to a specific step. `first_touch` - the breakdown value is the first property value found in the entire funnel. `last_touch` - the breakdown value is the last property value found in the entire funnel. `all_events` - the breakdown value must be present in all steps of the funnel. `step` - the breakdown value is the property value found at a specific step defined by `breakdownAttributionValue`."
                },
                "breakdownAttributionValue": {
                    "description": "When `breakdownAttributionType` is `step`, this is the step number (0-indexed) to attribute the breakdown value to.",
                    "type": "integer"
                },
                "exclusions": {
                    "default": [],
                    "description": "Users may want to use exclusion events to filter out conversions in which a particular event occurred between specific steps. These events must not be included in the main sequence. This doesn't exclude users who have completed the event before or after the funnel sequence, but often this is what users want. (If not sure, worth clarifying.) You must include start and end indexes for each exclusion where the minimum index is one and the maximum index is the number of steps in the funnel. For example, there is a sequence with three steps: sign up, finish onboarding, purchase. If the user wants to exclude all conversions in which users left the page before finishing the onboarding, the exclusion step would be the event `$pageleave` with start index 2 and end index 3. When exclusion steps appear needed when you're planning the query, make sure to explicitly state this in the plan.",
                    "items": {
                        "$ref": "#/definitions/AssistantFunnelsExclusionEventsNode"
                    },
                    "type": "array"
                },
                "funnelAggregateByHogQL": {
                    "default": null,
                    "description": "Use this field only if the user explicitly asks to aggregate the funnel by unique sessions.",
                    "enum": ["properties.$session_id", null],
                    "type": ["string", "null"]
                },
                "funnelOrderType": {
                    "$ref": "#/definitions/StepOrderValue",
                    "default": "ordered",
                    "description": "Defines the behavior of event matching between steps. Prefer the `strict` option unless explicitly told to use a different one. `ordered` - defines a sequential funnel. Step B must happen after Step A, but any number of events can happen between A and B. `strict` - defines a funnel where all events must happen in order. Step B must happen directly after Step A without any events in between. `any` - order doesn't matter. Steps can be completed in any sequence."
                },
                "funnelStepReference": {
                    "$ref": "#/definitions/FunnelStepReference",
                    "default": "total",
                    "description": "Whether conversion shown in the graph should be across all steps or just relative to the previous step."
                },
                "funnelVizType": {
                    "$ref": "#/definitions/FunnelVizType",
                    "default": "steps",
                    "description": "Defines the type of visualization to use. `steps` - one bar per step with the conversion between them (default). Use for \"what's the conversion rate\" and \"where do users drop off\". `trends` - the conversion rate of the whole sequence as a time series. Use whenever the question is about change over time (\"is conversion improving\", \"conversion per week\", \"since we shipped X\"); a `steps` chart cannot show that. `time_to_convert` - a histogram of how long users took to complete the funnel."
                },
                "funnelWindowInterval": {
                    "$ref": "#/definitions/integer",
                    "default": 14,
                    "description": "Controls a time frame value for a conversion to be considered. Select a reasonable value based on the user's query. If needed, this can be practically unlimited by setting a large value, though it's rare to need that. Use in combination with `funnelWindowIntervalUnit`. The default value is 14 days."
                },
                "funnelWindowIntervalUnit": {
                    "$ref": "#/definitions/FunnelConversionWindowTimeUnit",
                    "default": "day",
                    "description": "Controls a time frame interval for a conversion to be considered. Select a reasonable value based on the user's query. Use in combination with `funnelWindowInterval`. The default value is 14 days."
                },
                "layout": {
                    "$ref": "#/definitions/FunnelLayout",
                    "default": "vertical",
                    "description": "Controls how the funnel chart is displayed: vertically (preferred) or horizontally."
                }
            },
            "type": "object"
        },
        "AssistantFunnelsGroupNode": {
            "additionalProperties": false,
            "description": "Defines a funnel step that combines multiple events or actions with OR (e.g. \"Pageview OR Pageleave\" counted as a single step). Filters live on the inner nodes — set per-node `properties` to give each event its own filter. Step-wide group filters, funnel math, and `optionalInFunnel` are not supported on grouped steps.",
            "properties": {
                "custom_name": {
                    "type": "string"
                },
                "kind": {
                    "const": "GroupNode",
                    "type": "string"
                },
                "name": {
                    "description": "Display name for the combined step.",
                    "type": "string"
                },
                "nodes": {
                    "description": "Events and actions combined into the step. Use per-node `properties` to filter each event; there is no step-wide filter on a grouped step.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/AssistantFunnelsEventsNode"
                            },
                            {
                                "$ref": "#/definitions/AssistantFunnelsActionsNode"
                            }
                        ]
                    },
                    "minItems": 2,
                    "type": "array"
                },
                "operator": {
                    "const": "OR",
                    "description": "Only `OR` is supported.",
                    "type": "string"
                }
            },
            "required": ["kind", "operator", "nodes"],
            "type": "object"
        },
        "AssistantFunnelsMath": {
            "enum": ["total", "first_time_for_user", "first_time_for_user_with_filters"],
            "type": "string"
        },
        "AssistantFunnelsNode": {
            "anyOf": [
                {
                    "$ref": "#/definitions/AssistantFunnelsEventsNode"
                },
                {
                    "$ref": "#/definitions/AssistantFunnelsActionsNode"
                },
                {
                    "$ref": "#/definitions/AssistantFunnelsGroupNode"
                }
            ]
        },
        "AssistantFunnelsQuery": {
            "additionalProperties": false,
            "properties": {
                "aggregation_group_type_index": {
                    "$ref": "#/definitions/integer",
                    "description": "Use this field to define the aggregation by a specific group from the provided group mapping, which is NOT users or sessions."
                },
                "breakdownFilter": {
                    "$ref": "#/definitions/AssistantFunnelsBreakdownFilter",
                    "description": "A breakdown is used to segment data by a single property value. They divide all defined funnel series into multiple subseries based on the values of the property. Include a breakdown **only when it is essential to directly answer the user’s question**. You must not add a breakdown if the question can be addressed without additional segmentation. When using breakdowns, you must:\n- **Identify the property group** and name for a breakdown.\n- **Provide the property name** for a breakdown.\n- **Validate that the property value accurately reflects the intended criteria**. Examples of using a breakdown:\n- page views to sign up funnel by country: you need to find a property such as `$geoip_country_code` and set it as a breakdown.\n- conversion rate of users who have completed onboarding after signing up by an organization: you need to find a property such as `organization name` and set it as a breakdown."
                },
                "dateRange": {
                    "$ref": "#/definitions/AssistantDateRangeFilter",
                    "description": "Date range for the query"
                },
                "filterTestAccounts": {
                    "default": false,
                    "description": "Exclude internal and test users by applying the respective filters",
                    "type": "boolean"
                },
                "funnelsFilter": {
                    "$ref": "#/definitions/AssistantFunnelsFilter",
                    "description": "Properties specific to the funnels insight"
                },
                "interval": {
                    "$ref": "#/definitions/IntervalType",
                    "description": "Granularity of the response. Can be one of `hour`, `day`, `week` or `month`"
                },
                "kind": {
                    "const": "FunnelsQuery",
                    "type": "string"
                },
                "properties": {
                    "default": [],
                    "description": "Property filters for all series",
                    "items": {
                        "$ref": "#/definitions/AssistantInsightPropertyFilter"
                    },
                    "type": "array"
                },
                "samplingFactor": {
                    "description": "Sampling rate from 0 to 1 where 1 is 100% of the data.",
                    "type": ["number", "null"]
                },
                "series": {
                    "description": "Events or actions to include. Prioritize the more popular and fresh events and actions.",
                    "items": {
                        "$ref": "#/definitions/AssistantFunnelsNode"
                    },
                    "type": "array"
                }
            },
            "required": ["kind", "series"],
            "type": "object"
        },
        "AssistantGenerationStatusEvent": {
            "additionalProperties": false,
            "properties": {
                "type": {
                    "$ref": "#/definitions/AssistantGenerationStatusType"
                }
            },
            "required": ["type"],
            "type": "object"
        },
        "AssistantGenerationStatusType": {
            "enum": ["ack", "generation_error"],
            "type": "string"
        },
        "AssistantGenericMultipleBreakdownFilter": {
            "additionalProperties": false,
            "properties": {
                "property": {
                    "description": "Property name from the plan to break down by.",
                    "type": "string"
                },
                "type": {
                    "$ref": "#/definitions/AssistantEventMultipleBreakdownFilterType"
                }
            },
            "required": ["property", "type"],
            "type": "object"
        },
        "AssistantGenericPropertyFilter": {
            "anyOf": [
                {
                    "additionalProperties": false,
                    "properties": {
                        "key": {
                            "description": "Use one of the properties the user has provided in the plan.",
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantStringOrBooleanValuePropertyFilterOperator",
                            "description": "`icontains` - case insensitive contains. `not_icontains` - case insensitive does not contain. `regex` - matches the regex pattern. `not_regex` - does not match the regex pattern."
                        },
                        "type": {
                            "$ref": "#/definitions/AssistantGenericPropertyFilterType"
                        },
                        "value": {
                            "description": "Only use property values from the plan. If the operator is `regex` or `not_regex`, the value must be a valid ClickHouse regex pattern to match against. Otherwise, the value must be a substring that will be matched against the property value. Use the string values `true` or `false` for boolean properties.",
                            "type": "string"
                        }
                    },
                    "required": ["key", "operator", "type", "value"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "key": {
                            "description": "Use one of the properties the user has provided in the plan.",
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantNumericValuePropertyFilterOperator"
                        },
                        "type": {
                            "$ref": "#/definitions/AssistantGenericPropertyFilterType"
                        },
                        "value": {
                            "type": "number"
                        }
                    },
                    "required": ["key", "operator", "type", "value"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "key": {
                            "description": "Use one of the properties the user has provided in the plan.",
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantArrayPropertyFilterOperator",
                            "description": "`exact` - exact match of any of the values. `is_not` - does not match any of the values."
                        },
                        "type": {
                            "$ref": "#/definitions/AssistantGenericPropertyFilterType"
                        },
                        "value": {
                            "description": "Only use property values from the plan. Always use strings as values. If you have a number, convert it to a string first. If you have a boolean, convert it to a string \"true\" or \"false\".",
                            "items": {
                                "type": "string"
                            },
                            "type": "array"
                        }
                    },
                    "required": ["key", "operator", "type", "value"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "key": {
                            "description": "Use one of the properties the user has provided in the plan.",
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantDateTimePropertyFilterOperator"
                        },
                        "type": {
                            "$ref": "#/definitions/AssistantGenericPropertyFilterType"
                        },
                        "value": {
                            "description": "Value must be a date in ISO 8601 format.",
                            "type": "string"
                        }
                    },
                    "required": ["key", "operator", "type", "value"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "key": {
                            "description": "Use one of the properties the user has provided in the plan.",
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantSetPropertyFilterOperator",
                            "description": "`is_set` - the property has any value. `is_not_set` - the property doesn't have a value or wasn't collected."
                        },
                        "type": {
                            "$ref": "#/definitions/AssistantGenericPropertyFilterType"
                        }
                    },
                    "required": ["key", "operator", "type"],
                    "type": "object"
                }
            ]
        },
        "AssistantGenericPropertyFilterType": {
            "enum": ["event", "person", "session", "feature"],
            "type": "string"
        },
        "AssistantGroupMultipleBreakdownFilter": {
            "additionalProperties": false,
            "properties": {
                "group_type_index": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/integer"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Index of the group type from the group mapping."
                },
                "property": {
                    "description": "Property name from the plan to break down by.",
                    "type": "string"
                },
                "type": {
                    "const": "group",
                    "type": "string"
                }
            },
            "required": ["property", "type"],
            "type": "object"
        },
        "AssistantGroupPropertyFilter": {
            "anyOf": [
                {
                    "additionalProperties": false,
                    "properties": {
                        "group_type_index": {
                            "$ref": "#/definitions/integer",
                            "description": "Index of the group type from the group mapping."
                        },
                        "key": {
                            "description": "Use one of the properties the user has provided in the plan.",
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantStringOrBooleanValuePropertyFilterOperator",
                            "description": "`icontains` - case insensitive contains. `not_icontains` - case insensitive does not contain. `regex` - matches the regex pattern. `not_regex` - does not match the regex pattern."
                        },
                        "type": {
                            "const": "group",
                            "type": "string"
                        },
                        "value": {
                            "description": "Only use property values from the plan. If the operator is `regex` or `not_regex`, the value must be a valid ClickHouse regex pattern to match against. Otherwise, the value must be a substring that will be matched against the property value. Use the string values `true` or `false` for boolean properties.",
                            "type": "string"
                        }
                    },
                    "required": ["group_type_index", "key", "operator", "type", "value"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "group_type_index": {
                            "$ref": "#/definitions/integer",
                            "description": "Index of the group type from the group mapping."
                        },
                        "key": {
                            "description": "Use one of the properties the user has provided in the plan.",
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantNumericValuePropertyFilterOperator"
                        },
                        "type": {
                            "const": "group",
                            "type": "string"
                        },
                        "value": {
                            "type": "number"
                        }
                    },
                    "required": ["group_type_index", "key", "operator", "type", "value"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "group_type_index": {
                            "$ref": "#/definitions/integer",
                            "description": "Index of the group type from the group mapping."
                        },
                        "key": {
                            "description": "Use one of the properties the user has provided in the plan.",
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantArrayPropertyFilterOperator",
                            "description": "`exact` - exact match of any of the values. `is_not` - does not match any of the values."
                        },
                        "type": {
                            "const": "group",
                            "type": "string"
                        },
                        "value": {
                            "description": "Only use property values from the plan. Always use strings as values. If you have a number, convert it to a string first. If you have a boolean, convert it to a string \"true\" or \"false\".",
                            "items": {
                                "type": "string"
                            },
                            "type": "array"
                        }
                    },
                    "required": ["group_type_index", "key", "operator", "type", "value"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "group_type_index": {
                            "$ref": "#/definitions/integer",
                            "description": "Index of the group type from the group mapping."
                        },
                        "key": {
                            "description": "Use one of the properties the user has provided in the plan.",
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantDateTimePropertyFilterOperator"
                        },
                        "type": {
                            "const": "group",
                            "type": "string"
                        },
                        "value": {
                            "description": "Value must be a date in ISO 8601 format.",
                            "type": "string"
                        }
                    },
                    "required": ["group_type_index", "key", "operator", "type", "value"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "group_type_index": {
                            "$ref": "#/definitions/integer",
                            "description": "Index of the group type from the group mapping."
                        },
                        "key": {
                            "description": "Use one of the properties the user has provided in the plan.",
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantSetPropertyFilterOperator",
                            "description": "`is_set` - the property has any value. `is_not_set` - the property doesn't have a value or wasn't collected."
                        },
                        "type": {
                            "const": "group",
                            "type": "string"
                        }
                    },
                    "required": ["group_type_index", "key", "operator", "type"],
                    "type": "object"
                }
            ]
        },
        "AssistantHogQLPropertyFilter": {
            "additionalProperties": false,
            "properties": {
                "key": {
                    "description": "A HogQL boolean expression used as a filter condition.\n\nExamples:\n- Filter where a property exceeds a threshold: `toFloat(properties.load_time) > 5.0`\n- Filter with string matching: `properties.$current_url LIKE '%/pricing%'`\n- Filter with multiple conditions: `properties.$browser = 'Chrome' AND toFloat(properties.duration) > 30`",
                    "type": "string"
                },
                "type": {
                    "const": "hogql",
                    "description": "Filter by a HogQL boolean expression for advanced filtering that can't be expressed with standard property filters.",
                    "type": "string"
                }
            },
            "required": ["type", "key"],
            "type": "object"
        },
        "AssistantHogQLQuery": {
            "additionalProperties": false,
            "properties": {
                "kind": {
                    "const": "HogQLQuery",
                    "type": "string"
                },
                "query": {
                    "description": "SQL SELECT statement to execute. Mostly standard ClickHouse SQL with PostHog-specific additions.",
                    "type": "string"
                }
            },
            "required": ["kind", "query"],
            "type": "object"
        },
        "AssistantInsightPropertyFilter": {
            "anyOf": [
                {
                    "$ref": "#/definitions/AssistantPropertyFilter"
                },
                {
                    "$ref": "#/definitions/AssistantBehavioralPropertyFilter"
                }
            ]
        },
        "AssistantInsightVizNode": {
            "additionalProperties": false,
            "properties": {
                "kind": {
                    "const": "InsightVizNode",
                    "type": "string"
                },
                "source": {
                    "description": "Product analtycs query objects like TrendsQuery, FunnelsQuery, RetentionQuery, PathsQuery, StickinessQuery, LifecycleQuery",
                    "type": "object"
                },
                "vizSpecificOptions": {
                    "$ref": "#/definitions/AssistantVizSpecificOptions",
                    "description": "Chart rendering options."
                }
            },
            "required": ["kind", "source"],
            "type": "object"
        },
        "AssistantInsightsQueryBase": {
            "additionalProperties": false,
            "properties": {
                "aggregation_group_type_index": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/integer"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Groups aggregation"
                },
                "dateRange": {
                    "$ref": "#/definitions/AssistantDateRangeFilter",
                    "description": "Date range for the query"
                },
                "filterTestAccounts": {
                    "default": false,
                    "description": "Exclude internal and test users by applying the respective filters",
                    "type": "boolean"
                },
                "properties": {
                    "default": [],
                    "description": "Property filters for all series",
                    "items": {
                        "$ref": "#/definitions/AssistantInsightPropertyFilter"
                    },
                    "type": "array"
                },
                "samplingFactor": {
                    "description": "Sampling rate from 0 to 1 where 1 is 100% of the data.",
                    "type": ["number", "null"]
                }
            },
            "type": "object"
        },
        "AssistantLifecycleActionsNode": {
            "additionalProperties": false,
            "properties": {
                "custom_name": {
                    "type": "string"
                },
                "id": {
                    "$ref": "#/definitions/integer"
                },
                "kind": {
                    "const": "ActionsNode",
                    "description": "Defines the action series for the lifecycle insight. Lifecycle does not support math aggregations. You must provide the action ID in the `id` field and the name in the `name` field.",
                    "type": "string"
                },
                "name": {
                    "description": "Action name from the plan.",
                    "type": "string"
                },
                "properties": {
                    "items": {
                        "$ref": "#/definitions/AssistantPropertyFilter"
                    },
                    "type": "array"
                }
            },
            "required": ["id", "kind", "name"],
            "type": "object"
        },
        "AssistantLifecycleActorsQuery": {
            "additionalProperties": false,
            "description": "Drills into a lifecycle insight to list the persons behind a specific bucket. Returned rows are `distinct_id`, `email`, and `name`. Lifecycle is a bucket-membership query, so no per-actor `event_count` or matched recordings are projected — the underlying lifecycle runner does not surface a `matching_events` column.\n\nUse the selector fields (`day`, `status`) to identify the specific bucket — a lifecycle insight is a 4-row stack (new / returning / resurrecting / dormant) per day.\n\nNote: lifecycle insights only support a single series and do not expose `compareFilter`, so `series` and `compare` selectors are intentionally omitted.",
            "properties": {
                "day": {
                    "description": "Bucket date for the data point. Must be an ISO date string (YYYY-MM-DD), e.g. '2024-01-15'.",
                    "type": "string"
                },
                "kind": {
                    "const": "InsightActorsQuery",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer",
                    "default": 100,
                    "description": "Maximum number of persons to return in one page, from 1 to 1000. Higher values are clamped."
                },
                "offset": {
                    "$ref": "#/definitions/integer",
                    "default": 0,
                    "description": "Number of persons to skip before the returned page. Use it with `limit` to walk the whole result set: the response reports `limit`, `offset`, and `hasMore`, so when `hasMore` is true, call again with `offset` raised by `limit`."
                },
                "source": {
                    "$ref": "#/definitions/AssistantLifecycleQuery",
                    "description": "The source lifecycle insight query whose bucket we are drilling into."
                },
                "status": {
                    "$ref": "#/definitions/AssistantLifecycleStatus",
                    "description": "Lifecycle status to drill into for the given day. Must be one of the bucket names visible in the source's `lifecycleFilter.toggledLifecycles` (defaults to all four when omitted)."
                }
            },
            "required": ["kind", "source", "day", "status"],
            "type": "object"
        },
        "AssistantLifecycleEventsNode": {
            "additionalProperties": false,
            "properties": {
                "custom_name": {
                    "type": "string"
                },
                "event": {
                    "description": "The event or `null` for all events.",
                    "type": ["string", "null"]
                },
                "kind": {
                    "const": "EventsNode",
                    "description": "Defines the event series for the lifecycle insight. Lifecycle does not support math aggregations.",
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "properties": {
                    "items": {
                        "$ref": "#/definitions/AssistantPropertyFilter"
                    },
                    "type": "array"
                }
            },
            "required": ["kind"],
            "type": "object"
        },
        "AssistantLifecycleFilter": {
            "additionalProperties": false,
            "properties": {
                "showLegend": {
                    "default": false,
                    "description": "Whether to show the legend describing series.",
                    "type": "boolean"
                },
                "showValuesOnSeries": {
                    "default": false,
                    "description": "Whether to show a value on each data point.",
                    "type": "boolean"
                },
                "stacked": {
                    "default": true,
                    "description": "Whether the lifecycle bars should be stacked.",
                    "type": "boolean"
                },
                "toggledLifecycles": {
                    "description": "Lifecycles that have been removed from display are not included in this array. Available values: `new`, `returning`, `resurrecting`, `dormant`.\n- `new` - users who performed the event for the first time during the period.\n- `returning` - users who were active in the previous period and are active in the current period.\n- `resurrecting` - users who were inactive for one or more periods and became active again.\n- `dormant` - users who were active in the previous period but are inactive in the current period.",
                    "items": {
                        "$ref": "#/definitions/LifecycleToggle"
                    },
                    "type": "array"
                }
            },
            "type": "object"
        },
        "AssistantLifecycleQuery": {
            "additionalProperties": false,
            "properties": {
                "aggregation_group_type_index": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/integer"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Groups aggregation"
                },
                "dateRange": {
                    "$ref": "#/definitions/AssistantDateRangeFilter",
                    "description": "Date range for the query"
                },
                "filterTestAccounts": {
                    "default": false,
                    "description": "Exclude internal and test users by applying the respective filters",
                    "type": "boolean"
                },
                "interval": {
                    "$ref": "#/definitions/IntervalType",
                    "default": "day",
                    "description": "Granularity of the response. Can be one of `hour`, `day`, `week` or `month`"
                },
                "kind": {
                    "const": "LifecycleQuery",
                    "type": "string"
                },
                "lifecycleFilter": {
                    "$ref": "#/definitions/AssistantLifecycleFilter",
                    "description": "Properties specific to the lifecycle insight"
                },
                "properties": {
                    "default": [],
                    "description": "Property filters for all series",
                    "items": {
                        "$ref": "#/definitions/AssistantInsightPropertyFilter"
                    },
                    "type": "array"
                },
                "samplingFactor": {
                    "description": "Sampling rate from 0 to 1 where 1 is 100% of the data.",
                    "type": ["number", "null"]
                },
                "series": {
                    "description": "Event or action to analyze. Lifecycle insights only support a single series.",
                    "items": {
                        "$ref": "#/definitions/AssistantLifecycleSeriesNode"
                    },
                    "maxItems": 1,
                    "type": "array"
                }
            },
            "required": ["kind", "series"],
            "type": "object"
        },
        "AssistantLifecycleSeriesNode": {
            "anyOf": [
                {
                    "$ref": "#/definitions/AssistantLifecycleEventsNode"
                },
                {
                    "$ref": "#/definitions/AssistantLifecycleActionsNode"
                }
            ]
        },
        "AssistantLifecycleStatus": {
            "description": "A single lifecycle bucket — see `AssistantLifecycleActorsQuery.status`.",
            "enum": ["new", "returning", "resurrecting", "dormant"],
            "type": "string"
        },
        "AssistantMessage": {
            "additionalProperties": false,
            "properties": {
                "content": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "meta": {
                    "$ref": "#/definitions/AssistantMessageMetadata"
                },
                "parent_tool_call_id": {
                    "type": "string"
                },
                "tool_calls": {
                    "items": {
                        "$ref": "#/definitions/AssistantToolCall"
                    },
                    "type": "array"
                },
                "type": {
                    "const": "ai",
                    "type": "string"
                }
            },
            "required": ["type", "content"],
            "type": "object"
        },
        "AssistantMessageMetadata": {
            "additionalProperties": false,
            "properties": {
                "form": {
                    "$ref": "#/definitions/AssistantForm"
                },
                "source": {
                    "description": "Provenance for non-LLM-authored messages. Format: `slash_command:<name>`.",
                    "type": "string"
                },
                "thinking": {
                    "description": "Thinking blocks, as well as server_tool_use and web_search_tool_result ones. Anthropic format of blocks.",
                    "items": {
                        "additionalProperties": {},
                        "type": "object"
                    },
                    "type": "array"
                }
            },
            "type": "object"
        },
        "AssistantMessageType": {
            "enum": [
                "human",
                "tool",
                "context",
                "ai",
                "ai/reasoning",
                "ai/viz",
                "ai/multi_viz",
                "ai/artifact",
                "ai/failure",
                "ai/notebook",
                "ai/planning",
                "ai/task_execution"
            ],
            "type": "string"
        },
        "AssistantMetricsNodeKind": {
            "enum": ["MetricsQuery", "MetricsHistogramQuery"],
            "type": "string"
        },
        "AssistantMultipleBreakdownFilter": {
            "anyOf": [
                {
                    "$ref": "#/definitions/AssistantGroupMultipleBreakdownFilter"
                },
                {
                    "$ref": "#/definitions/AssistantGenericMultipleBreakdownFilter"
                }
            ]
        },
        "AssistantNavigateUrl": {
            "description": "Exact possible `urls` keys for the `navigate` tool.",
            "enum": [
                "actions",
                "activity",
                "alerts",
                "annotations",
                "createAction",
                "cohorts",
                "dashboards",
                "database",
                "earlyAccessFeatures",
                "eventDefinitions",
                "errorTracking",
                "experiments",
                "featureFlags",
                "game368hedgehogs",
                "heatmaps",
                "ingestionWarnings",
                "insights",
                "insightNew",
                "pipeline",
                "projectHomepage",
                "propertyDefinitions",
                "max",
                "notebooks",
                "replay",
                "replaySettings",
                "savedInsights",
                "settings",
                "sqlEditor",
                "surveys",
                "toolbarLaunch",
                "webAnalytics",
                "webAnalyticsWebVitals",
                "webAnalyticsHealth",
                "webAnalyticsLive",
                "persons"
            ],
            "type": "string"
        },
        "AssistantNumericValuePropertyFilter": {
            "additionalProperties": false,
            "properties": {
                "operator": {
                    "$ref": "#/definitions/AssistantNumericValuePropertyFilterOperator"
                },
                "value": {
                    "type": "number"
                }
            },
            "required": ["operator", "value"],
            "type": "object"
        },
        "AssistantNumericValuePropertyFilterOperator": {
            "enum": ["exact", "gt", "lt"],
            "type": "string"
        },
        "AssistantPathCleaningFilter": {
            "additionalProperties": false,
            "description": "Defines a regex-based path cleaning rule to normalize dynamic path components. Path cleaning rules replace matching URL patterns with a readable alias, which helps group similar paths together (e.g., `/user/123/profile` and `/user/456/profile` become `/user/:id/profile`).",
            "properties": {
                "alias": {
                    "description": "A human-readable alias that replaces matched path patterns in the visualization. For example, `/user/:id/profile` to replace `/user/123/profile`. Uses ClickHouse `replaceRegexpAll` replacement syntax — use `\\\\1` for capture group back-references.",
                    "type": "string"
                },
                "regex": {
                    "description": "A ClickHouse regex pattern to match against path values. Matched paths will be replaced with the alias. For example, `\\/user\\/\\d+\\/profile` to match any user profile URL.",
                    "type": "string"
                }
            },
            "required": ["alias", "regex"],
            "type": "object"
        },
        "AssistantPathsActorsQuery": {
            "additionalProperties": false,
            "description": "Drills into a paths insight to list the persons behind it. Returned rows are `distinct_id`, `name`, `email`, `event_count`, and optionally matched session recordings.\n\nThere are no per-cell selectors like `day` or `series` — everything is configured on the `source` paths query. Two modes:\n- Whole path: set `pathsFilter.startPoint` / `endPoint` (plus `includeEventTypes`, date range,   property filters) to return every actor on that path.\n- Specific node/edge: set `pathsFilter.pathEndKey` (arrived at a node), `pathStartKey` (departed   from a node), both together (a single `source → target` edge), or `pathDropoffKey` (dropped off).   The key value is `<stepIndex>_<value>`, taken verbatim from a `query-paths` result row's   `target` / `source`.",
            "properties": {
                "includeRecordings": {
                    "default": true,
                    "description": "Whether to include matched session recordings for each actor.",
                    "type": "boolean"
                },
                "kind": {
                    "const": "InsightActorsQuery",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer",
                    "default": 100,
                    "description": "Maximum number of persons to return in one page, from 1 to 1000. Higher values are clamped."
                },
                "offset": {
                    "$ref": "#/definitions/integer",
                    "default": 0,
                    "description": "Number of persons to skip before the returned page. Use it with `limit` to walk the whole result set: the response reports `limit`, `offset`, and `hasMore`, so when `hasMore` is true, call again with `offset` raised by `limit`."
                },
                "source": {
                    "$ref": "#/definitions/AssistantPathsQuery",
                    "description": "The source paths insight query whose actors we are listing."
                }
            },
            "required": ["kind", "source"],
            "type": "object"
        },
        "AssistantPathsFilter": {
            "additionalProperties": false,
            "properties": {
                "edgeLimit": {
                    "$ref": "#/definitions/integer",
                    "default": 50,
                    "description": "Maximum number of path edges (connections between steps) to return. Higher values show more detail but can make the visualization harder to read."
                },
                "endPoint": {
                    "description": "Filter to only show paths that end at this specific step. Same format as `startPoint`.",
                    "type": "string"
                },
                "excludeEvents": {
                    "default": [],
                    "description": "Event names or URLs to exclude from the path analysis entirely. Excluded events are filtered out before building the path visualization. Useful for removing noise from common but uninteresting events.",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "includeEventTypes": {
                    "description": "Which event types to include in the path analysis. Available values: `$pageview` - web page views. Path values are page URLs (from `$current_url`), with trailing slashes stripped. `$screen` - mobile screen views. Path values are screen names (from `$screen_name`). `custom_event` - custom events (any event not starting with `$`). Path values are event names. `hogql` - custom HogQL expression defined in `pathsHogQLExpression`. Path values come from evaluating the expression. You can combine multiple types. If not specified, all events are included without type filtering. Paths never include `$feature_flag_called` events, whichever types are set.",
                    "items": {
                        "$ref": "#/definitions/PathType"
                    },
                    "type": "array"
                },
                "localPathCleaningFilters": {
                    "default": [],
                    "description": "ClickHouse regex-based rules to clean and normalize path values at the query level. Each rule applies `replaceRegexpAll(path, regex, alias)` in sequence. Useful for removing dynamic IDs or parameters from URLs.",
                    "items": {
                        "$ref": "#/definitions/AssistantPathCleaningFilter"
                    },
                    "type": "array"
                },
                "maxEdgeWeight": {
                    "$ref": "#/definitions/integer",
                    "description": "Maximum number of users who traversed an edge for it to be displayed. Filters out high-traffic paths to focus on less common journeys."
                },
                "minEdgeWeight": {
                    "$ref": "#/definitions/integer",
                    "description": "Minimum number of users who traversed an edge for it to be displayed. Filters out low-traffic paths to reduce visual noise."
                },
                "pathDropoffKey": {
                    "description": "Actors drilldown only. Restrict the returned persons to those who **dropped off** at a specific node (reached it but did not continue). Format is `<stepIndex>_<value>`. Mutually exclusive with `pathStartKey` / `pathEndKey`. Ignored by non-actors paths queries.",
                    "type": "string"
                },
                "pathEndKey": {
                    "description": "Actors drilldown only. Restrict the returned persons to those who **arrived at** a specific node in the path graph. Format is `<stepIndex>_<value>`, e.g. `\"3_https://example.com/checkout\"`. Take the value verbatim from a `target` field of a `query-paths` result row. Combine with `pathStartKey` to pin a single edge. Leave unset to return every actor on the path. Ignored by non-actors paths queries.",
                    "type": "string"
                },
                "pathGroupings": {
                    "default": [],
                    "description": "Glob-like patterns to group multiple path items into a single step. Use `*` as a wildcard. The patterns are auto-escaped, so only `*` has special meaning. For example, `/product/*` to group all product pages into one node.",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "pathStartKey": {
                    "description": "Actors drilldown only. Restrict the returned persons to those who **departed from** a specific node in the path graph. Format is `<stepIndex>_<value>`, e.g. `\"2_https://example.com/pricing\"`. Take the value verbatim from a `source` field of a `query-paths` result row. Combine with `pathEndKey` to pin a single edge (source → target). Leave unset to return every actor on the path (constrained only by `startPoint` / `endPoint`). Ignored by non-actors paths queries.",
                    "type": "string"
                },
                "pathsHogQLExpression": {
                    "description": "A HogQL expression to use as the path item. Required when `hogql` is included in `includeEventTypes`. For example, `properties.$current_url` to use the current URL as the path item.",
                    "type": "string"
                },
                "startPoint": {
                    "description": "Filter to only show paths that start from this specific step. The value format depends on the included event types: For `$pageview` paths, use page URLs like `/login` or `/dashboard`. For `$screen` paths, use screen names. For `custom_event` paths, use event names.",
                    "type": "string"
                },
                "stepLimit": {
                    "$ref": "#/definitions/integer",
                    "default": 5,
                    "description": "Maximum number of steps (path depth) to show in the visualization. Controls how deep the path analysis goes from the start."
                }
            },
            "type": "object"
        },
        "AssistantPathsQuery": {
            "additionalProperties": false,
            "properties": {
                "aggregation_group_type_index": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/integer"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Groups aggregation"
                },
                "dateRange": {
                    "$ref": "#/definitions/AssistantDateRangeFilter",
                    "description": "Date range for the query"
                },
                "filterTestAccounts": {
                    "default": false,
                    "description": "Exclude internal and test users by applying the respective filters",
                    "type": "boolean"
                },
                "kind": {
                    "const": "PathsQuery",
                    "type": "string"
                },
                "pathsFilter": {
                    "$ref": "#/definitions/AssistantPathsFilter",
                    "description": "Properties specific to the paths insight. Paths show the most common sequences of events or pages that users navigate through, helping identify popular user flows and drop-off points."
                },
                "properties": {
                    "default": [],
                    "description": "Property filters for all series",
                    "items": {
                        "$ref": "#/definitions/AssistantInsightPropertyFilter"
                    },
                    "type": "array"
                },
                "samplingFactor": {
                    "description": "Sampling rate from 0 to 1 where 1 is 100% of the data.",
                    "type": ["number", "null"]
                }
            },
            "required": ["kind", "pathsFilter"],
            "type": "object"
        },
        "AssistantPieChartOptions": {
            "additionalProperties": false,
            "properties": {
                "hideAggregation": {
                    "description": "Hide the total on a pie chart.",
                    "type": "boolean"
                }
            },
            "type": "object"
        },
        "AssistantPropertyFilter": {
            "anyOf": [
                {
                    "$ref": "#/definitions/AssistantGenericPropertyFilter"
                },
                {
                    "$ref": "#/definitions/AssistantGroupPropertyFilter"
                },
                {
                    "$ref": "#/definitions/AssistantCohortPropertyFilter"
                },
                {
                    "$ref": "#/definitions/AssistantElementPropertyFilter"
                },
                {
                    "$ref": "#/definitions/AssistantHogQLPropertyFilter"
                },
                {
                    "$ref": "#/definitions/AssistantFlagPropertyFilter"
                }
            ]
        },
        "AssistantQuerySchema": {
            "$ref": "#/definitions/QuerySchema"
        },
        "AssistantRecordingPropertyFilter": {
            "anyOf": [
                {
                    "additionalProperties": false,
                    "properties": {
                        "key": {
                            "description": "Recording metric to filter on.\n- `duration` — total recording duration in seconds.\n- `active_seconds` — seconds with user activity.\n- `inactive_seconds` — seconds without user activity.\n- `console_error_count` — number of console errors.\n- `console_log_count` — number of console log entries.\n- `console_warn_count` — number of console warnings.\n- `click_count` — number of clicks.\n- `keypress_count` — number of key presses.\n- `activity_score` — computed activity score (0-100).\n- `visited_page` — URL visited during the session.\n- `snapshot_source` — the recording source (e.g. \"web\", \"mobile\").",
                            "enum": [
                                "duration",
                                "active_seconds",
                                "inactive_seconds",
                                "console_error_count",
                                "console_log_count",
                                "console_warn_count",
                                "click_count",
                                "keypress_count",
                                "activity_score",
                                "visited_page",
                                "snapshot_source"
                            ],
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantStringOrBooleanValuePropertyFilterOperator",
                            "description": "`icontains` - case insensitive contains. `not_icontains` - case insensitive does not contain. `regex` - matches the regex pattern. `not_regex` - does not match the regex pattern."
                        },
                        "type": {
                            "const": "recording",
                            "type": "string"
                        },
                        "value": {
                            "description": "Only use property values from the plan. If the operator is `regex` or `not_regex`, the value must be a valid ClickHouse regex pattern to match against. Otherwise, the value must be a substring that will be matched against the property value. Use the string values `true` or `false` for boolean properties.",
                            "type": "string"
                        }
                    },
                    "required": ["key", "operator", "type", "value"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "key": {
                            "description": "Recording metric to filter on.\n- `duration` — total recording duration in seconds.\n- `active_seconds` — seconds with user activity.\n- `inactive_seconds` — seconds without user activity.\n- `console_error_count` — number of console errors.\n- `console_log_count` — number of console log entries.\n- `console_warn_count` — number of console warnings.\n- `click_count` — number of clicks.\n- `keypress_count` — number of key presses.\n- `activity_score` — computed activity score (0-100).\n- `visited_page` — URL visited during the session.\n- `snapshot_source` — the recording source (e.g. \"web\", \"mobile\").",
                            "enum": [
                                "duration",
                                "active_seconds",
                                "inactive_seconds",
                                "console_error_count",
                                "console_log_count",
                                "console_warn_count",
                                "click_count",
                                "keypress_count",
                                "activity_score",
                                "visited_page",
                                "snapshot_source"
                            ],
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantNumericValuePropertyFilterOperator"
                        },
                        "type": {
                            "const": "recording",
                            "type": "string"
                        },
                        "value": {
                            "type": "number"
                        }
                    },
                    "required": ["key", "operator", "type", "value"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "key": {
                            "description": "Recording metric to filter on.\n- `duration` — total recording duration in seconds.\n- `active_seconds` — seconds with user activity.\n- `inactive_seconds` — seconds without user activity.\n- `console_error_count` — number of console errors.\n- `console_log_count` — number of console log entries.\n- `console_warn_count` — number of console warnings.\n- `click_count` — number of clicks.\n- `keypress_count` — number of key presses.\n- `activity_score` — computed activity score (0-100).\n- `visited_page` — URL visited during the session.\n- `snapshot_source` — the recording source (e.g. \"web\", \"mobile\").",
                            "enum": [
                                "duration",
                                "active_seconds",
                                "inactive_seconds",
                                "console_error_count",
                                "console_log_count",
                                "console_warn_count",
                                "click_count",
                                "keypress_count",
                                "activity_score",
                                "visited_page",
                                "snapshot_source"
                            ],
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantArrayPropertyFilterOperator",
                            "description": "`exact` - exact match of any of the values. `is_not` - does not match any of the values."
                        },
                        "type": {
                            "const": "recording",
                            "type": "string"
                        },
                        "value": {
                            "description": "Only use property values from the plan. Always use strings as values. If you have a number, convert it to a string first. If you have a boolean, convert it to a string \"true\" or \"false\".",
                            "items": {
                                "type": "string"
                            },
                            "type": "array"
                        }
                    },
                    "required": ["key", "operator", "type", "value"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "key": {
                            "description": "Recording metric to filter on.\n- `duration` — total recording duration in seconds.\n- `active_seconds` — seconds with user activity.\n- `inactive_seconds` — seconds without user activity.\n- `console_error_count` — number of console errors.\n- `console_log_count` — number of console log entries.\n- `console_warn_count` — number of console warnings.\n- `click_count` — number of clicks.\n- `keypress_count` — number of key presses.\n- `activity_score` — computed activity score (0-100).\n- `visited_page` — URL visited during the session.\n- `snapshot_source` — the recording source (e.g. \"web\", \"mobile\").",
                            "enum": [
                                "duration",
                                "active_seconds",
                                "inactive_seconds",
                                "console_error_count",
                                "console_log_count",
                                "console_warn_count",
                                "click_count",
                                "keypress_count",
                                "activity_score",
                                "visited_page",
                                "snapshot_source"
                            ],
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantDateTimePropertyFilterOperator"
                        },
                        "type": {
                            "const": "recording",
                            "type": "string"
                        },
                        "value": {
                            "description": "Value must be a date in ISO 8601 format.",
                            "type": "string"
                        }
                    },
                    "required": ["key", "operator", "type", "value"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "key": {
                            "description": "Recording metric to filter on.\n- `duration` — total recording duration in seconds.\n- `active_seconds` — seconds with user activity.\n- `inactive_seconds` — seconds without user activity.\n- `console_error_count` — number of console errors.\n- `console_log_count` — number of console log entries.\n- `console_warn_count` — number of console warnings.\n- `click_count` — number of clicks.\n- `keypress_count` — number of key presses.\n- `activity_score` — computed activity score (0-100).\n- `visited_page` — URL visited during the session.\n- `snapshot_source` — the recording source (e.g. \"web\", \"mobile\").",
                            "enum": [
                                "duration",
                                "active_seconds",
                                "inactive_seconds",
                                "console_error_count",
                                "console_log_count",
                                "console_warn_count",
                                "click_count",
                                "keypress_count",
                                "activity_score",
                                "visited_page",
                                "snapshot_source"
                            ],
                            "type": "string"
                        },
                        "operator": {
                            "$ref": "#/definitions/AssistantSetPropertyFilterOperator",
                            "description": "`is_set` - the property has any value. `is_not_set` - the property doesn't have a value or wasn't collected."
                        },
                        "type": {
                            "const": "recording",
                            "type": "string"
                        }
                    },
                    "required": ["key", "operator", "type"],
                    "type": "object"
                }
            ]
        },
        "AssistantRecordingsQuery": {
            "additionalProperties": false,
            "description": "Simplified RecordingsQuery for MCP tool usage. Exposes the most useful filtering and pagination fields with LLM-friendly descriptions while hiding internal complexity (having_predicates, operand, actions, etc.).",
            "properties": {
                "after": {
                    "description": "Cursor for pagination from a previous response's next_cursor field.",
                    "type": "string"
                },
                "date_from": {
                    "description": "Start of the date range. Supports relative dates like \"-7d\", \"-24h\" or ISO 8601 format. Default: \"-3d\".",
                    "type": ["string", "null"]
                },
                "date_to": {
                    "description": "End of the date range. Supports relative dates or ISO 8601 format. Default: now.",
                    "type": ["string", "null"]
                },
                "filter_test_accounts": {
                    "description": "Exclude internal and test users. Default: false.",
                    "type": "boolean"
                },
                "kind": {
                    "const": "RecordingsQuery",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer",
                    "description": "Maximum number of recordings to return."
                },
                "order": {
                    "$ref": "#/definitions/RecordingOrder",
                    "description": "Sort field. Options: \"start_time\", \"duration\", \"activity_score\", \"console_error_count\", \"click_count\". Default: \"start_time\"."
                },
                "order_direction": {
                    "$ref": "#/definitions/RecordingOrderDirection",
                    "description": "Sort direction: \"ASC\" or \"DESC\". Default: \"DESC\"."
                },
                "person_uuid": {
                    "description": "Filter recordings to a specific person by their UUID.",
                    "type": "string"
                },
                "properties": {
                    "description": "Property filters to narrow results. Each filter has a `key`, `value`, `operator`, and `type`.\n\nSupported types:\n- `person`: Filter by person properties (e.g. email, country).\n- `session`: Filter by session properties (e.g. $session_duration, $channel_type, $entry_current_url).\n- `event`: Filter by properties of events in the session (e.g. $current_url, $browser).\n- `recording`: Filter by recording metrics (e.g. console_error_count, click_count, activity_score).\n- `cohort`: Filter recordings to persons belonging to a cohort. Example: `{ type: \"cohort\", key: \"id\", value: 42, operator: \"in\" }`.",
                    "items": {
                        "$ref": "#/definitions/AssistantRecordingsQueryPropertyFilter"
                    },
                    "type": "array"
                },
                "session_ids": {
                    "description": "Filter to specific session recording IDs. Use this when you have known session IDs (e.g., from $session_id on events) to fetch multiple recordings in a single call.",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                }
            },
            "required": ["kind"],
            "type": "object"
        },
        "AssistantRecordingsQueryPropertyFilter": {
            "anyOf": [
                {
                    "$ref": "#/definitions/AssistantPropertyFilter"
                },
                {
                    "$ref": "#/definitions/AssistantRecordingPropertyFilter"
                }
            ],
            "description": "Extended property filter union for recordings queries that also supports recording-specific metric filters (e.g. duration, click_count, activity_score)."
        },
        "AssistantRetentionActionsNode": {
            "additionalProperties": false,
            "properties": {
                "id": {
                    "description": "The numeric action ID from the plan. This is the field the retention query engine uses to look up the action definition. For events use `AssistantRetentionEventsNode` instead, where `id` is the event name string.",
                    "type": "number"
                },
                "name": {
                    "description": "Optional human-readable label for the action, used for display only. Defaults to the action's stored name if omitted and is never used for action matching.",
                    "type": "string"
                },
                "properties": {
                    "description": "Property filters for the action.",
                    "items": {
                        "$ref": "#/definitions/AssistantPropertyFilter"
                    },
                    "type": "array"
                },
                "type": {
                    "const": "actions",
                    "type": "string"
                }
            },
            "required": ["type", "id"],
            "type": "object"
        },
        "AssistantRetentionActorsQuery": {
            "additionalProperties": false,
            "description": "Drills into a retention insight to list the persons in one acquisition cohort and show, for each, which subsequent intervals they came back in. Returned rows are `distinct_id`, `email`, `name`, followed by one column per retention interval (`<period>_0` … `<period>_N`, e.g. `day_0`, `day_1`, … for a daily insight). Each interval column is `1` when the actor was active in that interval and `0` otherwise; `<period>_0` is the acquisition interval and is always `1`. Rows are ordered by how many intervals each actor returned in (most-retained first).\n\nThe number and name of the interval columns are derived from the source — `retentionFilter.period` sets the prefix and `retentionFilter.totalIntervals` (or `retentionCustomBrackets.length + 1` when custom brackets are set) sets the count.\n\nRetention drilldown has no per-cell `day` / `series` / `compare` selectors and no matched-recordings column — its persons output is appearance-based.",
            "properties": {
                "interval": {
                    "$ref": "#/definitions/integer",
                    "description": "Which acquisition cohort to drill into, 0-based. `0` is the acquisition interval itself (every actor who entered the cohort); `1` is the cohort that entered one interval later, and so on. Defaults to `0` when omitted."
                },
                "kind": {
                    "const": "InsightActorsQuery",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer",
                    "default": 100,
                    "description": "Maximum number of persons to return in one page, from 1 to 1000. Higher values are clamped."
                },
                "offset": {
                    "$ref": "#/definitions/integer",
                    "default": 0,
                    "description": "Number of persons to skip before the returned page. Use it with `limit` to walk the whole cohort: the response reports `limit`, `offset`, and `hasMore`, so when `hasMore` is true, call again with `offset` raised by `limit`."
                },
                "source": {
                    "$ref": "#/definitions/AssistantRetentionQuery",
                    "description": "The source retention insight query whose cohort we are drilling into."
                }
            },
            "required": ["kind", "source"],
            "type": "object"
        },
        "AssistantRetentionDisplayType": {
            "enum": ["ActionsLineGraph", "ActionsBar"],
            "type": "string"
        },
        "AssistantRetentionEntity": {
            "anyOf": [
                {
                    "$ref": "#/definitions/AssistantRetentionEventsNode"
                },
                {
                    "$ref": "#/definitions/AssistantRetentionActionsNode"
                }
            ]
        },
        "AssistantRetentionEventsNode": {
            "additionalProperties": false,
            "properties": {
                "custom_name": {
                    "description": "Custom name for the event if it is needed to be renamed.",
                    "type": "string"
                },
                "id": {
                    "description": "The event name from the plan as a string. This is the field the retention query engine uses to match events, so it must be populated exactly as the event appears in the plan. For actions use `AssistantRetentionActionsNode` instead, where `id` is the numeric action ID.",
                    "type": "string"
                },
                "name": {
                    "description": "Optional human-readable label for the event, used for display only. Defaults to `id` if omitted and is never used for event matching.",
                    "type": "string"
                },
                "properties": {
                    "description": "Property filters for the event.",
                    "items": {
                        "$ref": "#/definitions/AssistantPropertyFilter"
                    },
                    "type": "array"
                },
                "type": {
                    "const": "events",
                    "type": "string"
                }
            },
            "required": ["type", "id"],
            "type": "object"
        },
        "AssistantRetentionFilter": {
            "additionalProperties": false,
            "properties": {
                "aggregationProperty": {
                    "description": "The event or person property to aggregate when aggregationType is sum or avg.",
                    "type": "string"
                },
                "aggregationPropertyType": {
                    "default": "event",
                    "description": "The type of property to aggregate on (event or person). Defaults to event.",
                    "enum": ["event", "person", "data_warehouse"],
                    "type": "string"
                },
                "aggregationType": {
                    "default": "count",
                    "description": "The aggregation type to use for retention.",
                    "enum": ["count", "sum", "avg"],
                    "type": "string"
                },
                "cumulative": {
                    "description": "Whether retention should be rolling (aka unbounded, cumulative). Rolling retention means that a user coming back in period 5 makes them count towards all the previous periods.",
                    "type": "boolean"
                },
                "display": {
                    "$ref": "#/definitions/AssistantRetentionDisplayType",
                    "description": "`ActionsLineGraph` (default) draws lines. `ActionsBar` draws bars."
                },
                "meanRetentionCalculation": {
                    "description": "Whether an additional series should be shown, showing the mean conversion for each period across cohorts.",
                    "enum": ["simple", "weighted", "none"],
                    "type": "string"
                },
                "minimumOccurrences": {
                    "$ref": "#/definitions/integer",
                    "description": "Minimum number of times an event must occur to count towards retention."
                },
                "period": {
                    "$ref": "#/definitions/RetentionPeriod",
                    "default": "Day",
                    "description": "Retention period, the interval to track cohorts by."
                },
                "retentionCustomBrackets": {
                    "description": "Custom brackets for retention calculations.",
                    "items": {
                        "type": "number"
                    },
                    "maxItems": 31,
                    "type": "array"
                },
                "retentionReference": {
                    "description": "Whether retention is with regard to initial cohort size, or that of the previous period.",
                    "enum": ["total", "previous"],
                    "type": "string"
                },
                "retentionType": {
                    "$ref": "#/definitions/RetentionType",
                    "description": "Retention type: recurring or first time. Recurring retention counts a user as part of a cohort if they performed the cohort event during that time period, irrespective of it was their first time or not. First time retention only counts a user as part of the cohort if it was their first time performing the cohort event."
                },
                "returningEntity": {
                    "$ref": "#/definitions/AssistantRetentionEntity",
                    "description": "Retention event (event marking the user coming back)."
                },
                "targetEntity": {
                    "$ref": "#/definitions/AssistantRetentionEntity",
                    "description": "Activation event (event putting the actor into the initial cohort)."
                },
                "timeWindowMode": {
                    "description": "The time window mode to use for retention calculations.",
                    "enum": ["strict_calendar_dates", "24_hour_windows"],
                    "type": "string"
                },
                "totalIntervals": {
                    "$ref": "#/definitions/integer",
                    "default": 8,
                    "description": "How many intervals to show in the chart. The default value is 8 (meaning 7 periods after initial cohort)."
                }
            },
            "required": ["returningEntity", "targetEntity"],
            "type": "object"
        },
        "AssistantRetentionQuery": {
            "additionalProperties": false,
            "properties": {
                "aggregation_group_type_index": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/integer"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Groups aggregation"
                },
                "dateRange": {
                    "$ref": "#/definitions/AssistantDateRangeFilter",
                    "description": "Date range for the query"
                },
                "filterTestAccounts": {
                    "default": false,
                    "description": "Exclude internal and test users by applying the respective filters",
                    "type": "boolean"
                },
                "kind": {
                    "const": "RetentionQuery",
                    "type": "string"
                },
                "properties": {
                    "default": [],
                    "description": "Property filters for all series",
                    "items": {
                        "$ref": "#/definitions/AssistantInsightPropertyFilter"
                    },
                    "type": "array"
                },
                "retentionFilter": {
                    "$ref": "#/definitions/AssistantRetentionFilter",
                    "description": "Properties specific to the retention insight"
                },
                "samplingFactor": {
                    "description": "Sampling rate from 0 to 1 where 1 is 100% of the data.",
                    "type": ["number", "null"]
                }
            },
            "required": ["kind", "retentionFilter"],
            "type": "object"
        },
        "AssistantSetPropertyFilter": {
            "additionalProperties": false,
            "properties": {
                "operator": {
                    "$ref": "#/definitions/AssistantSetPropertyFilterOperator",
                    "description": "`is_set` - the property has any value. `is_not_set` - the property doesn't have a value or wasn't collected."
                }
            },
            "required": ["operator"],
            "type": "object"
        },
        "AssistantSetPropertyFilterOperator": {
            "enum": ["is_set", "is_not_set"],
            "type": "string"
        },
        "AssistantStickinessActionsNode": {
            "additionalProperties": false,
            "description": "Defines the action series for the stickiness insight. You must provide the action ID in the `id` field and the name in the `name` field. When math is omitted, the default aggregation is by unique persons (person_id).",
            "properties": {
                "custom_name": {
                    "type": "string"
                },
                "id": {
                    "$ref": "#/definitions/integer"
                },
                "kind": {
                    "const": "ActionsNode",
                    "type": "string"
                },
                "math": {
                    "$ref": "#/definitions/MathType"
                },
                "math_group_type_index": {
                    "enum": [0, 1, 2, 3, 4],
                    "type": "number"
                },
                "math_hogql": {
                    "description": "Custom HogQL expression for aggregation. Use when the predefined `math` types are not sufficient. When set, `math` must be set to `hogql`.\n\nExamples:\n- Sum a numeric property: `sum(toFloat(properties.$revenue))`\n- Average of a property: `avg(toFloat(properties.load_time))`\n- Count distinct values: `count(distinct properties.$session_id)`\n- Conditional count: `countIf(toFloat(properties.duration) > 30)`\n- Percentile: `quantile(0.95)(toFloat(properties.response_time))`",
                    "type": "string"
                },
                "math_multiplier": {
                    "type": "number"
                },
                "math_property": {
                    "type": "string"
                },
                "math_property_type": {
                    "type": "string"
                },
                "name": {
                    "description": "Action name from the plan.",
                    "type": "string"
                },
                "properties": {
                    "items": {
                        "$ref": "#/definitions/AssistantPropertyFilter"
                    },
                    "type": "array"
                }
            },
            "required": ["id", "kind", "name"],
            "type": "object"
        },
        "AssistantStickinessActorsQuery": {
            "additionalProperties": false,
            "description": "Drills into a stickiness insight to list the persons behind one bar — the users who were active in exactly `day` intervals within the source's date range (e.g. active on exactly 13 days). Returned rows are `distinct_id`, `email`, and `name`.\n\nPair this with `query-stickiness`: run the stickiness query first to read the distribution (the X-axis is the number of active intervals, the Y-axis is the number of users), then call this tool with the **same** stickiness query as `source` and `day` set to the bar you want to drill into.\n\nStickiness drilldown is membership-based and does not surface a matched-recordings column, so `includeRecordings` is intentionally omitted (as with lifecycle and retention).",
            "properties": {
                "compare": {
                    "description": "Whether to pull from the previous period when `compareFilter` is enabled in the source.",
                    "enum": ["current", "previous"],
                    "type": "string"
                },
                "day": {
                    "$ref": "#/definitions/integer",
                    "description": "The number of active intervals to drill into — the X-axis value of the stickiness bar. Despite the name, this is an interval **count**, not a date: for a daily insight, `day: 13` lists the users who were active on exactly 13 days within the source's date range."
                },
                "kind": {
                    "const": "InsightActorsQuery",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer",
                    "default": 100,
                    "description": "Maximum number of persons to return in one page, from 1 to 1000. Higher values are clamped."
                },
                "offset": {
                    "$ref": "#/definitions/integer",
                    "default": 0,
                    "description": "Number of persons to skip before the returned page. Use it with `limit` to walk the whole result set: the response reports `limit`, `offset`, and `hasMore`, so when `hasMore` is true, call again with `offset` raised by `limit`."
                },
                "series": {
                    "$ref": "#/definitions/integer",
                    "description": "0-based index of the series to drill into when the source has multiple series. Defaults to 0."
                },
                "source": {
                    "$ref": "#/definitions/AssistantStickinessQuery",
                    "description": "The source stickiness insight query whose bar we are drilling into."
                }
            },
            "required": ["kind", "source", "day"],
            "type": "object"
        },
        "AssistantStickinessDisplayType": {
            "description": "Stickiness display types. Only time-series visualizations are supported:\n- `ActionsLineGraph` - line chart (default)\n- `ActionsBar` - bar chart\n- `ActionsAreaGraph` - area chart",
            "enum": ["ActionsLineGraph", "ActionsBar", "ActionsAreaGraph"],
            "type": "string"
        },
        "AssistantStickinessEventsNode": {
            "additionalProperties": false,
            "description": "Defines the event series for the stickiness insight. Each series measures how many intervals (e.g. days) within the date range a user performed the event. The X-axis shows the number of intervals (1, 2, 3, ...) and the Y-axis shows the count of users. When math is omitted, the default aggregation is by unique persons (person_id).",
            "properties": {
                "custom_name": {
                    "type": "string"
                },
                "event": {
                    "description": "The event or `null` for all events.",
                    "type": ["string", "null"]
                },
                "kind": {
                    "const": "EventsNode",
                    "type": "string"
                },
                "math": {
                    "$ref": "#/definitions/MathType"
                },
                "math_group_type_index": {
                    "enum": [0, 1, 2, 3, 4],
                    "type": "number"
                },
                "math_hogql": {
                    "description": "Custom HogQL expression for aggregation. Use when the predefined `math` types are not sufficient. When set, `math` must be set to `hogql`.\n\nExamples:\n- Sum a numeric property: `sum(toFloat(properties.$revenue))`\n- Average of a property: `avg(toFloat(properties.load_time))`\n- Count distinct values: `count(distinct properties.$session_id)`\n- Conditional count: `countIf(toFloat(properties.duration) > 30)`\n- Percentile: `quantile(0.95)(toFloat(properties.response_time))`",
                    "type": "string"
                },
                "math_multiplier": {
                    "type": "number"
                },
                "math_property": {
                    "type": "string"
                },
                "math_property_type": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "properties": {
                    "items": {
                        "$ref": "#/definitions/AssistantPropertyFilter"
                    },
                    "type": "array"
                }
            },
            "required": ["kind"],
            "type": "object"
        },
        "AssistantStickinessFilter": {
            "additionalProperties": false,
            "properties": {
                "computedAs": {
                    "$ref": "#/definitions/StickinessComputationMode",
                    "default": "non_cumulative",
                    "description": "Computation mode. `non_cumulative` (default) shows users active on exactly N intervals. `cumulative` shows users active on N or more intervals."
                },
                "display": {
                    "$ref": "#/definitions/AssistantStickinessDisplayType",
                    "default": "ActionsLineGraph",
                    "description": "Visualization type for the stickiness chart. `ActionsLineGraph` - line chart (default). `ActionsBar` - bar chart. `ActionsAreaGraph` - area chart."
                },
                "showLegend": {
                    "default": false,
                    "description": "Whether to show the legend describing series.",
                    "type": "boolean"
                },
                "showValuesOnSeries": {
                    "default": false,
                    "description": "Whether to show a value on each data point.",
                    "type": "boolean"
                },
                "stickinessCriteria": {
                    "$ref": "#/definitions/StickinessCriteria",
                    "description": "Filter which intervals count based on event frequency within each interval. For example, only count intervals where the user performed the event >= 3 times."
                }
            },
            "type": "object"
        },
        "AssistantStickinessNode": {
            "anyOf": [
                {
                    "$ref": "#/definitions/AssistantStickinessEventsNode"
                },
                {
                    "$ref": "#/definitions/AssistantStickinessActionsNode"
                }
            ]
        },
        "AssistantStickinessQuery": {
            "additionalProperties": false,
            "properties": {
                "compareFilter": {
                    "$ref": "#/definitions/CompareFilter",
                    "description": "Compare to date range. When enabled, shows the current and previous period side by side."
                },
                "dateRange": {
                    "$ref": "#/definitions/AssistantDateRangeFilter",
                    "description": "Date range for the query"
                },
                "filterTestAccounts": {
                    "default": false,
                    "description": "Exclude internal and test users by applying the respective filters",
                    "type": "boolean"
                },
                "interval": {
                    "$ref": "#/definitions/IntervalType",
                    "default": "day",
                    "description": "Granularity of the response. Can be one of `hour`, `day`, `week` or `month`. This determines what counts as one \"interval\" for stickiness measurement. For example, with `day` interval over a 30-day range, the X-axis shows 1 through 30 days, and each bar/point shows how many users performed the event on exactly that many days."
                },
                "intervalCount": {
                    "$ref": "#/definitions/positive_integer",
                    "description": "How many base intervals comprise one stickiness period. Defaults to 1. For example, `interval: \"day\"` with `intervalCount: 7` groups by 7-day periods."
                },
                "kind": {
                    "const": "StickinessQuery",
                    "type": "string"
                },
                "properties": {
                    "default": [],
                    "description": "Property filters for all series",
                    "items": {
                        "$ref": "#/definitions/AssistantInsightPropertyFilter"
                    },
                    "type": "array"
                },
                "samplingFactor": {
                    "description": "Sampling rate from 0 to 1 where 1 is 100% of the data.",
                    "type": ["number", "null"]
                },
                "series": {
                    "description": "Events or actions to include. Each series measures how many intervals (e.g. days) within the date range a user performed the event. Prioritize the more popular and fresh events and actions. When the `math` field is omitted on a series, it defaults to counting unique persons.",
                    "items": {
                        "$ref": "#/definitions/AssistantStickinessNode"
                    },
                    "type": "array"
                },
                "stickinessFilter": {
                    "$ref": "#/definitions/AssistantStickinessFilter",
                    "description": "Properties specific to the stickiness insight"
                }
            },
            "required": ["kind", "series"],
            "type": "object"
        },
        "AssistantStringNumberOrBooleanPropertyFilter": {
            "anyOf": [
                {
                    "$ref": "#/definitions/AssistantStringOrBooleanValuePropertyFilter"
                },
                {
                    "$ref": "#/definitions/AssistantNumericValuePropertyFilter"
                },
                {
                    "$ref": "#/definitions/AssistantArrayPropertyFilter"
                }
            ]
        },
        "AssistantStringOrBooleanValuePropertyFilter": {
            "additionalProperties": false,
            "properties": {
                "operator": {
                    "$ref": "#/definitions/AssistantStringOrBooleanValuePropertyFilterOperator",
                    "description": "`icontains` - case insensitive contains. `not_icontains` - case insensitive does not contain. `regex` - matches the regex pattern. `not_regex` - does not match the regex pattern."
                },
                "value": {
                    "description": "Only use property values from the plan. If the operator is `regex` or `not_regex`, the value must be a valid ClickHouse regex pattern to match against. Otherwise, the value must be a substring that will be matched against the property value. Use the string values `true` or `false` for boolean properties.",
                    "type": "string"
                }
            },
            "required": ["operator", "value"],
            "type": "object"
        },
        "AssistantStringOrBooleanValuePropertyFilterOperator": {
            "enum": ["exact", "is_not", "icontains", "not_icontains", "regex", "not_regex"],
            "type": "string"
        },
        "AssistantTool": {
            "enum": [
                "search_session_recordings",
                "create_ai_trace_parser",
                "fix_hogql_query",
                "create_hog_transformation_function",
                "create_hog_function_filters",
                "create_hog_function_inputs",
                "create_message_template",
                "filter_error_tracking_issues",
                "search_error_tracking_issues",
                "find_error_tracking_impactful_issue_event_list",
                "experiment_results_summary",
                "create_survey",
                "edit_survey",
                "analyze_survey_responses",
                "read_taxonomy",
                "search",
                "read_data",
                "todo_write",
                "filter_web_analytics",
                "create_feature_flag",
                "create_experiment",
                "create_task",
                "run_task",
                "get_task_run",
                "get_task_run_logs",
                "list_tasks",
                "list_task_runs",
                "list_repositories",
                "web_search",
                "execute_sql",
                "switch_mode",
                "summarize_sessions",
                "filter_session_recordings",
                "create_insight",
                "create_form",
                "task",
                "upsert_dashboard",
                "manage_memories",
                "create_notebook",
                "list_data",
                "list_feature_flags",
                "upsert_alert",
                "finalize_plan",
                "call_mcp_server",
                "search_llm_traces",
                "run_hog_eval_test",
                "list_llm_skills",
                "get_llm_skill",
                "get_llm_skill_file",
                "create_llm_skill",
                "update_llm_skill",
                "archive_llm_skill",
                "diagnose_proxy",
                "web_analytics_doctor",
                "assess_heatmap",
                "summarize_website_interactions",
                "marketing_diagnose_setup",
                "marketing_explain_conversion_goal",
                "marketing_list_conversion_goals",
                "marketing_list_data_sources",
                "marketing_audit_utm",
                "marketing_suggest_conversion_goals",
                "marketing_suggest_utm_mappings",
                "compare_replay_vision_variants",
                "draft_replay_vision_scanner_prompt",
                "search_replay_vision_observations",
                "scan_replay_vision_sessions",
                "get_replay_vision_scan_results",
                "retry_replay_vision_observation",
                "get_replay_vision_quota",
                "create_replay_vision_scanner",
                "update_replay_vision_scanner",
                "list_replay_vision_scanners",
                "delete_replay_vision_scanner",
                "estimate_replay_vision_scanner",
                "label_replay_vision_observation",
                "analyze_replay_vision_impact",
                "upsert_account",
                "upsert_account_notebook",
                "open_account"
            ],
            "type": "string"
        },
        "AssistantToolCall": {
            "additionalProperties": false,
            "properties": {
                "args": {
                    "additionalProperties": {},
                    "type": "object"
                },
                "id": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "type": {
                    "const": "tool_call",
                    "default": "tool_call",
                    "description": "`type` needed to conform to the OpenAI shape, which is expected by LangChain",
                    "type": "string"
                }
            },
            "required": ["id", "name", "args", "type"],
            "type": "object"
        },
        "AssistantToolCallMessage": {
            "additionalProperties": false,
            "properties": {
                "content": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "parent_tool_call_id": {
                    "type": "string"
                },
                "tool_call_id": {
                    "type": "string"
                },
                "type": {
                    "const": "tool",
                    "type": "string"
                },
                "ui_payload": {
                    "anyOf": [
                        {
                            "type": "object"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Payload passed through to the frontend - specifically for calls of contextual tool. Tool call messages without a ui_payload are not passed through to the frontend."
                }
            },
            "required": ["type", "content", "tool_call_id"],
            "type": "object"
        },
        "AssistantTraceQuery": {
            "additionalProperties": false,
            "description": "Fetch a single LLM trace by ID. Returns the full trace with all child events and their complete properties — use for deep inspection of a specific trace found via `query-llm-traces-list`.",
            "properties": {
                "dateRange": {
                    "$ref": "#/definitions/AssistantDateRangeFilter",
                    "description": "Date range for the query."
                },
                "kind": {
                    "const": "TraceQuery",
                    "type": "string"
                },
                "properties": {
                    "default": [],
                    "description": "Property filters to narrow events within the trace.",
                    "items": {
                        "$ref": "#/definitions/AssistantPropertyFilter"
                    },
                    "type": "array"
                },
                "traceId": {
                    "description": "The trace ID to fetch (the `id` field from a trace in `query-llm-traces-list` results).",
                    "type": "string"
                }
            },
            "required": ["kind", "traceId"],
            "type": "object"
        },
        "AssistantTracesQuery": {
            "additionalProperties": false,
            "description": "Query LLM traces to inspect AI/LLM usage. Returns a list of traces with latency, token usage, costs, errors, and other metadata. Use for AI observability — debugging slow generations, investigating errors, analyzing token spend, and auditing LLM behavior.\n\nThis is a listing tool, not a visualization/insight tool. It does not support series, breakdowns, or math aggregations. Use property filters and dateRange to narrow results.",
            "properties": {
                "dateRange": {
                    "$ref": "#/definitions/AssistantDateRangeFilter",
                    "description": "Date range for the query."
                },
                "filterSupportTraces": {
                    "default": false,
                    "description": "Exclude support impersonation traces.",
                    "type": "boolean"
                },
                "filterTestAccounts": {
                    "default": true,
                    "description": "Exclude internal and test users by applying the respective filters.",
                    "type": "boolean"
                },
                "groupKey": {
                    "description": "Filter traces by group key. Requires `groupTypeIndex` to be set.",
                    "type": "string"
                },
                "groupTypeIndex": {
                    "$ref": "#/definitions/integer",
                    "description": "Group type index when filtering by group."
                },
                "kind": {
                    "const": "TracesQuery",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer",
                    "default": 100,
                    "description": "Maximum number of traces to return."
                },
                "offset": {
                    "$ref": "#/definitions/integer",
                    "default": 0,
                    "description": "Number of traces to skip for pagination."
                },
                "personId": {
                    "description": "Filter traces by a specific person UUID.",
                    "type": "string"
                },
                "properties": {
                    "default": [],
                    "description": "Property filters to narrow results. Use event properties like `$ai_model`, `$ai_provider`, `$ai_trace_id`, etc. to filter traces.",
                    "items": {
                        "$ref": "#/definitions/AssistantPropertyFilter"
                    },
                    "type": "array"
                },
                "randomOrder": {
                    "default": false,
                    "description": "Use random ordering instead of timestamp DESC. Useful for representative sampling to avoid recency bias.",
                    "type": "boolean"
                }
            },
            "required": ["kind"],
            "type": "object"
        },
        "AssistantTrendsActionsNode": {
            "additionalProperties": false,
            "description": "Defines the action series. You must provide the action ID in the `id` field and the name in the `name` field.",
            "properties": {
                "custom_name": {
                    "type": "string"
                },
                "id": {
                    "$ref": "#/definitions/integer"
                },
                "kind": {
                    "const": "ActionsNode",
                    "type": "string"
                },
                "math": {
                    "$ref": "#/definitions/MathType"
                },
                "math_group_type_index": {
                    "enum": [0, 1, 2, 3, 4],
                    "type": "number"
                },
                "math_hogql": {
                    "description": "Custom HogQL expression for aggregation. Use when the predefined `math` types are not sufficient. When set, `math` must be set to `hogql`.\n\nExamples:\n- Sum a numeric property: `sum(toFloat(properties.$revenue))`\n- Average of a property: `avg(toFloat(properties.load_time))`\n- Count distinct values: `count(distinct properties.$session_id)`\n- Conditional count: `countIf(toFloat(properties.duration) > 30)`\n- Percentile: `quantile(0.95)(toFloat(properties.response_time))`",
                    "type": "string"
                },
                "math_multiplier": {
                    "type": "number"
                },
                "math_property": {
                    "type": "string"
                },
                "math_property_type": {
                    "type": "string"
                },
                "name": {
                    "description": "Action name from the plan.",
                    "type": "string"
                },
                "optionalInFunnel": {
                    "type": "boolean"
                },
                "properties": {
                    "items": {
                        "$ref": "#/definitions/AssistantPropertyFilter"
                    },
                    "type": "array"
                },
                "version": {
                    "description": "version of the node, used for schema migrations",
                    "type": "number"
                }
            },
            "required": ["id", "kind", "name"],
            "type": "object"
        },
        "AssistantTrendsActorsQuery": {
            "additionalProperties": false,
            "description": "Drills into a trends insight to list the persons behind a specific data point. Returned rows are `distinct_id`, `name`, `email`, `event_count`, and optionally matched session recordings.\n\nUse the selector fields (`day`, `series`, `breakdown`, `compare`) to identify the specific cell in the source insight.",
            "properties": {
                "breakdown": {
                    "description": "Breakdown values, one per dimension in the source's `breakdownFilter.breakdowns`, in the same order. Array length must equal the number of breakdown dimensions.",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "compare": {
                    "description": "Whether to pull from the previous period when `compare` is enabled in the source.",
                    "enum": ["current", "previous"],
                    "type": "string"
                },
                "day": {
                    "description": "Bucket date for the data point. Must be an ISO date string (YYYY-MM-DD), e.g. '2024-01-15'.",
                    "type": "string"
                },
                "includeRecordings": {
                    "default": true,
                    "description": "Whether to include matched session recordings for each actor.",
                    "type": "boolean"
                },
                "kind": {
                    "const": "InsightActorsQuery",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer",
                    "default": 100,
                    "description": "Maximum number of persons to return in one page, from 1 to 1000. Higher values are clamped."
                },
                "offset": {
                    "$ref": "#/definitions/integer",
                    "default": 0,
                    "description": "Number of persons to skip before the returned page. Use it with `limit` to walk the whole result set: the response reports `limit`, `offset`, and `hasMore`, so when `hasMore` is true, call again with `offset` raised by `limit`."
                },
                "series": {
                    "$ref": "#/definitions/integer",
                    "description": "Series index (0-based) when the source has multiple series."
                },
                "source": {
                    "$ref": "#/definitions/AssistantTrendsQuery",
                    "description": "The source insight query whose data point we are drilling into."
                }
            },
            "required": ["kind", "source", "day"],
            "type": "object"
        },
        "AssistantTrendsBreakdownFilter": {
            "additionalProperties": false,
            "properties": {
                "breakdown_limit": {
                    "$ref": "#/definitions/integer",
                    "default": 25,
                    "description": "How many distinct values to show."
                },
                "breakdown_path_cleaning": {
                    "description": "When `true`, applies the project's configured path cleaning rules to URL or path breakdown values (e.g. `$pathname`, `$current_url`). Use this whenever the user asks for a breakdown by a URL or path property and there is no specific reason to keep the raw values. The user does not need to provide a regex — path cleaning rules come from the project's settings.",
                    "type": "boolean"
                },
                "breakdowns": {
                    "description": "Use this field to define breakdowns.",
                    "items": {
                        "$ref": "#/definitions/AssistantMultipleBreakdownFilter"
                    },
                    "maxItems": 3,
                    "type": "array"
                }
            },
            "required": ["breakdowns"],
            "type": "object"
        },
        "AssistantTrendsDisplayType": {
            "enum": [
                "ActionsLineGraph",
                "ActionsBar",
                "ActionsUnstackedBar",
                "ActionsAreaGraph",
                "ActionsLineGraphCumulative",
                "SlopeGraph",
                "BoxPlot",
                "Metric",
                "BoldNumber",
                "ActionsBarValue",
                "ActionsPie",
                "ActionsDonut",
                "ActionsProportionBar",
                "ActionsTable",
                "WorldMap",
                "CalendarHeatmap"
            ],
            "type": "string"
        },
        "AssistantTrendsEventsNode": {
            "additionalProperties": false,
            "description": "Defines the event series.",
            "properties": {
                "custom_name": {
                    "type": "string"
                },
                "event": {
                    "description": "The event or `null` for all events.",
                    "type": ["string", "null"]
                },
                "kind": {
                    "const": "EventsNode",
                    "type": "string"
                },
                "math": {
                    "$ref": "#/definitions/MathType"
                },
                "math_group_type_index": {
                    "enum": [0, 1, 2, 3, 4],
                    "type": "number"
                },
                "math_hogql": {
                    "description": "Custom HogQL expression for aggregation. Use when the predefined `math` types are not sufficient. When set, `math` must be set to `hogql`.\n\nExamples:\n- Sum a numeric property: `sum(toFloat(properties.$revenue))`\n- Average of a property: `avg(toFloat(properties.load_time))`\n- Count distinct values: `count(distinct properties.$session_id)`\n- Conditional count: `countIf(toFloat(properties.duration) > 30)`\n- Percentile: `quantile(0.95)(toFloat(properties.response_time))`",
                    "type": "string"
                },
                "math_multiplier": {
                    "type": "number"
                },
                "math_property": {
                    "type": "string"
                },
                "math_property_type": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "optionalInFunnel": {
                    "type": "boolean"
                },
                "properties": {
                    "items": {
                        "$ref": "#/definitions/AssistantPropertyFilter"
                    },
                    "type": "array"
                },
                "version": {
                    "description": "version of the node, used for schema migrations",
                    "type": "number"
                }
            },
            "required": ["kind"],
            "type": "object"
        },
        "AssistantTrendsFilter": {
            "additionalProperties": false,
            "properties": {
                "aggregationAxisFormat": {
                    "$ref": "#/definitions/AggregationAxisFormat",
                    "default": "numeric",
                    "description": "Formats the trends value axis. Do not use the formatting unless you are absolutely sure that formatting will match the data. `numeric` - no formatting. Prefer this option by default. `duration` - formats the value in seconds to a human-readable duration, e.g., `132` becomes `2 minutes 12 seconds`. Use this option only if you are sure that the values are in seconds. `duration_ms` - formats the value in miliseconds to a human-readable duration, e.g., `1050` becomes `1 second 50 milliseconds`. Use this option only if you are sure that the values are in miliseconds. `percentage` - appends a percentage sign to a value that is ALREADY on the 0-100 scale, e.g., `50` becomes `50%`. Only use this when the underlying value is already a percentage. `percentage_scaled` - multiplies a 0-1 value by 100 and appends a percentage sign, e.g., `0.5` becomes `50%`. Use this for ratios in the 0-1 range, such as a bounce rate (`avg($is_bounce)`) or a formula like `A/B`. Because this format already multiplies by 100, do NOT also multiply by 100 in the formula (e.g. `A/B*100`), as that would double-scale the value and render, say, `0.5` as `5000%`. `currency` - formats the value as a currency, e.g., `1000` becomes `$1,000`."
                },
                "aggregationAxisPostfix": {
                    "description": "Custom postfix to add to the aggregation axis, e.g., ` clicks` to format 5 as `5 clicks`. You may need to add a space before postfix. Never set a postfix that `aggregationAxisFormat` already renders: `percentage` and `percentage_scaled` already append the `%` sign, so a `%` postfix would render values as `50%%`.",
                    "type": "string"
                },
                "aggregationAxisPrefix": {
                    "description": "Custom prefix to add to the aggregation axis, e.g., `$` for USD dollars. You may need to add a space after prefix.",
                    "type": "string"
                },
                "decimalPlaces": {
                    "description": "Number of decimal places to show. Do not add this unless you are sure that values will have a decimal point.",
                    "type": "number"
                },
                "display": {
                    "$ref": "#/definitions/AssistantTrendsDisplayType",
                    "default": "ActionsLineGraph",
                    "description": "Visualization type. Available values: `ActionsLineGraph` - time-series line chart; most common option, as it shows change over time. `ActionsBar` - time-series bar chart with one bar per interval and breakdown values stacked in each bar. Do not use it to compare breakdown values or series as totals. Use `ActionsBarValue` for that. `ActionsUnstackedBar` - time-series bar chart with series side by side in each interval. `ActionsAreaGraph` - time-series area chart. `ActionsLineGraphCumulative` - cumulative time-series line chart; good for cumulative metrics. `SlopeGraph` - net change from the first to the last interval, one line per series. `BoxPlot` - quartiles of a numeric `math_property` for each interval. `Metric` - single large number with a change pill and a sparkline. Use for a period summary or an explicit current-versus-previous-period comparison (\"how many X in the last 30 days\", \"what's our conversion rate this month\", \"how does this month compare to last\"). Do not use for a question about change over time, a cadence, or a pattern. Use `ActionsLineGraph` so the person can inspect each interval. Set `compareFilter.compare` to `true` to compare the current period with the previous period. Without it, the pill compares the first interval with the last interval. Configure the display with the `metric*` fields below. Single series, no breakdown. `BoldNumber` - single large number with no change or sparkline. Use instead of `Metric` only when a trend is meaningless, such as an all-time total or a fixed ratio. You CANNOT use this with breakdown or if the insight has more than one series. `ActionsBarValue` - total value (NOT time-series) bar chart with one bar per breakdown value or series; good for categorical data such as \"top pages\" or \"failures by reason\". `ActionsPie` - total value pie chart; good for visualizing proportions. `ActionsDonut` - total value donut chart; same use as `ActionsPie`. `ActionsProportionBar` - total value chart that shows the parts of one whole as a single flat bar, with one segment per breakdown value or series. Use it to show the share of each part in a total. It cannot compare to a previous period, so do not set `compareFilter.compare` with it. `ActionsTable` - total value table; good when using breakdown to list users or other entities. `WorldMap` - total value world map; use when breaking down by country using property `$geoip_country_code`, and only then."
                },
                "formulaNodes": {
                    "description": "Use custom formulas to perform mathematical operations like calculating percentages or metrics. Use the following syntax: `A/B`, where `A` and `B` are the names of the series. You can combine math aggregations and formulas. When using a formula, you must:\n- Identify and specify **all** events and actions needed to solve the formula.\n- Carefully review the list of available events and actions to find appropriate entities for each part of the formula.\n- Ensure that you find events and actions corresponding to both the numerator and denominator in ratio calculations. Examples of using math formulas:\n- If you want to calculate the percentage of users who have completed onboarding, you need to find and use events or actions similar to `$identify` and `onboarding complete`, so the formula will be `A / B`, where `A` is `onboarding complete` (unique users) and `B` is `$identify` (unique users). For a ratio or percentage, keep the formula as the raw ratio (e.g. `A/B`, which is in the 0-1 range) and set `aggregationAxisFormat` to `percentage_scaled` so it renders as a percentage. Do NOT multiply the formula by 100 (e.g. `A/B*100`) when using `percentage_scaled`, or the value will be scaled twice.",
                    "items": {
                        "$ref": "#/definitions/TrendsFormulaNode"
                    },
                    "type": "array"
                },
                "metricChangeDecreaseColor": {
                    "description": "Only applies when `display` is `Metric`. Hex color (e.g. `#db3707`) for the change pill when the metric went DOWN. Defaults to red (`#db3707`). For a \"lower is better\" metric (latency, error rate, cost), set this to a green (e.g. `#388600`) so a decrease reads as good.",
                    "type": "string"
                },
                "metricChangeIncreaseColor": {
                    "description": "Only applies when `display` is `Metric`. Hex color (e.g. `#388600`) for the change pill when the metric went UP. Defaults to green (`#388600`). For a \"lower is better\" metric (latency, error rate, cost), set this to a red (e.g. `#db3707`) so an increase reads as bad.",
                    "type": "string"
                },
                "metricColorByDirection": {
                    "default": false,
                    "description": "Only applies when `display` is `Metric`. Color the sparkline under the big number by whether the metric increased or decreased over the period (using the increase/decrease line colors).",
                    "type": "boolean"
                },
                "metricLineDecreaseColor": {
                    "description": "Only applies when `display` is `Metric` and `metricColorByDirection` is `true`. Hex color for the sparkline when the metric went DOWN. Defaults to red (`#db3707`). Flip to a green for a \"lower is better\" metric.",
                    "type": "string"
                },
                "metricLineIncreaseColor": {
                    "description": "Only applies when `display` is `Metric` and `metricColorByDirection` is `true`. Hex color for the sparkline when the metric went UP. Defaults to green (`#388600`). Flip to a red for a \"lower is better\" metric.",
                    "type": "string"
                },
                "metricShowChange": {
                    "default": true,
                    "description": "Only applies when `display` is `Metric`. Show the change pill next to the big number. What it compares follows `metricSummary`: `total`/`average` compare against the previous period when \"compare to previous\" is on (otherwise first→last of the series), and `latest` is always first→last of the series.",
                    "type": "boolean"
                },
                "metricSummary": {
                    "default": "total",
                    "description": "Only applies when `display` is `Metric`. Which summary the resting big number shows: `total` (sum over the period), `average` (mean of the points), or `latest` (last point). Hovering the sparkline always shows the hovered point's value regardless of this setting. Also drives the change pill: `total`/`average` compare against the previous period when \"compare to previous\" is on; `latest` compares first→last of the series.",
                    "enum": ["total", "average", "latest"],
                    "type": "string"
                },
                "showAlertThresholdLines": {
                    "default": false,
                    "description": "Whether to show alert threshold lines on the chart.",
                    "type": "boolean"
                },
                "showLabelsOnSeries": {
                    "default": false,
                    "description": "Whether to show labels on each series.",
                    "type": "boolean"
                },
                "showLegend": {
                    "default": false,
                    "description": "Whether to show the legend describing series and breakdowns.",
                    "type": "boolean"
                },
                "showMultipleYAxes": {
                    "default": false,
                    "description": "Whether to show multiple y-axes for different series.",
                    "type": "boolean"
                },
                "showPercentStackView": {
                    "default": false,
                    "description": "Whether to show a percentage of each series. Use only with",
                    "type": "boolean"
                },
                "showValuesOnSeries": {
                    "default": false,
                    "description": "Whether to show a value on each data point.",
                    "type": "boolean"
                },
                "smoothingIntervals": {
                    "$ref": "#/definitions/integer",
                    "default": 1,
                    "description": "Smoothing intervals for the trend line."
                },
                "xAxisLabel": {
                    "description": "Custom label rendered under the X axis.",
                    "type": "string"
                },
                "yAxisLabel": {
                    "description": "Custom label rendered alongside the Y axis.",
                    "type": "string"
                },
                "yAxisScaleType": {
                    "default": "linear",
                    "description": "Whether to scale the y-axis.",
                    "enum": ["log10", "linear"],
                    "type": "string"
                }
            },
            "type": "object"
        },
        "AssistantTrendsGroupNode": {
            "additionalProperties": false,
            "description": "Defines a series that combines multiple events or actions with OR (e.g. \"Pageview OR Pageleave\" as one line). Aggregation (`math*`) is read from the group, not the inner nodes — set it here. Inner-node `event` / `id` / `properties` / `name` are respected normally; per-node `properties` apply only to that node, so each event can carry its own filter.",
            "properties": {
                "custom_name": {
                    "type": "string"
                },
                "kind": {
                    "const": "GroupNode",
                    "type": "string"
                },
                "math": {
                    "$ref": "#/definitions/MathType",
                    "description": "Math aggregation for the combined series. The engine reads aggregation from here, not from inner nodes."
                },
                "math_group_type_index": {
                    "enum": [0, 1, 2, 3, 4],
                    "type": "number"
                },
                "math_hogql": {
                    "description": "Custom HogQL aggregation. When set, `math` must be `hogql`.",
                    "type": "string"
                },
                "math_multiplier": {
                    "type": "number"
                },
                "math_property": {
                    "type": "string"
                },
                "math_property_type": {
                    "type": "string"
                },
                "name": {
                    "description": "Display name for the combined series.",
                    "type": "string"
                },
                "nodes": {
                    "description": "Events and actions combined into the series. Mirror the group's `math*` on each node for UI round-trip; they're ignored at execution time.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/AssistantTrendsEventsNode"
                            },
                            {
                                "$ref": "#/definitions/AssistantTrendsActionsNode"
                            }
                        ]
                    },
                    "minItems": 2,
                    "type": "array"
                },
                "operator": {
                    "const": "OR",
                    "description": "Only `OR` is supported.",
                    "type": "string"
                }
            },
            "required": ["kind", "operator", "nodes"],
            "type": "object"
        },
        "AssistantTrendsQuery": {
            "additionalProperties": false,
            "properties": {
                "aggregation_group_type_index": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/integer"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Groups aggregation"
                },
                "breakdownFilter": {
                    "$ref": "#/definitions/AssistantTrendsBreakdownFilter",
                    "description": "Breakdowns are used to segment data by property values of maximum three properties. They divide all defined trends series to multiple subseries based on the values of the property. Include breakdowns **only when they are essential to directly answer the user’s question**. You must not add breakdowns if the question can be addressed without additional segmentation. Always use the minimum set of breakdowns needed to answer the question. When using breakdowns, you must:\n- **Identify the property group** and name for each breakdown.\n- **Provide the property name** for each breakdown.\n- **Validate that the property value accurately reflects the intended criteria**. Examples of using breakdowns:\n- page views trend by country: you need to find a property such as `$geoip_country_code` and set it as a breakdown.\n- number of users who have completed onboarding by an organization: you need to find a property such as `organization name` and set it as a breakdown."
                },
                "compareFilter": {
                    "$ref": "#/definitions/CompareFilter",
                    "description": "Compare to date range"
                },
                "dateRange": {
                    "$ref": "#/definitions/AssistantDateRangeFilter",
                    "description": "Date range for the query"
                },
                "filterTestAccounts": {
                    "default": false,
                    "description": "Exclude internal and test users by applying the respective filters",
                    "type": "boolean"
                },
                "interval": {
                    "$ref": "#/definitions/IntervalType",
                    "default": "day",
                    "description": "Granularity of the response. Can be one of `hour`, `day`, `week` or `month`"
                },
                "kind": {
                    "const": "TrendsQuery",
                    "type": "string"
                },
                "properties": {
                    "default": [],
                    "description": "Property filters for all series",
                    "items": {
                        "$ref": "#/definitions/AssistantInsightPropertyFilter"
                    },
                    "type": "array"
                },
                "samplingFactor": {
                    "description": "Sampling rate from 0 to 1 where 1 is 100% of the data.",
                    "type": ["number", "null"]
                },
                "series": {
                    "description": "Events, actions, or groups of events/actions to include. Prioritize the more popular and fresh events and actions.\n\nUse a top-level `EventsNode` or `ActionsNode` entry for each independent series (one line per entry on the chart). Use an `AssistantTrendsGroupNode` to combine multiple events or actions into a single series joined by `OR` — for example, treating \"Pageview OR Pageleave\" as one line. Only `OR` grouping is supported; pick groups only when the user wants the events counted together, otherwise prefer separate series.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/AssistantTrendsEventsNode"
                            },
                            {
                                "$ref": "#/definitions/AssistantTrendsActionsNode"
                            },
                            {
                                "$ref": "#/definitions/AssistantTrendsGroupNode"
                            }
                        ]
                    },
                    "type": "array"
                },
                "trendsFilter": {
                    "$ref": "#/definitions/AssistantTrendsFilter",
                    "description": "Properties specific to the trends insight"
                }
            },
            "required": ["kind", "series"],
            "type": "object"
        },
        "AssistantUpdateEvent": {
            "additionalProperties": false,
            "properties": {
                "content": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "tool_call_id": {
                    "type": "string"
                }
            },
            "required": ["id", "tool_call_id", "content"],
            "type": "object"
        },
        "AssistantVizSpecificOptions": {
            "additionalProperties": false,
            "properties": {
                "ActionsPie": {
                    "$ref": "#/definitions/AssistantPieChartOptions"
                }
            },
            "type": "object"
        },
        "AssistantWebAnalyticsQueryBase": {
            "additionalProperties": false,
            "description": "Shared filter set across all web-analytics assistant queries.\n\nMirrors `WebAnalyticsQueryBase` but drops noisy fields agents shouldn't set (`samplingFactor`, `aggregation_group_type_index`, `dataColorTheme`, deprecated/legacy options).",
            "properties": {
                "compareFilter": {
                    "$ref": "#/definitions/CompareFilter",
                    "description": "Compare the current period to a prior period. Disabled by default. Enabling roughly doubles query cost — leave it off unless the user explicitly asks for a period-over-period comparison."
                },
                "conversionGoal": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/WebAnalyticsConversionGoal"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Conversion goal — pass an `actionId` (must belong to the current project) or a `customEventName`. Adds conversion columns to the response. Disables the pre-aggregated fast path — only set when the user explicitly asks about a conversion."
                },
                "dateRange": {
                    "$ref": "#/definitions/AssistantDateRangeFilter",
                    "description": "Date range for the query. Defaults to the last 7 days when omitted. Keep ranges short — the backend has no upper bound and large windows on the slow path (e.g. with `conversionGoal` or `includeAvgTimeOnPage`) can be expensive."
                },
                "doPathCleaning": {
                    "default": false,
                    "description": "Apply the team's path-cleaning rules to URL-style breakdowns.",
                    "type": "boolean"
                },
                "filterTestAccounts": {
                    "default": false,
                    "description": "Exclude internal and test users by applying the team's test-account filter.",
                    "type": "boolean"
                },
                "properties": {
                    "$ref": "#/definitions/WebAnalyticsPropertyFilters",
                    "default": [],
                    "description": "Property filters applied to the query. Accepts event, person, session, or cohort filters."
                }
            },
            "type": "object"
        },
        "AssistantWebOverviewQuery": {
            "additionalProperties": false,
            "description": "High-level web-analytics KPIs over a period: visitors, pageviews, sessions, average session duration, and bounce rate. Returns a small list of metric tuples with optional period-over-period comparison.\n\nUse this when the user asks \"how is the site doing?\", \"what are the topline web numbers?\", or wants a snapshot of overall traffic health.",
            "properties": {
                "compareFilter": {
                    "$ref": "#/definitions/CompareFilter",
                    "description": "Compare the current period to a prior period. Disabled by default. Enabling roughly doubles query cost — leave it off unless the user explicitly asks for a period-over-period comparison."
                },
                "conversionGoal": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/WebAnalyticsConversionGoal"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Conversion goal — pass an `actionId` (must belong to the current project) or a `customEventName`. Adds conversion columns to the response. Disables the pre-aggregated fast path — only set when the user explicitly asks about a conversion."
                },
                "dateRange": {
                    "$ref": "#/definitions/AssistantDateRangeFilter",
                    "description": "Date range for the query. Defaults to the last 7 days when omitted. Keep ranges short — the backend has no upper bound and large windows on the slow path (e.g. with `conversionGoal` or `includeAvgTimeOnPage`) can be expensive."
                },
                "doPathCleaning": {
                    "default": false,
                    "description": "Apply the team's path-cleaning rules to URL-style breakdowns.",
                    "type": "boolean"
                },
                "filterTestAccounts": {
                    "default": false,
                    "description": "Exclude internal and test users by applying the team's test-account filter.",
                    "type": "boolean"
                },
                "kind": {
                    "const": "WebOverviewQuery",
                    "type": "string"
                },
                "properties": {
                    "$ref": "#/definitions/WebAnalyticsPropertyFilters",
                    "default": [],
                    "description": "Property filters applied to the query. Accepts event, person, session, or cohort filters."
                }
            },
            "required": ["kind"],
            "type": "object"
        },
        "AssistantWebStatsTableQuery": {
            "additionalProperties": false,
            "description": "Tabular web-analytics breakdown — top pages, UTMs, devices, browsers, countries, etc. — with visitors, pageviews, and optional bounce rate / average time on page columns.\n\nThis is the right query for \"top pages with bounce rate\" (set `breakdownBy=Page` and `includeBounceRate=true`) and for entry/exit-page navigation analysis (`breakdownBy=InitialPage|ExitPage|PreviousPage`).",
            "properties": {
                "breakdownBy": {
                    "$ref": "#/definitions/WebStatsBreakdown",
                    "description": "Required. Property to break down the table by. The full enum covers path-style (`Page`, `InitialPage`, `ExitPage`, `PreviousPage`), marketing/source (UTM source/medium/campaign/term/content, channel, referring domain), audience/device (browser, OS, device type, viewport), and geography (country, region, city, timezone, language). Path-style breakdowns pair naturally with `includeBounceRate` / `includeAvgTimeOnPage`."
                },
                "compareFilter": {
                    "$ref": "#/definitions/CompareFilter",
                    "description": "Compare the current period to a prior period. Disabled by default. Enabling roughly doubles query cost — leave it off unless the user explicitly asks for a period-over-period comparison."
                },
                "conversionGoal": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/WebAnalyticsConversionGoal"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Conversion goal — pass an `actionId` (must belong to the current project) or a `customEventName`. Adds conversion columns to the response. Disables the pre-aggregated fast path — only set when the user explicitly asks about a conversion."
                },
                "dateRange": {
                    "$ref": "#/definitions/AssistantDateRangeFilter",
                    "description": "Date range for the query. Defaults to the last 7 days when omitted. Keep ranges short — the backend has no upper bound and large windows on the slow path (e.g. with `conversionGoal` or `includeAvgTimeOnPage`) can be expensive."
                },
                "doPathCleaning": {
                    "default": false,
                    "description": "Apply the team's path-cleaning rules to URL-style breakdowns.",
                    "type": "boolean"
                },
                "filterTestAccounts": {
                    "default": false,
                    "description": "Exclude internal and test users by applying the team's test-account filter.",
                    "type": "boolean"
                },
                "includeAvgTimeOnPage": {
                    "default": false,
                    "description": "Add an average-time-on-page column. Implies a Page-style breakdown. Disables the pre-aggregated fast path.",
                    "type": "boolean"
                },
                "includeBounceRate": {
                    "default": false,
                    "description": "Add a bounce-rate column. Most useful with a path-style breakdown.",
                    "type": "boolean"
                },
                "includeHost": {
                    "default": false,
                    "description": "When using a path-style breakdown (`Page`, `InitialPage`, `ExitPage`, `PreviousPage`), concatenate host + pathname so the same path on different hosts is counted separately.",
                    "type": "boolean"
                },
                "kind": {
                    "const": "WebStatsTableQuery",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/positive_integer",
                    "description": "Maximum rows to return. Prefer 10–25 unless the user explicitly asks for more. Hard ceiling enforced at the wrapper.",
                    "maximum": 200
                },
                "offset": {
                    "$ref": "#/definitions/non_negative_integer",
                    "description": "Pagination offset."
                },
                "properties": {
                    "$ref": "#/definitions/WebAnalyticsPropertyFilters",
                    "default": [],
                    "description": "Property filters applied to the query. Accepts event, person, session, or cohort filters."
                }
            },
            "required": ["kind", "breakdownBy"],
            "type": "object"
        },
        "AssistantWebVitalsPathBreakdownQuery": {
            "additionalProperties": false,
            "description": "Per-page Core Web Vitals breakdown for one metric at one percentile. Returns the pages bucketed into `good` / `needs_improvements` / `poor` bands, with each page's value — mirrors the in-product **Web vitals** tab.\n\nUse this when the user asks \"which pages are slow?\", \"where is our LCP/INP/ CLS/FCP bad?\", or wants a page-level performance audit. Run it once per metric. For a site-wide trend of a vitals metric over time, use `query-trends` on the `$web_vitals` event instead.",
            "properties": {
                "dateRange": {
                    "$ref": "#/definitions/AssistantDateRangeFilter",
                    "description": "Date range for the query. Defaults to the last 7 days when omitted — a good window for a stable percentile."
                },
                "doPathCleaning": {
                    "default": false,
                    "description": "Apply the team's path-cleaning rules to the returned paths.",
                    "type": "boolean"
                },
                "filterTestAccounts": {
                    "default": false,
                    "description": "Exclude internal and test users by applying the team's test-account filter.",
                    "type": "boolean"
                },
                "kind": {
                    "const": "WebVitalsPathBreakdownQuery",
                    "type": "string"
                },
                "metric": {
                    "$ref": "#/definitions/WebVitalsMetric",
                    "description": "Required. Which Core Web Vital to break down by: `LCP` (load, ms), `INP` (interactivity, ms), `CLS` (layout stability, unitless score), or `FCP` (first paint, ms)."
                },
                "percentile": {
                    "$ref": "#/definitions/WebVitalsPercentile",
                    "description": "Required. Percentile to aggregate each page's samples at. Use `p75` unless the user asks otherwise — the Google bands are defined at p75."
                },
                "properties": {
                    "default": [],
                    "description": "Property filters applied to the query. Accepts event and person filters only (the query runner ignores session and cohort filters) — e.g. an event filter on `$host` to scope to one domain, or on `$device_type` to isolate mobile.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/EventPropertyFilter"
                            },
                            {
                                "$ref": "#/definitions/PersonPropertyFilter"
                            }
                        ]
                    },
                    "type": "array"
                },
                "thresholds": {
                    "description": "Required. `[good, poor]` band boundaries for the chosen metric. Values below `good` are good, above `poor` are poor, in between need improvement. Use the standard Google thresholds unless the user supplies their own: LCP `[2500, 4000]`, INP `[200, 500]`, CLS `[0.1, 0.25]`, FCP `[1800, 3000]`.",
                    "items": {
                        "type": "number"
                    },
                    "maxItems": 2,
                    "minItems": 2,
                    "type": "array"
                }
            },
            "required": ["kind", "metric", "percentile", "thresholds"],
            "type": "object"
        },
        "AttributeBreakdownRow": {
            "additionalProperties": false,
            "description": "One row of a span attribute breakdown: the spans matching the filters, grouped by one attribute's value. Spans without the attribute group under `value = ''`.",
            "properties": {
                "count": {
                    "$ref": "#/definitions/integer"
                },
                "error_count": {
                    "$ref": "#/definitions/integer"
                },
                "p50_duration_nano": {
                    "type": "number"
                },
                "p95_duration_nano": {
                    "type": "number"
                },
                "value": {
                    "type": "string"
                }
            },
            "required": ["value", "count", "error_count", "p50_duration_nano", "p95_duration_nano"],
            "type": "object"
        },
        "AttributionMode": {
            "enum": ["first_touch", "last_touch", "linear", "time_decay", "position_based"],
            "type": "string"
        },
        "AutocompleteCompletionItem": {
            "additionalProperties": false,
            "properties": {
                "detail": {
                    "description": "A human-readable string with additional information about this item, like type or symbol information.",
                    "type": "string"
                },
                "documentation": {
                    "description": "A human-readable string that represents a doc-comment.",
                    "type": "string"
                },
                "insertText": {
                    "description": "A string or snippet that should be inserted in a document when selecting this completion.",
                    "type": "string"
                },
                "kind": {
                    "$ref": "#/definitions/AutocompleteCompletionItemKind",
                    "description": "The kind of this completion item. Based on the kind an icon is chosen by the editor."
                },
                "label": {
                    "description": "The label of this completion item. By default this is also the text that is inserted when selecting this completion.",
                    "type": "string"
                },
                "sortText": {
                    "description": "Overrides the editor's default ordering for this item. Set when the backend can rank a suggestion, for example a function whose return type fits the comparison being written.",
                    "type": "string"
                }
            },
            "required": ["label", "insertText", "kind"],
            "type": "object"
        },
        "AutocompleteCompletionItemKind": {
            "enum": [
                "Method",
                "Function",
                "Constructor",
                "Field",
                "Variable",
                "Class",
                "Struct",
                "Interface",
                "Module",
                "Property",
                "Event",
                "Operator",
                "Unit",
                "Value",
                "Constant",
                "Enum",
                "EnumMember",
                "Keyword",
                "Text",
                "Color",
                "File",
                "Reference",
                "Customcolor",
                "Folder",
                "TypeParameter",
                "User",
                "Issue",
                "Snippet"
            ],
            "type": "string"
        },
        "BIAggregation": {
            "enum": ["count", "count_distinct", "sum", "average", "minimum", "maximum", "custom"],
            "type": "string"
        },
        "BICatalogMetricStatus": {
            "enum": ["approved", "proposed"],
            "type": "string"
        },
        "BICategoryGroup": {
            "additionalProperties": false,
            "properties": {
                "name": {
                    "type": "string"
                },
                "values": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                }
            },
            "required": ["name", "values"],
            "type": "object"
        },
        "BIConditionGroup": {
            "additionalProperties": false,
            "properties": {
                "filters": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "groups": {
                    "items": {
                        "$ref": "#/definitions/BIConditionGroup"
                    },
                    "type": "array"
                },
                "operator": {
                    "enum": ["AND", "OR"],
                    "type": "string"
                }
            },
            "required": ["operator", "filters", "groups"],
            "type": "object"
        },
        "BIConfig": {
            "additionalProperties": false,
            "properties": {
                "catalogMetric": {
                    "description": "Catalog provenance only: the snapshot does not track subsequent definition edits.",
                    "type": "string"
                },
                "catalogMetricContext": {
                    "additionalProperties": false,
                    "description": "Catalog metadata at copy time, not a live approval of the worksheet.",
                    "properties": {
                        "id": {
                            "type": "string"
                        },
                        "isDrifted": {
                            "type": "boolean"
                        },
                        "owner": {
                            "type": ["string", "null"]
                        },
                        "status": {
                            "$ref": "#/definitions/BICatalogMetricStatus"
                        },
                        "unit": {
                            "type": "string"
                        },
                        "updatedAt": {
                            "type": ["string", "null"]
                        }
                    },
                    "required": ["id", "status", "isDrifted", "unit", "owner", "updatedAt"],
                    "type": "object"
                },
                "chartType": {
                    "$ref": "#/definitions/ChartDisplayType"
                },
                "colorBy": {
                    "type": ["string", "null"]
                },
                "columns": {
                    "items": {
                        "$ref": "#/definitions/BIField"
                    },
                    "type": "array"
                },
                "compareFilter": {
                    "$ref": "#/definitions/CompareFilter"
                },
                "comparisonPeriod": {
                    "description": "Explore only the comparison window, using dateRange as its reference window.",
                    "enum": ["previous", null],
                    "type": ["string", "null"]
                },
                "dateField": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/BIField"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Column that receives the worksheet and dashboard date range."
                },
                "dateRange": {
                    "$ref": "#/definitions/DateRange"
                },
                "filters": {
                    "items": {
                        "$ref": "#/definitions/BIFilter"
                    },
                    "type": "array"
                },
                "hierarchies": {
                    "description": "Named dimension sequences saved with the worksheet; imports are independent copies.",
                    "items": {
                        "$ref": "#/definitions/BIHierarchy"
                    },
                    "type": "array"
                },
                "hierarchyDrillPath": {
                    "items": {
                        "additionalProperties": false,
                        "properties": {
                            "filterIds": {
                                "items": {
                                    "type": "string"
                                },
                                "type": "array"
                            },
                            "hierarchyId": {
                                "type": "string"
                            },
                            "nextField": {
                                "$ref": "#/definitions/BIField"
                            },
                            "previousField": {
                                "$ref": "#/definitions/BIField"
                            }
                        },
                        "required": ["hierarchyId", "previousField", "nextField", "filterIds"],
                        "type": "object"
                    },
                    "type": "array"
                },
                "limit": {
                    "$ref": "#/definitions/BIQueryLimit"
                },
                "localFields": {
                    "description": "Reusable expressions owned by this worksheet only.",
                    "items": {
                        "$ref": "#/definitions/BIField"
                    },
                    "type": "array"
                },
                "memberAliases": {
                    "items": {
                        "additionalProperties": false,
                        "properties": {
                            "aliases": {
                                "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                        "label": {
                                            "type": "string"
                                        },
                                        "value": {
                                            "type": ["string", "null"]
                                        }
                                    },
                                    "required": ["value", "label"],
                                    "type": "object"
                                },
                                "type": "array"
                            },
                            "field": {
                                "$ref": "#/definitions/BIField"
                            }
                        },
                        "required": ["field", "aliases"],
                        "type": "object"
                    },
                    "type": "array"
                },
                "missingDates": {
                    "description": "Fill missing date buckets before table calculations. Unset preserves observed points only.",
                    "enum": ["gap", "zero"],
                    "type": "string"
                },
                "panes": {
                    "$ref": "#/definitions/BIPaneSettings",
                    "description": "Split the returned groups into charts using these ordered dimension IDs."
                },
                "querySnapshot": {
                    "$ref": "#/definitions/HogQLQuery",
                    "description": "Executable catalog query snapshot. Dates and grouping belong to the definition, not the shelves."
                },
                "resultFilterGroup": {
                    "$ref": "#/definitions/BIConditionGroup"
                },
                "resultFilters": {
                    "items": {
                        "$ref": "#/definitions/BIResultFilter"
                    },
                    "type": "array"
                },
                "rowFilterGroup": {
                    "$ref": "#/definitions/BIConditionGroup"
                },
                "rows": {
                    "items": {
                        "$ref": "#/definitions/BIField"
                    },
                    "type": "array"
                },
                "sort": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/BISort"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "null sorts automatically: newest date or highest value first, so top rows survive the LIMIT."
                },
                "source": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/BIDataSource"
                        },
                        {
                            "type": "null"
                        }
                    ]
                },
                "topN": {
                    "$ref": "#/definitions/BITopN"
                },
                "totals": {
                    "$ref": "#/definitions/BITotals"
                },
                "values": {
                    "items": {
                        "$ref": "#/definitions/BIValue"
                    },
                    "type": "array"
                }
            },
            "required": ["source", "chartType", "rows", "columns", "values", "filters", "limit"],
            "type": "object"
        },
        "BIDataSource": {
            "additionalProperties": false,
            "properties": {
                "connectionId": {
                    "type": "string"
                },
                "table": {
                    "type": "string"
                }
            },
            "required": ["table"],
            "type": "object"
        },
        "BIDateBucket": {
            "enum": ["minute", "hour", "day", "week", "month", "quarter", "year"],
            "type": "string"
        },
        "BIField": {
            "additionalProperties": false,
            "properties": {
                "dateBucket": {
                    "$ref": "#/definitions/BIDateBucket"
                },
                "datePart": {
                    "enum": ["month", "quarter", "day_of_week"],
                    "type": "string"
                },
                "expression": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "label": {
                    "type": "string"
                },
                "localDefinition": {
                    "$ref": "#/definitions/BILocalFieldDefinition"
                },
                "localFieldId": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "source": {
                    "$ref": "#/definitions/BIDataSource"
                },
                "type": {
                    "$ref": "#/definitions/DatabaseSerializedFieldType"
                }
            },
            "required": ["id", "name", "expression", "type", "source"],
            "type": "object"
        },
        "BIFilter": {
            "additionalProperties": false,
            "properties": {
                "customExpression": {
                    "type": "string"
                },
                "enabled": {
                    "type": "boolean"
                },
                "field": {
                    "$ref": "#/definitions/BIField"
                },
                "label": {
                    "type": "string"
                },
                "operator": {
                    "$ref": "#/definitions/BIFilterOperator"
                },
                "value": {
                    "type": "string"
                },
                "valueTo": {
                    "type": "string"
                },
                "values": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                }
            },
            "required": ["field", "operator", "value"],
            "type": "object"
        },
        "BIFilterOperator": {
            "enum": [
                "equals",
                "not_equals",
                "contains",
                "in",
                "not_in",
                "between",
                "greater_than",
                "less_than",
                "last_7_days",
                "is_set",
                "is_not_set",
                "custom"
            ],
            "type": "string"
        },
        "BIHierarchy": {
            "additionalProperties": false,
            "properties": {
                "id": {
                    "type": "string"
                },
                "levels": {
                    "description": "Ordered from the broadest dimension to the most detailed.",
                    "items": {
                        "$ref": "#/definitions/BIField"
                    },
                    "type": "array"
                },
                "name": {
                    "type": "string"
                }
            },
            "required": ["id", "name", "levels"],
            "type": "object"
        },
        "BILocalFieldDefinition": {
            "anyOf": [
                {
                    "additionalProperties": false,
                    "properties": {
                        "aggregate": {
                            "type": "boolean"
                        },
                        "expression": {
                            "type": "string"
                        },
                        "kind": {
                            "const": "expression",
                            "type": "string"
                        }
                    },
                    "required": ["kind", "expression", "aggregate"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "expression": {
                            "type": "string"
                        },
                        "groups": {
                            "items": {
                                "$ref": "#/definitions/BICategoryGroup"
                            },
                            "type": "array"
                        },
                        "kind": {
                            "const": "groups",
                            "type": "string"
                        },
                        "other": {
                            "type": "string"
                        },
                        "preserveUngrouped": {
                            "type": "boolean"
                        }
                    },
                    "required": ["kind", "expression", "groups", "other"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "expression": {
                            "type": "string"
                        },
                        "kind": {
                            "const": "bins",
                            "type": "string"
                        },
                        "origin": {
                            "type": "number"
                        },
                        "width": {
                            "type": "number"
                        }
                    },
                    "required": ["kind", "expression", "width", "origin"],
                    "type": "object"
                }
            ]
        },
        "BIPaneSettings": {
            "additionalProperties": false,
            "properties": {
                "fields": {
                    "description": "Ordered dimension IDs used to split returned groups into separate charts.",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "independentAxes": {
                    "description": "Use a separate value scale for each pane instead of a shared primary scale.",
                    "type": "boolean"
                },
                "referenceLines": {
                    "description": "Calculate reference lines from each pane or from all returned worksheet marks.",
                    "enum": ["pane", "worksheet"],
                    "type": "string"
                }
            },
            "required": ["fields"],
            "type": "object"
        },
        "BIQueryLimit": {
            "enum": [100, 1000, 10000, 50000],
            "type": "number"
        },
        "BIResultFilter": {
            "additionalProperties": false,
            "properties": {
                "enabled": {
                    "type": "boolean"
                },
                "id": {
                    "type": "string"
                },
                "label": {
                    "type": "string"
                },
                "measureIndex": {
                    "$ref": "#/definitions/non_negative_integer"
                },
                "operator": {
                    "enum": [
                        "equals",
                        "not_equals",
                        "greater_than",
                        "less_than",
                        "greater_than_or_equal",
                        "less_than_or_equal",
                        "between",
                        "is_set",
                        "is_not_set"
                    ],
                    "type": "string"
                },
                "value": {
                    "type": "string"
                },
                "valueTo": {
                    "type": "string"
                }
            },
            "required": ["id", "measureIndex", "operator", "value"],
            "type": "object"
        },
        "BISort": {
            "additionalProperties": false,
            "properties": {
                "direction": {
                    "$ref": "#/definitions/BISortDirection"
                },
                "key": {
                    "type": "string"
                }
            },
            "required": ["key", "direction"],
            "type": "object"
        },
        "BISortDirection": {
            "enum": ["asc", "desc"],
            "type": "string"
        },
        "BITableCalculation": {
            "additionalProperties": false,
            "properties": {
                "computeUsing": {
                    "description": "Dimension ID to traverse. Unset chooses the date dimension; 'table' traverses all dimensions.",
                    "type": "string"
                },
                "requireFullWindow": {
                    "description": "Require a complete window of non-null values before displaying a moving average.",
                    "type": "boolean"
                },
                "type": {
                    "$ref": "#/definitions/BITableCalculationType"
                },
                "window": {
                    "$ref": "#/definitions/positive_integer",
                    "description": "Number of points, including the current point, in a trailing moving average."
                }
            },
            "required": ["type"],
            "type": "object"
        },
        "BITableCalculationType": {
            "enum": ["percent_of_total", "running_total", "difference", "percent_change", "moving_average", "rank"],
            "type": "string"
        },
        "BITopN": {
            "additionalProperties": false,
            "properties": {
                "count": {
                    "$ref": "#/definitions/positive_integer"
                },
                "fieldId": {
                    "type": "string"
                },
                "includeOther": {
                    "type": "boolean"
                },
                "measureIndex": {
                    "$ref": "#/definitions/non_negative_integer"
                }
            },
            "required": ["fieldId", "count", "measureIndex", "includeOther"],
            "type": "object"
        },
        "BITotals": {
            "additionalProperties": false,
            "properties": {
                "columns": {
                    "type": "boolean"
                },
                "rows": {
                    "type": "boolean"
                },
                "subtotals": {
                    "type": "boolean"
                }
            },
            "type": "object"
        },
        "BIValue": {
            "additionalProperties": false,
            "properties": {
                "aggregation": {
                    "$ref": "#/definitions/BIAggregation"
                },
                "customExpression": {
                    "type": "string"
                },
                "display": {
                    "$ref": "#/definitions/ChartSettingsDisplay"
                },
                "field": {
                    "$ref": "#/definitions/BIField"
                },
                "formatting": {
                    "$ref": "#/definitions/ChartSettingsFormatting"
                },
                "label": {
                    "type": "string"
                },
                "shelf": {
                    "description": "Measures in older worksheets belong to rows.",
                    "enum": ["rows", "columns"],
                    "type": "string"
                },
                "tableCalculation": {
                    "$ref": "#/definitions/BITableCalculation"
                }
            },
            "required": ["field", "aggregation"],
            "type": "object"
        },
        "BIVisualizationNode": {
            "additionalProperties": false,
            "properties": {
                "chartSettings": {
                    "$ref": "#/definitions/ChartSettings"
                },
                "config": {
                    "$ref": "#/definitions/BIConfig"
                },
                "display": {
                    "$ref": "#/definitions/ChartDisplayType"
                },
                "kind": {
                    "const": "BIVisualizationNode",
                    "type": "string"
                },
                "source": {
                    "$ref": "#/definitions/HogQLQuery"
                },
                "tableSettings": {
                    "$ref": "#/definitions/TableSettings"
                },
                "version": {
                    "description": "version of the node, used for schema migrations",
                    "type": "number"
                }
            },
            "required": ["config", "kind", "source"],
            "type": "object"
        },
        "BaseAssistantMessage": {
            "additionalProperties": false,
            "properties": {
                "id": {
                    "type": "string"
                },
                "parent_tool_call_id": {
                    "type": "string"
                }
            },
            "type": "object"
        },
        "BaseMathType": {
            "enum": [
                "total",
                "dau",
                "weekly_active",
                "monthly_active",
                "unique_session",
                "first_time_for_user",
                "first_matching_event_for_user"
            ],
            "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.",
            "properties": {
                "multiple_variant_percentage": {
                    "description": "Observed share of users assigned to `$multiple`, as a percentage (0-100).",
                    "type": "number"
                }
            },
            "required": ["multiple_variant_percentage"],
            "type": "object"
        },
        "BillingSpendResponseBreakdownType": {
            "enum": ["type", "team", "multiple"],
            "type": "string"
        },
        "BillingUsageResponseBreakdownType": {
            "enum": ["type", "team", "multiple"],
            "type": "string"
        },
        "BinCountValue": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "const": "auto",
                    "type": "string"
                }
            ]
        },
        "BingAdsDefaultSources": {
            "enum": ["bing", "microsoft", "msads", "bing_video"],
            "type": "string"
        },
        "BoxPlotDatum": {
            "additionalProperties": false,
            "properties": {
                "count": {
                    "$ref": "#/definitions/integer"
                },
                "day": {
                    "type": "string"
                },
                "label": {
                    "type": "string"
                },
                "max": {
                    "type": "number"
                },
                "mean": {
                    "type": "number"
                },
                "median": {
                    "type": "number"
                },
                "min": {
                    "type": "number"
                },
                "p25": {
                    "type": "number"
                },
                "p75": {
                    "type": "number"
                },
                "series_index": {
                    "$ref": "#/definitions/integer"
                },
                "series_label": {
                    "type": "string"
                }
            },
            "required": ["day", "label", "min", "p25", "median", "p75", "max", "mean"],
            "type": "object"
        },
        "BoxPlotSettings": {
            "additionalProperties": false,
            "properties": {
                "excludeOutliers": {
                    "type": "boolean"
                },
                "maxColumn": {
                    "type": "string"
                },
                "meanColumn": {
                    "type": "string"
                },
                "medianColumn": {
                    "type": "string"
                },
                "minColumn": {
                    "type": "string"
                },
                "p25Column": {
                    "type": "string"
                },
                "p75Column": {
                    "type": "string"
                },
                "seriesColumn": {
                    "type": ["string", "null"]
                },
                "xAxisColumn": {
                    "type": ["string", "null"]
                }
            },
            "type": "object"
        },
        "Breakdown": {
            "additionalProperties": false,
            "properties": {
                "group_type_index": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/integer"
                        },
                        {
                            "type": "null"
                        }
                    ]
                },
                "histogram_bin_count": {
                    "$ref": "#/definitions/integer"
                },
                "normalize_url": {
                    "type": "boolean"
                },
                "property": {
                    "anyOf": [
                        {
                            "type": "string"
                        },
                        {
                            "$ref": "#/definitions/integer"
                        }
                    ]
                },
                "type": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/MultipleBreakdownType"
                        },
                        {
                            "type": "null"
                        }
                    ]
                }
            },
            "required": ["property"],
            "type": "object"
        },
        "BreakdownAttributionType": {
            "enum": ["first_touch", "last_touch", "all_events", "step"],
            "type": "string"
        },
        "BreakdownFilter": {
            "additionalProperties": false,
            "properties": {
                "breakdown": {
                    "anyOf": [
                        {
                            "type": "string"
                        },
                        {
                            "$ref": "#/definitions/integer"
                        },
                        {
                            "items": {
                                "anyOf": [
                                    {
                                        "type": "string"
                                    },
                                    {
                                        "$ref": "#/definitions/integer"
                                    }
                                ]
                            },
                            "type": "array"
                        },
                        {
                            "type": "null"
                        }
                    ]
                },
                "breakdown_group_type_index": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/integer"
                        },
                        {
                            "type": "null"
                        }
                    ]
                },
                "breakdown_hide_other_aggregation": {
                    "type": ["boolean", "null"]
                },
                "breakdown_histogram_bin_count": {
                    "$ref": "#/definitions/integer"
                },
                "breakdown_limit": {
                    "$ref": "#/definitions/integer"
                },
                "breakdown_normalize_url": {
                    "type": "boolean"
                },
                "breakdown_path_cleaning": {
                    "type": "boolean"
                },
                "breakdown_type": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/BreakdownType"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "default": "event"
                },
                "breakdowns": {
                    "items": {
                        "$ref": "#/definitions/Breakdown"
                    },
                    "maxItems": 3,
                    "type": "array"
                }
            },
            "type": "object"
        },
        "BreakdownItem": {
            "additionalProperties": false,
            "properties": {
                "label": {
                    "type": "string"
                },
                "value": {
                    "anyOf": [
                        {
                            "type": "string"
                        },
                        {
                            "$ref": "#/definitions/BreakdownValueInt"
                        }
                    ]
                }
            },
            "required": ["label", "value"],
            "type": "object"
        },
        "BreakdownKeyType": {
            "anyOf": [
                {
                    "type": "integer"
                },
                {
                    "type": "string"
                },
                {
                    "type": "number"
                },
                {
                    "items": {
                        "anyOf": [
                            {
                                "type": "integer"
                            },
                            {
                                "type": "string"
                            },
                            {
                                "type": "number"
                            }
                        ]
                    },
                    "type": "array"
                },
                {
                    "type": "null"
                }
            ]
        },
        "BreakdownNotAppliedWarning": {
            "additionalProperties": false,
            "properties": {
                "message": {
                    "description": "Human-readable warning shown to the user",
                    "type": "string"
                },
                "type": {
                    "const": "breakdown_not_applied",
                    "description": "Tells warning kinds apart in the shared `warnings` list",
                    "type": "string"
                }
            },
            "required": ["type", "message"],
            "type": "object"
        },
        "BreakdownType": {
            "enum": [
                "cohort",
                "person",
                "event",
                "event_metadata",
                "element",
                "group",
                "session",
                "hogql",
                "data_warehouse",
                "data_warehouse_person_property",
                "revenue_analytics"
            ],
            "type": "string"
        },
        "BreakdownValue": {
            "additionalProperties": false,
            "properties": {
                "count": {
                    "type": "number"
                },
                "value": {
                    "type": "string"
                }
            },
            "required": ["value", "count"],
            "type": "object"
        },
        "BreakdownValueInt": {
            "$ref": "#/definitions/integer"
        },
        "COPODDetectorConfig": {
            "additionalProperties": false,
            "properties": {
                "preprocessing": {
                    "$ref": "#/definitions/PreprocessingConfig",
                    "description": "Preprocessing transforms applied before detection"
                },
                "threshold": {
                    "description": "Anomaly probability threshold (default: 0.9)",
                    "type": "number"
                },
                "type": {
                    "const": "copod",
                    "type": "string"
                },
                "window": {
                    "$ref": "#/definitions/integer",
                    "description": "Rolling window size — how many historical data points to train on (default: based on calculation interval)"
                }
            },
            "required": ["type"],
            "type": "object"
        },
        "CacheMissResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": ["string", "null"]
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus"
                }
            },
            "required": ["cache_key"],
            "type": "object"
        },
        "CachedAccountsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {},
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "kind": {
                    "const": "AccountsQuery",
                    "type": "string"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "metricsResults": {
                    "description": "When `metrics` is set on the query, the aggregated values in the same order.",
                    "items": {
                        "type": ["number", "null"]
                    },
                    "type": "array"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "items": {},
                        "type": "array"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "types": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "columns",
                "hogql",
                "is_cached",
                "kind",
                "last_refresh",
                "limit",
                "next_allowed_client_refresh",
                "offset",
                "results",
                "timezone",
                "types"
            ],
            "type": "object"
        },
        "CachedAccountsTableQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {
                        "$ref": "#/definitions/AccountsTableResolvedColumn"
                    },
                    "type": "array"
                },
                "customPropertyDefinitions": {
                    "items": {
                        "$ref": "#/definitions/AccountsTableCustomPropertyDefinition"
                    },
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "kind": {
                    "const": "AccountsTableQuery",
                    "type": "string"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "metricsResults": {
                    "description": "Aggregated values in the same order as the requested metrics.",
                    "items": {
                        "type": ["number", "null"]
                    },
                    "type": "array"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "relationshipDefinitions": {
                    "items": {
                        "$ref": "#/definitions/AccountsTableRelationshipDefinition"
                    },
                    "type": "array"
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/AccountsTableRow"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "hasMore",
                "is_cached",
                "kind",
                "last_refresh",
                "limit",
                "next_allowed_client_refresh",
                "offset",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedActorsPropertyTaxonomyQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/ActorsPropertyTaxonomyResponse"
                        },
                        {
                            "items": {
                                "$ref": "#/definitions/ActorsPropertyTaxonomyResponse"
                            },
                            "type": "array"
                        }
                    ]
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedActorsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {},
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "missing_actors_count": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "items": {},
                        "type": "array"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "types": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "columns",
                "hogql",
                "is_cached",
                "last_refresh",
                "limit",
                "next_allowed_client_refresh",
                "offset",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedCalendarHeatmapQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "description": "Wether more breakdown values are available.",
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "$ref": "#/definitions/EventsHeatMapStructuredResult"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedDocumentSimilarityQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/EmbeddingDistance"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedEndpointsUsageOverviewQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/EndpointsUsageOverviewItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedEndpointsUsageTableQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {},
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {},
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "types": {
                    "items": {},
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedEndpointsUsageTrendsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "type": "object"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedErrorTrackingBreakdownsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "additionalProperties": {
                        "additionalProperties": false,
                        "properties": {
                            "total_count": {
                                "type": "number"
                            },
                            "values": {
                                "items": {
                                    "$ref": "#/definitions/BreakdownValue"
                                },
                                "type": "array"
                            }
                        },
                        "required": ["values", "total_count"],
                        "type": "object"
                    },
                    "type": "object"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedErrorTrackingFingerprintProjectionQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/ErrorTrackingFingerprintProjectionPoint"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedErrorTrackingIssueCorrelationQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/ErrorTrackingCorrelatedIssue"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedErrorTrackingIssueEventsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {},
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "nextCursor": {
                    "description": "Where the next page starts.",
                    "type": "string"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "items": {},
                        "type": "array"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "types": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "columns",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone",
                "types"
            ],
            "type": "object"
        },
        "CachedErrorTrackingQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/ErrorTrackingIssue"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedErrorTrackingReleasesQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "bucket_seconds": {
                    "$ref": "#/definitions/integer"
                },
                "buckets": {
                    "description": "ISO start of each bucket. The first one can start before `date_from`.",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "date_from": {
                    "type": "string"
                },
                "date_to": {
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "namespaces": {
                    "description": "Every app namespace in the range, regardless of `appNamespace`.",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "other": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/ErrorTrackingReleaseSeries"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Releases past `maxReleases`, summed."
                },
                "other_release_count": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "release_count": {
                    "$ref": "#/definitions/integer",
                    "description": "Distinct releases in the range for the selected app, before folding."
                },
                "release_count_truncated": {
                    "description": "Set when the query hit its row cap, so `release_count`, `other` and `total` are lower bounds.",
                    "type": "boolean"
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "description": "The releases returned on their own, in the requested order.",
                    "items": {
                        "$ref": "#/definitions/ErrorTrackingIssueRelease"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "total": {
                    "$ref": "#/definitions/integer"
                },
                "unattributed": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/ErrorTrackingReleaseSeries"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Exceptions without an app namespace or version."
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "bucket_seconds",
                "buckets",
                "cache_key",
                "date_from",
                "date_to",
                "is_cached",
                "last_refresh",
                "namespaces",
                "next_allowed_client_refresh",
                "other",
                "other_release_count",
                "release_count",
                "release_count_truncated",
                "results",
                "timezone",
                "total",
                "unattributed"
            ],
            "type": "object"
        },
        "CachedErrorTrackingSimilarIssuesQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/SimilarIssue"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedEventTaxonomyQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "$ref": "#/definitions/EventTaxonomyResponse"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedEventsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {},
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "nextCursor": {
                    "description": "Cursor for fetching the next page of results",
                    "type": "string"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "items": {},
                        "type": "array"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "types": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "columns",
                "hogql",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone",
                "types"
            ],
            "type": "object"
        },
        "CachedExperimentExposureQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "bias_risk": {
                    "$ref": "#/definitions/BiasRisk"
                },
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "date_range": {
                    "$ref": "#/definitions/DateRange"
                },
                "health_checks": {
                    "description": "The result of each check behind `health_findings`, so that a check that did not run is not read as passed.",
                    "items": {
                        "$ref": "#/definitions/ExperimentExposureHealthCheck"
                    },
                    "type": "array"
                },
                "health_findings": {
                    "description": "Health check diagnostics that read the exposures: zero exposures, a sample ratio mismatch, and bias. Empty when every check passed.",
                    "items": {
                        "$ref": "#/definitions/ExperimentExposureHealthFinding"
                    },
                    "type": "array"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "kind": {
                    "const": "ExperimentExposureQuery",
                    "type": "string"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "sample_ratio_mismatch": {
                    "$ref": "#/definitions/SampleRatioMismatch"
                },
                "timeseries": {
                    "items": {
                        "$ref": "#/definitions/ExperimentExposureTimeSeries"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "total_exposures": {
                    "additionalProperties": {
                        "type": "number"
                    },
                    "type": "object"
                },
                "warnings": {
                    "description": "Data warehouse sync warnings — see AnalyticsQueryResponseBase.warnings for semantics.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSyncWarning"
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "date_range",
                "is_cached",
                "kind",
                "last_refresh",
                "next_allowed_client_refresh",
                "timeseries",
                "timezone",
                "total_exposures"
            ],
            "type": "object"
        },
        "CachedExperimentQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "baseline": {
                    "$ref": "#/definitions/ExperimentStatsBaseValidated"
                },
                "breakdown_results": {
                    "description": "Results grouped by breakdown value. When present, baseline and variant_results contain aggregated data.",
                    "items": {
                        "$ref": "#/definitions/ExperimentBreakdownResult"
                    },
                    "type": "array"
                },
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "clickhouse_sql": {
                    "type": "string"
                },
                "hogql": {
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "is_precomputed": {
                    "description": "Whether exposures were served from the precomputation system",
                    "type": "boolean"
                },
                "kind": {
                    "const": "ExperimentQuery",
                    "type": "string"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "timezone": {
                    "type": "string"
                },
                "variant_results": {
                    "anyOf": [
                        {
                            "items": {
                                "$ref": "#/definitions/ExperimentVariantResultFrequentist"
                            },
                            "type": "array"
                        },
                        {
                            "items": {
                                "$ref": "#/definitions/ExperimentVariantResultBayesian"
                            },
                            "type": "array"
                        }
                    ]
                },
                "warnings": {
                    "description": "Data warehouse sync warnings — see AnalyticsQueryResponseBase.warnings for semantics.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSyncWarning"
                    },
                    "type": "array"
                }
            },
            "required": ["cache_key", "is_cached", "last_refresh", "next_allowed_client_refresh", "timezone"],
            "type": "object"
        },
        "CachedFunnelsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {},
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "total_median_conversion_time": {
                    "description": "Median total conversion time across all completers, computed breakdown-agnostically for the Steps viz header.",
                    "type": ["number", "null"]
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedGroupsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {},
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "kind": {
                    "const": "GroupsQuery",
                    "type": "string"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "items": {},
                        "type": "array"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "types": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "columns",
                "hogql",
                "is_cached",
                "kind",
                "last_refresh",
                "limit",
                "next_allowed_client_refresh",
                "offset",
                "results",
                "timezone",
                "types"
            ],
            "type": "object"
        },
        "CachedHogQLQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "clickhouse": {
                    "description": "Executed ClickHouse query",
                    "type": "string"
                },
                "column_formats": {
                    "description": "Display formats for directly selected virtual properties, aligned with columns.",
                    "items": {
                        "type": ["string", "null"]
                    },
                    "type": "array"
                },
                "columns": {
                    "description": "Returned columns",
                    "items": {},
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "explain": {
                    "description": "Query explanation output",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "metadata": {
                    "$ref": "#/definitions/HogQLMetadataResponse",
                    "description": "Query metadata output"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query": {
                    "description": "Input query string",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {},
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "types": {
                    "description": "Types of returned columns",
                    "items": {},
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedInboxUsageQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "$ref": "#/definitions/InboxUsage"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedInsightActorsQueryOptionsResponse": {
            "additionalProperties": false,
            "properties": {
                "breakdown": {
                    "items": {
                        "$ref": "#/definitions/BreakdownItem"
                    },
                    "type": "array"
                },
                "breakdowns": {
                    "items": {
                        "$ref": "#/definitions/MultipleBreakdownOptions"
                    },
                    "type": "array"
                },
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "compare": {
                    "items": {
                        "additionalProperties": false,
                        "properties": {
                            "label": {
                                "type": "string"
                            },
                            "value": {
                                "type": "string"
                            }
                        },
                        "required": ["label", "value"],
                        "type": "object"
                    },
                    "type": "array"
                },
                "day": {
                    "items": {
                        "additionalProperties": false,
                        "properties": {
                            "label": {
                                "type": "string"
                            },
                            "value": {
                                "anyOf": [
                                    {
                                        "type": "string"
                                    },
                                    {
                                        "$ref": "#/definitions/DatetimeDay"
                                    },
                                    {
                                        "$ref": "#/definitions/Day"
                                    }
                                ]
                            }
                        },
                        "required": ["label", "value"],
                        "type": "object"
                    },
                    "type": "array"
                },
                "interval": {
                    "items": {
                        "additionalProperties": false,
                        "properties": {
                            "label": {
                                "type": "string"
                            },
                            "value": {
                                "$ref": "#/definitions/integer",
                                "description": "An interval selected out of available intervals in source query"
                            }
                        },
                        "required": ["label", "value"],
                        "type": "object"
                    },
                    "type": "array"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "series": {
                    "items": {
                        "additionalProperties": false,
                        "properties": {
                            "label": {
                                "type": "string"
                            },
                            "value": {
                                "$ref": "#/definitions/integer"
                            }
                        },
                        "required": ["label", "value"],
                        "type": "object"
                    },
                    "type": "array"
                },
                "status": {
                    "items": {
                        "additionalProperties": false,
                        "properties": {
                            "label": {
                                "type": "string"
                            },
                            "value": {
                                "type": "string"
                            }
                        },
                        "required": ["label", "value"],
                        "type": "object"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "warnings": {
                    "description": "Data warehouse sync warnings — see AnalyticsQueryResponseBase.warnings for semantics.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSyncWarning"
                    },
                    "type": "array"
                }
            },
            "required": ["cache_key", "is_cached", "last_refresh", "next_allowed_client_refresh", "timezone"],
            "type": "object"
        },
        "CachedLifecycleQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "action_names": {
                    "additionalProperties": {
                        "type": "string"
                    },
                    "description": "The name of each action the query's series reference, keyed by action id. A series saved without a `name` displays this name, because the query holds only the action's id.",
                    "type": "object"
                },
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "type": "object"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedLogsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "nextCursor": {
                    "description": "Cursor for fetching the next page of results",
                    "type": "string"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {},
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMCPHarnessBreakdownQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MCPHarnessBreakdownItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMCPMissingCapabilitiesQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "has_next": {
                    "description": "Whether more reports exist past this page.",
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MCPMissingCapabilitiesItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "has_next",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMCPModelBreakdownQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "description": "Whether another page of individual model identifiers is available.",
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MCPModelBreakdownItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMCPProtocolVersionBreakdownQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MCPProtocolVersionBreakdownItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMCPToolCallBreakdownQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MCPToolCallBreakdownItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMCPToolCallsAndErrorsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MCPToolCallsAndErrorsItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMCPToolCategoriesQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MCPToolCategoryItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMCPToolCategoryCountsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MCPToolCategoryCountItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMCPToolCategoryMapQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MCPToolCategoryMapItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMCPToolDailyStatsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MCPToolDailyStatItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMCPToolDescriptionsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MCPToolDescriptionItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMCPToolFailureOccurrencesQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MCPToolFailureOccurrenceItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMCPToolFailuresQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MCPToolFailureItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMCPToolNeighborsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MCPToolNeighborItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMCPToolQualityDailyStatsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MCPToolQualityDailyStatItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMCPToolQualityRowsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "previousTotalSessions": {
                    "$ref": "#/definitions/integer",
                    "description": "The same total for the previous period, the denominator for each row's previous session share."
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MCPToolQualityRowItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "totalCount": {
                    "$ref": "#/definitions/integer",
                    "description": "Number of tools matching the date, category, and search filters."
                },
                "totalSessions": {
                    "$ref": "#/definitions/integer",
                    "description": "Distinct sessions with any tool call in the window, ignoring category and search filters. The denominator for each row's session share."
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "previousTotalSessions",
                "results",
                "timezone",
                "totalCount",
                "totalSessions"
            ],
            "type": "object"
        },
        "CachedMCPToolSampleIntentsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MCPToolSampleIntentItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMCPToolStatsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "description": "Zero or one row; empty when the tool had no calls in the window.",
                    "items": {
                        "$ref": "#/definitions/MCPToolStatsItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMCPToolTopUsersQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MCPToolTopUserItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMarketingAnalyticsAggregatedQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "dataComputedAt": {
                    "description": "ISO timestamp of the oldest precompute window backing this result.",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "latestDayComputedAt": {
                    "description": "ISO timestamp of when the numbers for the most recent day in the range were computed, at this time or later. It is the oldest stamp among the precompute windows that hold that day, across costs and conversion goals. Unset when no precompute was read or a window has no stamp.",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "precomputeNotReady": {
                    "description": "True when a conversion goal's precompute has not been warmed for this window yet — the UI shows a \"computing\" state rather than empty results. Marketing analytics serves exclusively from precompute.",
                    "type": "boolean"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "additionalProperties": {
                        "$ref": "#/definitions/MarketingAnalyticsItem"
                    },
                    "type": "object"
                },
                "samplingRate": {
                    "$ref": "#/definitions/SamplingRate"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMarketingAnalyticsAttributionPathsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "attributedConversions": {
                    "$ref": "#/definitions/integer",
                    "description": "Conversions with at least one in-window touchpoint. The share denominator — deliberately unfiltered by min/maxTouchpoints so shares stay comparable across filter values."
                },
                "attributionWindowDays": {
                    "$ref": "#/definitions/integer",
                    "description": "The attribution window actually used, for the tooltips."
                },
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hasValue": {
                    "description": "Whether the goal is revenue-bearing, which gates the value column.",
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MarketingAnalyticsAttributionPathRow"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "totalConversions": {
                    "$ref": "#/definitions/integer",
                    "description": "All conversions in range, before the touchpoint-count filter."
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "attributedConversions",
                "attributionWindowDays",
                "cache_key",
                "hasValue",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone",
                "totalConversions"
            ],
            "type": "object"
        },
        "CachedMarketingAnalyticsAttributionQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "allowsMultipleConversionsPerVisitor": {
                    "description": "Whether this result counted a repeat converter's every conversion, after resolving the query's null against the goal's math. The rate columns are a true share only when this is false, so the table reads it to label them.",
                    "type": "boolean"
                },
                "attributionWindowDays": {
                    "$ref": "#/definitions/integer",
                    "description": "The team's configured attribution window, for the tooltips."
                },
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hasValue": {
                    "description": "Whether the goal is revenue-bearing, which gates the value columns.",
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "models": {
                    "description": "Model order for the column groups.",
                    "items": {
                        "$ref": "#/definitions/AttributionMode"
                    },
                    "type": "array"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MarketingAnalyticsAttributionRow"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "totalConversions": {
                    "$ref": "#/definitions/integer",
                    "description": "Total conversions in range, so the footer can say \"N of M\"."
                },
                "unattributedConversions": {
                    "$ref": "#/definitions/integer",
                    "description": "Conversions with no touchpoint in the window. Reported in the footer, not in any row."
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "allowsMultipleConversionsPerVisitor",
                "attributionWindowDays",
                "cache_key",
                "hasValue",
                "is_cached",
                "last_refresh",
                "models",
                "next_allowed_client_refresh",
                "results",
                "timezone",
                "totalConversions",
                "unattributedConversions"
            ],
            "type": "object"
        },
        "CachedMarketingAnalyticsRecommendationsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "disclaimer": {
                    "description": "Caveat to show with the results. The results are suggestions, and impact figures are estimates.",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MarketingAnalyticsRecommendation"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "disclaimer",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMarketingAnalyticsRetentionQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "interval": {
                    "$ref": "#/definitions/MarketingAnalyticsRetentionInterval"
                },
                "intervalCount": {
                    "$ref": "#/definitions/integer",
                    "description": "Column count. Every row's values array has this length."
                },
                "is_cached": {
                    "type": "boolean"
                },
                "labels": {
                    "description": "Column headers, e.g. ['Week 0', 'Week 1', ...].",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "otherBreakdownCount": {
                    "$ref": "#/definitions/integer",
                    "description": "How many breakdown values were folded into 'Other', so the table can say so."
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MarketingAnalyticsRetentionRow"
                    },
                    "type": "array"
                },
                "summary": {
                    "description": "Only populated in summary mode. Rates use the corresponding eligible population.",
                    "items": {
                        "$ref": "#/definitions/MarketingAnalyticsRetentionSummaryRow"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "totalCohortSize": {
                    "$ref": "#/definitions/integer",
                    "description": "Distinct persons acquired across every cohort and breakdown value."
                },
                "truncatedCohorts": {
                    "$ref": "#/definitions/integer",
                    "description": "Older cohorts dropped to bound the matrix. Non-zero means the table covers less than the date range the filter bar shows, so the table has to say so."
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "interval",
                "intervalCount",
                "is_cached",
                "labels",
                "last_refresh",
                "next_allowed_client_refresh",
                "otherBreakdownCount",
                "results",
                "timezone",
                "totalCohortSize",
                "truncatedCohorts"
            ],
            "type": "object"
        },
        "CachedMarketingAnalyticsSearchQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "placementUnavailable": {
                    "type": "boolean"
                },
                "posthogAttributionMode": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/AttributionMode"
                        },
                        {
                            "type": "null"
                        }
                    ]
                },
                "posthogConversionGoals": {
                    "anyOf": [
                        {
                            "items": {
                                "$ref": "#/definitions/MarketingAnalyticsSearchConversionGoal"
                            },
                            "type": "array"
                        },
                        {
                            "type": "null"
                        }
                    ]
                },
                "posthogConversionsWarning": {
                    "type": ["string", "null"]
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MarketingAnalyticsSearchRow"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMarketingAnalyticsTableQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {},
                    "type": "array"
                },
                "dataComputedAt": {
                    "description": "ISO timestamp of the oldest precompute window backing this result.",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "latestDayComputedAt": {
                    "description": "ISO timestamp of when the numbers for the most recent day in the range were computed, at this time or later. It is the oldest stamp among the precompute windows that hold that day, across costs and conversion goals. Unset when no precompute was read or a window has no stamp.",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "precomputeNotReady": {
                    "description": "True when a conversion goal's precompute has not been warmed for this window yet — the UI shows a \"computing\" state rather than empty results. Marketing analytics serves exclusively from precompute.",
                    "type": "boolean"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "items": {
                            "$ref": "#/definitions/MarketingAnalyticsItem"
                        },
                        "type": "array"
                    },
                    "type": "array"
                },
                "samplingRate": {
                    "$ref": "#/definitions/SamplingRate"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "types": {
                    "items": {},
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMetricsHistogramQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "bounds": {
                    "description": "Upper bound per row (y axis), ascending.",
                    "items": {
                        "type": "number"
                    },
                    "type": "array"
                },
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "counts": {
                    "description": "Observation count per cell: counts[row][column], row = bound, column = time.",
                    "items": {
                        "items": {
                            "type": "number"
                        },
                        "type": "array"
                    },
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {},
                "times": {
                    "description": "Bucket start per column (x axis), ISO 8601, ascending.",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "bounds",
                "cache_key",
                "counts",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "times",
                "timezone"
            ],
            "type": "object"
        },
        "CachedMetricsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/MetricsQuerySeries"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedNewExperimentQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "baseline": {
                    "$ref": "#/definitions/ExperimentStatsBaseValidated"
                },
                "breakdown_results": {
                    "items": {
                        "$ref": "#/definitions/ExperimentBreakdownResult"
                    },
                    "type": "array"
                },
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "clickhouse_sql": {
                    "type": "string"
                },
                "hogql": {
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "is_precomputed": {
                    "description": "Whether exposures were served from the precomputation system",
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "timezone": {
                    "type": "string"
                },
                "variant_results": {
                    "anyOf": [
                        {
                            "items": {
                                "$ref": "#/definitions/ExperimentVariantResultFrequentist"
                            },
                            "type": "array"
                        },
                        {
                            "items": {
                                "$ref": "#/definitions/ExperimentVariantResultBayesian"
                            },
                            "type": "array"
                        }
                    ]
                },
                "warnings": {
                    "description": "Data warehouse sync warnings — see AnalyticsQueryResponseBase.warnings for semantics.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSyncWarning"
                    },
                    "type": "array"
                }
            },
            "required": [
                "baseline",
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "timezone",
                "variant_results"
            ],
            "type": "object"
        },
        "CachedPathsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/PathsLink"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedPathsV2QueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "$ref": "#/definitions/PathsV2Results"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedPropertyValuesQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/PropertyValueItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedRecordingsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "has_next": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "next_cursor": {
                    "description": "Cursor for the next page. Contains the ordering value and session_id from the last record.",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/SessionRecordingType"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "has_next",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedRetentionQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/RetentionResult"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedSessionAttributionExplorerQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {},
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {},
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "types": {
                    "items": {},
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedSessionBatchEventsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {},
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "nextCursor": {
                    "description": "Cursor for fetching the next page of results",
                    "type": "string"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "items": {},
                        "type": "array"
                    },
                    "type": "array"
                },
                "session_events": {
                    "description": "Events grouped by session ID. Only populated when group_by_session=True.",
                    "items": {
                        "$ref": "#/definitions/SessionEventsItem"
                    },
                    "type": "array"
                },
                "sessions_with_no_events": {
                    "description": "List of session IDs that had no matching events",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "types": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "columns",
                "hogql",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone",
                "types"
            ],
            "type": "object"
        },
        "CachedSessionQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/LLMTrace"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedSessionsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {},
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "items": {},
                        "type": "array"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "types": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "columns",
                "hogql",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone",
                "types"
            ],
            "type": "object"
        },
        "CachedSessionsTimelineQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/TimelineEntry"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedStickinessQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "action_names": {
                    "additionalProperties": {
                        "type": "string"
                    },
                    "description": "The name of each action the query's series reference, keyed by action id. A series saved without a `name` displays this name, because the query holds only the action's id.",
                    "type": "object"
                },
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "type": "object"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedSuggestedQuestionsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "questions": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "warnings": {
                    "description": "Data warehouse sync warnings — see AnalyticsQueryResponseBase.warnings for semantics.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSyncWarning"
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "questions",
                "timezone"
            ],
            "type": "object"
        },
        "CachedTeamTaxonomyQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "$ref": "#/definitions/TeamTaxonomyResponse"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedTraceNeighborsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "newerTimestamp": {
                    "description": "Timestamp of the newer trace",
                    "type": "string"
                },
                "newerTraceId": {
                    "description": "ID of the newer trace (chronologically after current)",
                    "type": "string"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "olderTimestamp": {
                    "description": "Timestamp of the older trace",
                    "type": "string"
                },
                "olderTraceId": {
                    "description": "ID of the older trace (chronologically before current)",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "warnings": {
                    "description": "Data warehouse sync warnings — see AnalyticsQueryResponseBase.warnings for semantics.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSyncWarning"
                    },
                    "type": "array"
                }
            },
            "required": ["cache_key", "is_cached", "last_refresh", "next_allowed_client_refresh", "timezone"],
            "type": "object"
        },
        "CachedTraceQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/LLMTrace"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedTraceSpansAggregationQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "compare": {
                    "description": "Result rows for the comparison period when `compareFilter.compare` is true.",
                    "items": {
                        "$ref": "#/definitions/AggregatedSpanRow"
                    },
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/AggregatedSpanRow"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedTraceSpansAttributeBreakdownQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "compare": {
                    "description": "Result rows for the comparison period when `compareFilter.compare` is true.",
                    "items": {
                        "$ref": "#/definitions/AttributeBreakdownRow"
                    },
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/AttributeBreakdownRow"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedTraceSpansQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "nextCursor": {
                    "description": "Cursor for fetching the next page of results",
                    "type": "string"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {},
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedTraceSpansSymbolStatsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "granularity": {
                    "$ref": "#/definitions/SymbolStatsGranularity",
                    "description": "Which bucketing was applied: `line` when no symbols were supplied, `symbol` otherwise."
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "description": "One row per bucket, ordered by line ascending.",
                    "items": {
                        "$ref": "#/definitions/SymbolStatsRow"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "granularity",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedTraceSpansTreeQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "compare": {
                    "description": "Result rows for the comparison period when `compareFilter.compare` is true.",
                    "items": {
                        "$ref": "#/definitions/SpanTreeNode"
                    },
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/SpanTreeNode"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedTracesQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/LLMTrace"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedTrendsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "action_names": {
                    "additionalProperties": {
                        "type": "string"
                    },
                    "description": "The name of each action the query's series reference, keyed by action id. A series saved without a `name` displays this name, because the query holds only the action's id.",
                    "type": "object"
                },
                "boxplot_data": {
                    "deprecated": "Box plot data is now returned in results. This field is no longer populated.",
                    "items": {
                        "$ref": "#/definitions/BoxPlotDatum"
                    },
                    "type": "array"
                },
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "description": "Wether more breakdown values are available.",
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "type": "object"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedUsageMetricsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/UsageMetric"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedVectorSearchQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "$ref": "#/definitions/VectorSearchResponse"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedWebAgentAnalyticsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {},
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {},
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "types": {
                    "items": {},
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedWebBotsTableQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {},
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {},
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "types": {
                    "items": {},
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedWebExternalClicksTableQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {},
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {},
                    "type": "array"
                },
                "samplingRate": {
                    "$ref": "#/definitions/SamplingRate"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "types": {
                    "items": {},
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedWebGoalsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {},
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "preComputeIneligibleReason": {
                    "description": "Why a live response skipped precompute: the eligibility-gate reason that refused it. Unset when the query was eligible.",
                    "type": "string"
                },
                "preComputeStale": {
                    "description": "Whether a lazy-precompute read was served from expired-within-grace (stale) jobs instead of recomputing inline.",
                    "type": "boolean"
                },
                "preComputeStrategy": {
                    "$ref": "#/definitions/WebAnalyticsPreComputeStrategy"
                },
                "preComputedAt": {
                    "description": "When the oldest precomputed window this response used was computed. Unset for live responses.",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {},
                    "type": "array"
                },
                "samplingRate": {
                    "$ref": "#/definitions/SamplingRate"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "types": {
                    "items": {},
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedWebNotableChangesQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "preComputeStrategy": {
                    "$ref": "#/definitions/WebAnalyticsPreComputeStrategy"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/WebNotableChangeItem"
                    },
                    "type": "array"
                },
                "samplingRate": {
                    "$ref": "#/definitions/SamplingRate"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedWebOverviewQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "dateFrom": {
                    "type": "string"
                },
                "dateTo": {
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "preComputeIneligibleReason": {
                    "description": "Why a live response skipped precompute: the eligibility-gate reason that refused it. Unset when the query was eligible.",
                    "type": "string"
                },
                "preComputeStale": {
                    "description": "Whether a lazy-precompute read was served from expired-within-grace (stale) jobs instead of recomputing inline.",
                    "type": "boolean"
                },
                "preComputeStrategy": {
                    "$ref": "#/definitions/WebAnalyticsPreComputeStrategy"
                },
                "preComputedAt": {
                    "description": "When the oldest precomputed window this response used was computed. Unset for live responses.",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/WebOverviewItem"
                    },
                    "type": "array"
                },
                "samplingRate": {
                    "$ref": "#/definitions/SamplingRate"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedWebPageDirectoryQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/WebPageDirectoryRow"
                    },
                    "type": "array"
                },
                "siteTotals": {
                    "$ref": "#/definitions/WebPageDirectorySiteTotals"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedWebPageURLSearchQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "preComputeStrategy": {
                    "$ref": "#/definitions/WebAnalyticsPreComputeStrategy"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/PageURL"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedWebStatsTableQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "columns": {
                    "items": {},
                    "type": "array"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "limit": {
                    "$ref": "#/definitions/integer"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "offset": {
                    "$ref": "#/definitions/integer"
                },
                "preComputeIneligibleReason": {
                    "description": "Why a live response skipped precompute: the eligibility-gate reason that refused it. Unset when the query was eligible.",
                    "type": "string"
                },
                "preComputeStale": {
                    "description": "Whether a lazy-precompute read was served from expired-within-grace (stale) jobs instead of recomputing inline.",
                    "type": "boolean"
                },
                "preComputeStrategy": {
                    "$ref": "#/definitions/WebAnalyticsPreComputeStrategy"
                },
                "preComputedAt": {
                    "description": "When the oldest precomputed window this response used was computed. Unset for live responses.",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {},
                    "type": "array"
                },
                "samplingRate": {
                    "$ref": "#/definitions/SamplingRate"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "types": {
                    "items": {},
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedWebVitalsPathBreakdownQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "preComputeIneligibleReason": {
                    "description": "Why a live response skipped precompute: the eligibility-gate reason that refused it. Unset when the query was eligible.",
                    "type": "string"
                },
                "preComputeStale": {
                    "description": "Whether a lazy-precompute read was served from expired-within-grace (stale) jobs instead of recomputing inline.",
                    "type": "boolean"
                },
                "preComputeStrategy": {
                    "$ref": "#/definitions/WebAnalyticsPreComputeStrategy"
                },
                "preComputedAt": {
                    "description": "When the oldest precomputed window this response used was computed. Unset for live responses.",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/WebVitalsPathBreakdownResult"
                    },
                    "maxItems": 1,
                    "minItems": 1,
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CachedWebVitalsQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "cache_key": {
                    "type": "string"
                },
                "cache_target_age": {
                    "format": "date-time",
                    "type": "string"
                },
                "calculation_trigger": {
                    "description": "What triggered the calculation of the query, leave empty if user/immediate",
                    "type": "string"
                },
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "is_cached": {
                    "type": "boolean"
                },
                "last_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "next_allowed_client_refresh": {
                    "format": "date-time",
                    "type": "string"
                },
                "query_metadata": {
                    "type": "object"
                },
                "query_scan": {
                    "$ref": "#/definitions/QueryScanSummary",
                    "description": "The rows and time of the run that produced these results, with its analysis once it is stored."
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "items": {
                        "$ref": "#/definitions/WebVitalsItem"
                    },
                    "type": "array"
                },
                "timezone": {
                    "type": "string"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": [
                "cache_key",
                "is_cached",
                "last_refresh",
                "next_allowed_client_refresh",
                "results",
                "timezone"
            ],
            "type": "object"
        },
        "CalendarHeatmapFilter": {
            "additionalProperties": false,
            "properties": {
                "bucketBySessionStart": {
                    "default": false,
                    "description": "When true and the series math is `dau`/`unique_users`, each user contributes to the (day-of-week, hour) bucket of their session's first event only — matching the web overview session-start attribution. When false (default), the user contributes to every bucket they have any event in. No effect on `total` math (event counts are unchanged either way).",
                    "type": "boolean"
                }
            },
            "type": "object"
        },
        "CalendarHeatmapMathType": {
            "enum": ["total", "dau"],
            "type": "string"
        },
        "CalendarHeatmapQuery": {
            "additionalProperties": false,
            "properties": {
                "aggregation_group_type_index": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/integer"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Groups aggregation"
                },
                "calendarHeatmapFilter": {
                    "$ref": "#/definitions/CalendarHeatmapFilter",
                    "description": "Properties specific to the trends insight"
                },
                "conversionGoal": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/WebAnalyticsConversionGoal"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Whether we should be comparing against a specific conversion goal"
                },
                "dataColorTheme": {
                    "description": "Colors used in the insight's visualization",
                    "type": ["number", "null"]
                },
                "dateRange": {
                    "$ref": "#/definitions/DateRange",
                    "description": "Date range for the query"
                },
                "filterTestAccounts": {
                    "default": false,
                    "description": "Exclude internal and test users by applying the respective filters",
                    "type": "boolean"
                },
                "interval": {
                    "$ref": "#/definitions/IntervalType",
                    "default": "day",
                    "description": "Granularity of the response. Can be one of `hour`, `day`, `week` or `month`"
                },
                "kind": {
                    "const": "CalendarHeatmapQuery",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "properties": {
                    "anyOf": [
                        {
                            "items": {
                                "$ref": "#/definitions/AnyPropertyFilter"
                            },
                            "type": "array"
                        },
                        {
                            "$ref": "#/definitions/PropertyGroupFilter"
                        }
                    ],
                    "default": [],
                    "description": "Property filters for all series"
                },
                "response": {
                    "$ref": "#/definitions/CalendarHeatmapResponse"
                },
                "samplingFactor": {
                    "description": "Sampling rate",
                    "type": ["number", "null"]
                },
                "series": {
                    "description": "Events and actions to include",
                    "items": {
                        "$ref": "#/definitions/CalendarHeatmapQuerySeriesNode"
                    },
                    "type": "array"
                },
                "tags": {
                    "$ref": "#/definitions/QueryLogTags",
                    "description": "Tags that will be added to the Query log comment"
                },
                "version": {
                    "description": "version of the node, used for schema migrations",
                    "type": "number"
                }
            },
            "required": ["kind", "series"],
            "type": "object"
        },
        "CalendarHeatmapQuerySeriesNode": {
            "$ref": "#/definitions/CalendarHeatmapQuerySeriesNodeUnion"
        },
        "CalendarHeatmapQuerySeriesNodeUnion": {
            "discriminator": {
                "propertyName": "kind"
            },
            "oneOf": [
                {
                    "$ref": "#/definitions/EventsNode"
                },
                {
                    "$ref": "#/definitions/ActionsNode"
                },
                {
                    "$ref": "#/definitions/DataWarehouseNode"
                }
            ],
            "required": ["kind"],
            "type": "object"
        },
        "CalendarHeatmapResponse": {
            "additionalProperties": false,
            "properties": {
                "error": {
                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                    "type": "string"
                },
                "hasMore": {
                    "description": "Wether more breakdown values are available.",
                    "type": "boolean"
                },
                "hogql": {
                    "description": "Generated HogQL query.",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "query_status": {
                    "$ref": "#/definitions/QueryStatus",
                    "description": "Query status indicates whether next to the provided data, a query is still running."
                },
                "resolved_compare_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                },
                "resolved_date_range": {
                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                    "description": "The date range used for the query"
                },
                "results": {
                    "$ref": "#/definitions/EventsHeatMapStructuredResult"
                },
                "timings": {
                    "description": "Measured timings for different parts of the query generation process",
                    "items": {
                        "$ref": "#/definitions/QueryTiming"
                    },
                    "type": "array"
                },
                "used_data_warehouse_sources": {
                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                    "items": {
                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                    },
                    "type": "array"
                },
                "warnings": {
                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                            },
                            {
                                "$ref": "#/definitions/AccessControlFilterWarning"
                            },
                            {
                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                            }
                        ]
                    },
                    "type": "array"
                }
            },
            "required": ["results"],
            "type": "object"
        },
        "CampaignFieldPreference": {
            "additionalProperties": false,
            "properties": {
                "match_field": {
                    "$ref": "#/definitions/MatchField"
                }
            },
            "required": ["match_field"],
            "type": "object"
        },
        "Category": {
            "const": "deep_research",
            "type": "string"
        },
        "ChartAxis": {
            "additionalProperties": false,
            "properties": {
                "column": {
                    "type": "string"
                },
                "settings": {
                    "additionalProperties": false,
                    "properties": {
                        "display": {
                            "$ref": "#/definitions/ChartSettingsDisplay"
                        },
                        "formatting": {
                            "$ref": "#/definitions/ChartSettingsFormatting"
                        }
                    },
                    "type": "object"
                }
            },
            "required": ["column"],
            "type": "object"
        },
        "ChartDisplayCategory": {
            "enum": ["TimeSeries", "CumulativeTimeSeries", "TotalValue"],
            "type": "string"
        },
        "ChartDisplayType": {
            "enum": [
                "Auto",
                "ActionsLineGraph",
                "ActionsBar",
                "ActionsUnstackedBar",
                "ActionsStackedBar",
                "ActionsAreaGraph",
                "ActionsLineGraphCumulative",
                "BoldNumber",
                "Metric",
                "ActionsPie",
                "ActionsDonut",
                "ActionsProportionBar",
                "ActionsBarValue",
                "ActionsTable",
                "WorldMap",
                "CalendarHeatmap",
                "TwoDimensionalHeatmap",
                "BoxPlot",
                "SlopeGraph",
                "ScatterPlot"
            ],
            "type": "string"
        },
        "ChartSettings": {
            "additionalProperties": false,
            "properties": {
                "annotationsScope": {
                    "$ref": "#/definitions/AnnotationScope",
                    "description": "Shows only the annotations saved at this level. Unset shows every level."
                },
                "barGap": {
                    "type": "number"
                },
                "boxPlot": {
                    "$ref": "#/definitions/BoxPlotSettings"
                },
                "chartStyle": {
                    "$ref": "#/definitions/ChartStyle",
                    "description": "Chart rendering style overrides (line shape). Only applies to line and area charts."
                },
                "goalLines": {
                    "items": {
                        "$ref": "#/definitions/GoalLine"
                    },
                    "type": "array"
                },
                "heatmap": {
                    "$ref": "#/definitions/HeatmapSettings"
                },
                "leftYAxisSettings": {
                    "$ref": "#/definitions/YAxisSettings"
                },
                "legendPosition": {
                    "description": "Where the legend sits relative to the chart. Unset falls back per chart type: right for pie and donut, bottom for proportion bar, top for the rest.",
                    "enum": ["top", "bottom", "left", "right"],
                    "type": "string"
                },
                "metric": {
                    "$ref": "#/definitions/MetricChartSettings"
                },
                "pie": {
                    "$ref": "#/definitions/PieChartSettings"
                },
                "resultCustomizations": {
                    "additionalProperties": {
                        "$ref": "#/definitions/ResultCustomizationByValue"
                    },
                    "description": "Per-breakdown-value color customizations. Keyed by the raw breakdown column value.",
                    "type": "object"
                },
                "rightYAxisSettings": {
                    "$ref": "#/definitions/YAxisSettings"
                },
                "scatter": {
                    "$ref": "#/definitions/ScatterChartSettings"
                },
                "seriesBreakdownColumn": {
                    "type": ["string", "null"]
                },
                "showAnnotations": {
                    "type": "boolean"
                },
                "showLegend": {
                    "type": "boolean"
                },
                "showNullsAsZero": {
                    "type": "boolean"
                },
                "showPieTotal": {
                    "type": "boolean"
                },
                "showTotalRow": {
                    "type": "boolean"
                },
                "showValuesOnSeries": {
                    "type": "boolean"
                },
                "showXAxisBorder": {
                    "type": "boolean"
                },
                "showXAxisTicks": {
                    "type": "boolean"
                },
                "showYAxisBorder": {
                    "type": "boolean"
                },
                "stackBars100": {
                    "description": "Whether we fill the bars to 100% in stacked mode",
                    "type": "boolean"
                },
                "valueLabelBackground": {
                    "type": "boolean"
                },
                "valueLabelFontSize": {
                    "type": "number"
                },
                "valueLabelPosition": {
                    "enum": ["end", "center"],
                    "type": "string"
                },
                "valueLabelRotation": {
                    "type": "number"
                },
                "xAxis": {
                    "$ref": "#/definitions/ChartAxis"
                },
                "xAxisDateFormat": {
                    "type": "string"
                },
                "xAxisLabel": {
                    "type": "string"
                },
                "xAxisTickRotation": {
                    "type": "number"
                },
                "yAxis": {
                    "items": {
                        "$ref": "#/definitions/ChartAxis"
                    },
                    "type": "array"
                },
                "yAxisAtZero": {
                    "description": "Deprecated: use `[left|right]YAxisSettings`. Whether the Y axis should start at zero",
                    "type": "boolean"
                }
            },
            "type": "object"
        },
        "ChartSettingsDisplay": {
            "additionalProperties": false,
            "properties": {
                "color": {
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "displayType": {
                    "enum": ["auto", "line", "bar", "area"],
                    "type": "string"
                },
                "excludeFromTotal": {
                    "description": "Keep this series out of the tooltip's total row, e.g. a target line over stacked bars.",
                    "type": "boolean"
                },
                "label": {
                    "type": "string"
                },
                "trendLine": {
                    "type": "boolean"
                },
                "valueLabels": {
                    "description": "Overrides the chart's \"Show values on series\" for this series. Unset or 'auto' follows the chart setting.",
                    "enum": ["auto", "show", "hide"],
                    "type": "string"
                },
                "yAxisPosition": {
                    "enum": ["left", "right"],
                    "type": "string"
                }
            },
            "type": "object"
        },
        "ChartSettingsFormatting": {
            "additionalProperties": false,
            "properties": {
                "decimalPlaces": {
                    "type": "number"
                },
                "prefix": {
                    "type": "string"
                },
                "style": {
                    "enum": ["none", "number", "short", "percent"],
                    "type": "string"
                },
                "suffix": {
                    "type": "string"
                }
            },
            "type": "object"
        },
        "ChartStyle": {
            "additionalProperties": false,
            "description": "Per-insight chart rendering style. Pure presentation — no field changes the computed values. Every field is optional; unset fields fall through to the app-level chart defaults.",
            "properties": {
                "curve": {
                    "description": "Line interpolation: straight segments or a smoothed curve through the points.",
                    "enum": ["linear", "smooth"],
                    "type": "string"
                },
                "seriesColorMode": {
                    "description": "How series are told apart: one color per series, or one color at stepped opacities.",
                    "enum": ["palette", "opacity"],
                    "type": "string"
                }
            },
            "type": "object"
        },
        "ClickhouseQueryProgress": {
            "additionalProperties": false,
            "properties": {
                "active_cpu_time": {
                    "$ref": "#/definitions/integer"
                },
                "bytes_read": {
                    "$ref": "#/definitions/integer"
                },
                "estimated_rows_total": {
                    "$ref": "#/definitions/integer"
                },
                "rows_read": {
                    "$ref": "#/definitions/integer"
                },
                "time_elapsed": {
                    "$ref": "#/definitions/integer"
                }
            },
            "required": ["bytes_read", "rows_read", "estimated_rows_total", "time_elapsed", "active_cpu_time"],
            "type": "object"
        },
        "ClientToolResultPayload": {
            "additionalProperties": false,
            "properties": {
                "action": {
                    "const": "client_tool_result",
                    "type": "string"
                },
                "result": {
                    "additionalProperties": {},
                    "description": "Result produced by the tool's client-side handler, returned verbatim to the tool awaiting it",
                    "type": "object"
                },
                "tool_call_id": {
                    "description": "Tool call id this result answers — echoed back so misdelivery fails loudly instead of silently",
                    "type": "string"
                }
            },
            "required": ["action", "result"],
            "type": "object"
        },
        "CohortPropertyFilter": {
            "additionalProperties": false,
            "description": "Sync with nodejs/src/types.ts",
            "properties": {
                "cohort_deleted": {
                    "description": "Set by the feature flag API when the cohort is deleted or does not exist.",
                    "type": "boolean"
                },
                "cohort_missing": {
                    "description": "Set by the feature flag API when the cohort does not exist, so it cannot be restored.",
                    "type": "boolean"
                },
                "cohort_name": {
                    "type": "string"
                },
                "key": {
                    "const": "id",
                    "type": "string"
                },
                "label": {
                    "type": "string"
                },
                "operator": {
                    "$ref": "#/definitions/PropertyOperator",
                    "default": "in"
                },
                "type": {
                    "const": "cohort",
                    "type": "string"
                },
                "value": {
                    "type": "integer"
                }
            },
            "required": ["key", "operator", "type", "value"],
            "type": "object"
        },
        "CompareFilter": {
            "additionalProperties": false,
            "properties": {
                "compare": {
                    "default": false,
                    "description": "Whether to compare the current date range to a previous date range.",
                    "type": "boolean"
                },
                "compare_to": {
                    "description": "The date range to compare to. The value is a relative date. Examples of relative dates are: `-1y` for 1 year ago, `-14m` for 14 months ago, `-100w` for 100 weeks ago, `-14d` for 14 days ago, `-30h` for 30 hours ago.",
                    "type": "string"
                }
            },
            "type": "object"
        },
        "ConditionalFormattingRule": {
            "additionalProperties": false,
            "properties": {
                "bytecode": {
                    "items": {},
                    "type": "array"
                },
                "color": {
                    "type": "string"
                },
                "colorMode": {
                    "enum": ["light", "dark"],
                    "type": "string"
                },
                "columnName": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "input": {
                    "type": "string"
                },
                "templateId": {
                    "type": "string"
                }
            },
            "required": ["id", "templateId", "columnName", "bytecode", "input", "color"],
            "type": "object"
        },
        "ContextMessage": {
            "additionalProperties": false,
            "properties": {
                "content": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "meta": {
                    "$ref": "#/definitions/ContextMessageMetadata"
                },
                "parent_tool_call_id": {
                    "type": "string"
                },
                "type": {
                    "const": "context",
                    "type": "string"
                }
            },
            "required": ["type", "content"],
            "type": "object"
        },
        "ContextMessageMetadata": {
            "anyOf": [
                {
                    "$ref": "#/definitions/ModeContext"
                },
                {
                    "type": "null"
                }
            ]
        },
        "ConversionGoalFilter": {
            "anyOf": [
                {
                    "additionalProperties": false,
                    "properties": {
                        "conversion_goal_id": {
                            "type": "string"
                        },
                        "conversion_goal_name": {
                            "type": "string"
                        },
                        "counts_as_customer": {
                            "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.",
                            "type": "boolean"
                        },
                        "counts_as_revenue": {
                            "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.",
                            "type": "boolean"
                        },
                        "custom_name": {
                            "type": "string"
                        },
                        "event": {
                            "description": "The event or `null` for all events.",
                            "type": ["string", "null"]
                        },
                        "fixedProperties": {
                            "description": "Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)",
                            "items": {
                                "$ref": "#/definitions/AnyPropertyFilter"
                            },
                            "type": "array"
                        },
                        "kind": {
                            "const": "EventsNode",
                            "type": "string"
                        },
                        "limit": {
                            "$ref": "#/definitions/integer"
                        },
                        "math": {
                            "$ref": "#/definitions/MathType"
                        },
                        "math_group_type_index": {
                            "enum": [0, 1, 2, 3, 4],
                            "type": "number"
                        },
                        "math_hogql": {
                            "type": "string"
                        },
                        "math_multiplier": {
                            "type": "number"
                        },
                        "math_property": {
                            "type": "string"
                        },
                        "math_property_revenue_currency": {
                            "$ref": "#/definitions/RevenueCurrencyPropertyConfig"
                        },
                        "math_property_type": {
                            "type": "string"
                        },
                        "name": {
                            "type": "string"
                        },
                        "optionalInFunnel": {
                            "type": "boolean"
                        },
                        "orderBy": {
                            "description": "Columns to order by",
                            "items": {
                                "type": "string"
                            },
                            "type": "array"
                        },
                        "properties": {
                            "description": "Properties configurable in the interface",
                            "items": {
                                "$ref": "#/definitions/AnyPropertyFilter"
                            },
                            "type": "array"
                        },
                        "response": {
                            "type": "object"
                        },
                        "schema_map": {
                            "$ref": "#/definitions/SchemaMap"
                        },
                        "version": {
                            "description": "version of the node, used for schema migrations",
                            "type": "number"
                        }
                    },
                    "required": ["conversion_goal_id", "conversion_goal_name", "kind", "schema_map"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "conversion_goal_id": {
                            "type": "string"
                        },
                        "conversion_goal_name": {
                            "type": "string"
                        },
                        "counts_as_customer": {
                            "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.",
                            "type": "boolean"
                        },
                        "counts_as_revenue": {
                            "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.",
                            "type": "boolean"
                        },
                        "custom_name": {
                            "type": "string"
                        },
                        "fixedProperties": {
                            "description": "Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)",
                            "items": {
                                "$ref": "#/definitions/AnyPropertyFilter"
                            },
                            "type": "array"
                        },
                        "id": {
                            "$ref": "#/definitions/integer"
                        },
                        "kind": {
                            "const": "ActionsNode",
                            "type": "string"
                        },
                        "math": {
                            "$ref": "#/definitions/MathType"
                        },
                        "math_group_type_index": {
                            "enum": [0, 1, 2, 3, 4],
                            "type": "number"
                        },
                        "math_hogql": {
                            "type": "string"
                        },
                        "math_multiplier": {
                            "type": "number"
                        },
                        "math_property": {
                            "type": "string"
                        },
                        "math_property_revenue_currency": {
                            "$ref": "#/definitions/RevenueCurrencyPropertyConfig"
                        },
                        "math_property_type": {
                            "type": "string"
                        },
                        "name": {
                            "type": "string"
                        },
                        "optionalInFunnel": {
                            "type": "boolean"
                        },
                        "properties": {
                            "description": "Properties configurable in the interface",
                            "items": {
                                "$ref": "#/definitions/AnyPropertyFilter"
                            },
                            "type": "array"
                        },
                        "response": {
                            "type": "object"
                        },
                        "schema_map": {
                            "$ref": "#/definitions/SchemaMap"
                        },
                        "version": {
                            "description": "version of the node, used for schema migrations",
                            "type": "number"
                        }
                    },
                    "required": ["conversion_goal_id", "conversion_goal_name", "id", "kind", "schema_map"],
                    "type": "object"
                },
                {
                    "additionalProperties": false,
                    "properties": {
                        "conversion_goal_id": {
                            "type": "string"
                        },
                        "conversion_goal_name": {
                            "type": "string"
                        },
                        "counts_as_customer": {
                            "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.",
                            "type": "boolean"
                        },
                        "counts_as_revenue": {
                            "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.",
                            "type": "boolean"
                        },
                        "custom_name": {
                            "type": "string"
                        },
                        "distinct_id_field": {
                            "type": "string"
                        },
                        "dw_source_type": {
                            "type": "string"
                        },
                        "fixedProperties": {
                            "description": "Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)",
                            "items": {
                                "$ref": "#/definitions/AnyPropertyFilter"
                            },
                            "type": "array"
                        },
                        "id": {
                            "type": "string"
                        },
                        "id_field": {
                            "type": "string"
                        },
                        "kind": {
                            "const": "DataWarehouseNode",
                            "type": "string"
                        },
                        "math": {
                            "$ref": "#/definitions/MathType"
                        },
                        "math_group_type_index": {
                            "enum": [0, 1, 2, 3, 4],
                            "type": "number"
                        },
                        "math_hogql": {
                            "type": "string"
                        },
                        "math_multiplier": {
                            "type": "number"
                        },
                        "math_property": {
                            "type": "string"
                        },
                        "math_property_revenue_currency": {
                            "$ref": "#/definitions/RevenueCurrencyPropertyConfig"
                        },
                        "math_property_type": {
                            "type": "string"
                        },
                        "name": {
                            "type": "string"
                        },
                        "optionalInFunnel": {
                            "type": "boolean"
                        },
                        "properties": {
                            "description": "Properties configurable in the interface",
                            "items": {
                                "$ref": "#/definitions/AnyPropertyFilter"
                            },
                            "type": "array"
                        },
                        "response": {
                            "type": "object"
                        },
                        "schema_map": {
                            "$ref": "#/definitions/SchemaMap"
                        },
                        "table_name": {
                            "type": "string"
                        },
                        "timestamp_field": {
                            "type": "string"
                        },
                        "version": {
                            "description": "version of the node, used for schema migrations",
                            "type": "number"
                        }
                    },
                    "required": [
                        "conversion_goal_id",
                        "conversion_goal_name",
                        "distinct_id_field",
                        "id",
                        "id_field",
                        "kind",
                        "schema_map",
                        "table_name",
                        "timestamp_field"
                    ],
                    "type": "object"
                }
            ]
        },
        "CoreEvent": {
            "additionalProperties": false,
            "description": "Unified core event stored in Team settings",
            "properties": {
                "category": {
                    "$ref": "#/definitions/CoreEventCategory",
                    "description": "Category (acquisition, activation, retention, referral, revenue)"
                },
                "description": {
                    "description": "Optional description",
                    "type": "string"
                },
                "filter": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/EventsNode"
                        },
                        {
                            "$ref": "#/definitions/ActionsNode"
                        },
                        {
                            "$ref": "#/definitions/DataWarehouseNode"
                        }
                    ],
                    "description": "Filter configuration - event, action, or data warehouse node (includes math support for sum, etc.)"
                },
                "id": {
                    "description": "Unique identifier",
                    "type": "string"
                },
                "name": {
                    "description": "Display name",
                    "type": "string"
                }
            },
            "required": ["id", "name", "category", "filter"],
            "type": "object"
        },
        "CoreEventCategory": {
            "description": "Category for core events (lifecycle stages)",
            "enum": [
                "acquisition",
                "activation",
                "monetization",
                "expansion",
                "referral",
                "retention",
                "churn",
                "reactivation"
            ],
            "type": "string"
        },
        "CountPerActorMathType": {
            "enum": [
                "avg_count_per_actor",
                "min_count_per_actor",
                "max_count_per_actor",
                "median_count_per_actor",
                "p75_count_per_actor",
                "p90_count_per_actor",
                "p95_count_per_actor",
                "p99_count_per_actor"
            ],
            "type": "string"
        },
        "CurrencyCode": {
            "enum": [
                "AED",
                "AFN",
                "ALL",
                "AMD",
                "ANG",
                "AOA",
                "ARS",
                "AUD",
                "AWG",
                "AZN",
                "BAM",
                "BBD",
                "BDT",
                "BGN",
                "BHD",
                "BIF",
                "BMD",
                "BND",
                "BOB",
                "BRL",
                "BSD",
                "BTC",
                "BTN",
                "BWP",
                "BYN",
                "BZD",
                "CAD",
                "CDF",
                "CHF",
                "CLP",
                "CNY",
                "COP",
                "CRC",
                "CVE",
                "CZK",
                "DJF",
                "DKK",
                "DOP",
                "DZD",
                "EGP",
                "ERN",
                "ETB",
                "EUR",
                "FJD",
                "GBP",
                "GEL",
                "GHS",
                "GIP",
                "GMD",
                "GNF",
                "GTQ",
                "GYD",
                "HKD",
                "HNL",
                "HRK",
                "HTG",
                "HUF",
                "IDR",
                "ILS",
                "INR",
                "IQD",
                "IRR",
                "ISK",
                "JMD",
                "JOD",
                "JPY",
                "KES",
                "KGS",
                "KHR",
                "KMF",
                "KRW",
                "KWD",
                "KYD",
                "KZT",
                "LAK",
                "LBP",
                "LKR",
                "LRD",
                "LTL",
                "LVL",
                "LSL",
                "LYD",
                "MAD",
                "MDL",
                "MGA",
                "MKD",
                "MMK",
                "MNT",
                "MOP",
                "MRU",
                "MTL",
                "MUR",
                "MVR",
                "MWK",
                "MXN",
                "MYR",
                "MZN",
                "NAD",
                "NGN",
                "NIO",
                "NOK",
                "NPR",
                "NZD",
                "OMR",
                "PAB",
                "PEN",
                "PGK",
                "PHP",
                "PKR",
                "PLN",
                "PYG",
                "QAR",
                "RON",
                "RSD",
                "RUB",
                "RWF",
                "SAR",
                "SBD",
                "SCR",
                "SDG",
                "SEK",
                "SGD",
                "SRD",
                "SSP",
                "STN",
                "SYP",
                "SZL",
                "THB",
                "TJS",
                "TMT",
                "TND",
                "TOP",
                "TRY",
                "TTD",
                "TWD",
                "TZS",
                "UAH",
                "UGX",
                "USD",
                "UYU",
                "UZS",
                "VES",
                "VND",
                "VUV",
                "WST",
                "XAF",
                "XCD",
                "XOF",
                "XPF",
                "YER",
                "ZAR",
                "ZMW"
            ],
            "type": "string"
        },
        "CustomBotCondition": {
            "additionalProperties": false,
            "description": "One condition of a project's bot rule.",
            "properties": {
                "id": {
                    "type": "string"
                },
                "key": {
                    "$ref": "#/definitions/CustomBotField",
                    "description": "The event property this condition reads."
                },
                "matcher": {
                    "$ref": "#/definitions/CustomBotMatcher"
                },
                "pattern": {
                    "description": "Matched against the property named by `key`.",
                    "type": "string"
                }
            },
            "required": ["key", "pattern", "matcher", "id"],
            "type": "object"
        },
        "CustomBotField": {
            "description": "The event properties a project's own bot rule can match on.",
            "enum": [
                "$raw_user_agent",
                "$ip",
                "$lib",
                "$host",
                "$pathname",
                "$current_url",
                "$browser",
                "$os",
                "$browser_language",
                "$screen_width",
                "$screen_height",
                "$geoip_country_code",
                "$referrer",
                "$referring_domain"
            ],
            "type": "string"
        },
        "CustomBotMatcher": {
            "enum": ["contains", "regex", "exact", "cidr"],
            "type": "string"
        },
        "CustomBotRule": {
            "additionalProperties": false,
            "description": "A bot a project defines itself, on top of PostHog's built-in bot list.",
            "properties": {
                "category": {
                    "description": "Reported by `$virt_traffic_category`. Defaults to `custom`.",
                    "type": "string"
                },
                "combiner": {
                    "$ref": "#/definitions/FilterLogicalOperator",
                    "description": "Whether every condition must match (AND) or any one of them (OR)."
                },
                "id": {
                    "type": "string"
                },
                "items": {
                    "items": {
                        "$ref": "#/definitions/CustomBotCondition"
                    },
                    "type": "array"
                },
                "name": {
                    "description": "Reported by `$virt_bot_name` and `$virt_bot_operator` when the rule matches.",
                    "type": "string"
                }
            },
            "required": ["name", "combiner", "items", "id"],
            "type": "object"
        },
        "CustomChannelCondition": {
            "additionalProperties": false,
            "properties": {
                "id": {
                    "type": "string"
                },
                "key": {
                    "$ref": "#/definitions/CustomChannelField"
                },
                "op": {
                    "$ref": "#/definitions/CustomChannelOperator"
                },
                "value": {
                    "anyOf": [
                        {
                            "type": "string"
                        },
                        {
                            "items": {
                                "type": "string"
                            },
                            "type": "array"
                        }
                    ]
                }
            },
            "required": ["key", "op", "id"],
            "type": "object"
        },
        "CustomChannelField": {
            "enum": ["utm_source", "utm_medium", "utm_campaign", "referring_domain", "url", "pathname", "hostname"],
            "type": "string"
        },
        "CustomChannelOperator": {
            "enum": ["exact", "is_not", "is_set", "is_not_set", "icontains", "not_icontains", "regex", "not_regex"],
            "type": "string"
        },
        "CustomChannelRule": {
            "additionalProperties": false,
            "properties": {
                "channel_type": {
                    "type": "string"
                },
                "combiner": {
                    "$ref": "#/definitions/FilterLogicalOperator"
                },
                "id": {
                    "type": "string"
                },
                "items": {
                    "items": {
                        "$ref": "#/definitions/CustomChannelCondition"
                    },
                    "type": "array"
                }
            },
            "required": ["items", "combiner", "channel_type", "id"],
            "type": "object"
        },
        "CustomEventConversionGoal": {
            "additionalProperties": false,
            "properties": {
                "customEventName": {
                    "type": "string"
                },
                "properties": {
                    "$ref": "#/definitions/WebAnalyticsPropertyFilters"
                }
            },
            "required": ["customEventName"],
            "type": "object"
        },
        "CustomerAnalyticsConfig": {
            "additionalProperties": false,
            "properties": {
                "account_group_type_index": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/integer"
                        },
                        {
                            "type": "null"
                        }
                    ]
                },
                "activity_event": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/EventsNode"
                        },
                        {
                            "$ref": "#/definitions/ActionsNode"
                        }
                    ]
                },
                "default_pinned_properties": {
                    "items": {
                        "$ref": "#/definitions/CustomerAnalyticsPinnedProperty"
                    },
                    "type": "array"
                },
                "payment_event": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/EventsNode"
                        },
                        {
                            "$ref": "#/definitions/ActionsNode"
                        }
                    ]
                },
                "signup_event": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/EventsNode"
                        },
                        {
                            "$ref": "#/definitions/ActionsNode"
                        }
                    ]
                },
                "signup_pageview_event": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/EventsNode"
                        },
                        {
                            "$ref": "#/definitions/ActionsNode"
                        }
                    ]
                },
                "subscription_event": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/EventsNode"
                        },
                        {
                            "$ref": "#/definitions/ActionsNode"
                        }
                    ]
                }
            },
            "required": [
                "activity_event",
                "signup_pageview_event",
                "signup_event",
                "subscription_event",
                "payment_event"
            ],
            "type": "object"
        },
        "CustomerAnalyticsPinnedProperty": {
            "additionalProperties": false,
            "properties": {
                "id": {
                    "type": "string"
                },
                "kind": {
                    "enum": ["custom_property", "relationship", "account_field"],
                    "type": "string"
                }
            },
            "required": ["kind", "id"],
            "type": "object"
        },
        "DangerousOperationResponse": {
            "additionalProperties": false,
            "description": "Response returned when a tool operation requires user approval",
            "properties": {
                "payload": {
                    "type": "object"
                },
                "preview": {
                    "type": "string"
                },
                "proposalId": {
                    "type": "string"
                },
                "status": {
                    "const": "pending_approval",
                    "type": "string"
                },
                "toolName": {
                    "type": "string"
                }
            },
            "required": ["status", "proposalId", "toolName", "preview", "payload"],
            "type": "object"
        },
        "DashboardAutoRefreshInterval": {
            "const": 1800,
            "type": "number"
        },
        "DashboardFilter": {
            "additionalProperties": false,
            "properties": {
                "breakdown_filter": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/BreakdownFilter"
                        },
                        {
                            "type": "null"
                        }
                    ]
                },
                "compareFilter": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/CompareFilter"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Period comparison forced onto every insight that supports one. Absent/null = inherit."
                },
                "date_from": {
                    "type": ["string", "null"]
                },
                "date_to": {
                    "type": ["string", "null"]
                },
                "explicitDate": {
                    "type": "boolean"
                },
                "filterTestAccounts": {
                    "description": "Tri-state test-account override. Null/absent = inherit; true = force on; false = force off.",
                    "type": ["boolean", "null"]
                },
                "interval": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/IntervalType"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Time granularity forced onto every insight that supports one. Absent/null = inherit."
                },
                "metricFilters": {
                    "anyOf": [
                        {
                            "items": {
                                "$ref": "#/definitions/MetricsQueryFilter"
                            },
                            "type": "array"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "deprecated": "Ignored. Kept so that dashboards saved with label filters still load."
                },
                "metricVariables": {
                    "anyOf": [
                        {
                            "items": {
                                "$ref": "#/definitions/MetricsDashboardVariable"
                            },
                            "type": "array"
                        },
                        {
                            "type": "null"
                        }
                    ],
                    "description": "Variables that metrics tiles refer to as `$name`. Other tiles ignore them."
                },
                "properties": {
                    "anyOf": [
                        {
                            "items": {
                                "$ref": "#/definitions/AnyPropertyFilter"
                            },
                            "type": "array"
                        },
                        {
                            "type": "null"
                        }
                    ]
                }
            },
            "type": "object"
        },
        "DataColorToken": {
            "enum": [
                "preset-1",
                "preset-2",
                "preset-3",
                "preset-4",
                "preset-5",
                "preset-6",
                "preset-7",
                "preset-8",
                "preset-9",
                "preset-10",
                "preset-11",
                "preset-12",
                "preset-13",
                "preset-14",
                "preset-15"
            ],
            "type": "string"
        },
        "DataTableNode": {
            "additionalProperties": false,
            "properties": {
                "allowSorting": {
                    "description": "Can the user click on column headers to sort the table? (default: true)",
                    "type": "boolean"
                },
                "columns": {
                    "description": "Columns shown in the table, unless the `source` provides them.",
                    "items": {
                        "$ref": "#/definitions/HogQLExpression"
                    },
                    "type": "array"
                },
                "context": {
                    "$ref": "#/definitions/DataTableNodeViewPropsContext",
                    "description": "Context for the table, used by components like ColumnConfigurator"
                },
                "contextKey": {
                    "description": "Context key for universal column configuration (e.g., \"survey:123\")",
                    "type": "string"
                },
                "defaultColumns": {
                    "description": "Default columns to use when resetting column configuration",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "embedded": {
                    "description": "Uses the embedded version of LemonTable",
                    "type": "boolean"
                },
                "expandable": {
                    "description": "Can expand row to show raw event data (default: true)",
                    "type": "boolean"
                },
                "full": {
                    "description": "Show with most visual options enabled. Used in scenes.",
                    "type": "boolean"
                },
                "hiddenColumns": {
                    "description": "Columns that aren't shown in the table, even if in columns or returned data",
                    "items": {
                        "$ref": "#/definitions/HogQLExpression"
                    },
                    "type": "array"
                },
                "kind": {
                    "const": "DataTableNode",
                    "type": "string"
                },
                "pinnedColumns": {
                    "description": "Columns that are sticky when scrolling horizontally",
                    "items": {
                        "$ref": "#/definitions/HogQLExpression"
                    },
                    "type": "array"
                },
                "propertiesViaUrl": {
                    "description": "Link properties via the URL (default: false)",
                    "type": "boolean"
                },
                "response": {
                    "anyOf": [
                        {
                            "properties": {},
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "columns": {
                                    "items": {},
                                    "type": "array"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hasMore": {
                                    "type": "boolean"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "limit": {
                                    "$ref": "#/definitions/integer"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "nextCursor": {
                                    "description": "Cursor for fetching the next page of results",
                                    "type": "string"
                                },
                                "offset": {
                                    "$ref": "#/definitions/integer"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "items": {
                                        "items": {},
                                        "type": "array"
                                    },
                                    "type": "array"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "types": {
                                    "items": {
                                        "type": "string"
                                    },
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["columns", "hogql", "results", "types"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "columns": {
                                    "items": {},
                                    "type": "array"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hasMore": {
                                    "type": "boolean"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "limit": {
                                    "$ref": "#/definitions/integer"
                                },
                                "missing_actors_count": {
                                    "$ref": "#/definitions/integer"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "offset": {
                                    "$ref": "#/definitions/integer"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "items": {
                                        "items": {},
                                        "type": "array"
                                    },
                                    "type": "array"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "types": {
                                    "items": {
                                        "type": "string"
                                    },
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["columns", "hogql", "limit", "offset", "results"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "columns": {
                                    "items": {},
                                    "type": "array"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hasMore": {
                                    "type": "boolean"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "kind": {
                                    "const": "GroupsQuery",
                                    "type": "string"
                                },
                                "limit": {
                                    "$ref": "#/definitions/integer"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "offset": {
                                    "$ref": "#/definitions/integer"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "items": {
                                        "items": {},
                                        "type": "array"
                                    },
                                    "type": "array"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "types": {
                                    "items": {
                                        "type": "string"
                                    },
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["columns", "hogql", "kind", "limit", "offset", "results", "types"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "clickhouse": {
                                    "description": "Executed ClickHouse query",
                                    "type": "string"
                                },
                                "column_formats": {
                                    "description": "Display formats for directly selected virtual properties, aligned with columns.",
                                    "items": {
                                        "type": ["string", "null"]
                                    },
                                    "type": "array"
                                },
                                "columns": {
                                    "description": "Returned columns",
                                    "items": {},
                                    "type": "array"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "explain": {
                                    "description": "Query explanation output",
                                    "items": {
                                        "type": "string"
                                    },
                                    "type": "array"
                                },
                                "hasMore": {
                                    "type": "boolean"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "limit": {
                                    "$ref": "#/definitions/integer"
                                },
                                "metadata": {
                                    "$ref": "#/definitions/HogQLMetadataResponse",
                                    "description": "Query metadata output"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "offset": {
                                    "$ref": "#/definitions/integer"
                                },
                                "query": {
                                    "description": "Input query string",
                                    "type": "string"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "items": {},
                                    "type": "array"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "types": {
                                    "description": "Types of returned columns",
                                    "items": {},
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["results"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "dateFrom": {
                                    "type": "string"
                                },
                                "dateTo": {
                                    "type": "string"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "preComputeIneligibleReason": {
                                    "description": "Why a live response skipped precompute: the eligibility-gate reason that refused it. Unset when the query was eligible.",
                                    "type": "string"
                                },
                                "preComputeStale": {
                                    "description": "Whether a lazy-precompute read was served from expired-within-grace (stale) jobs instead of recomputing inline.",
                                    "type": "boolean"
                                },
                                "preComputeStrategy": {
                                    "$ref": "#/definitions/WebAnalyticsPreComputeStrategy"
                                },
                                "preComputedAt": {
                                    "description": "When the oldest precomputed window this response used was computed. Unset for live responses.",
                                    "type": "string"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "items": {
                                        "$ref": "#/definitions/WebOverviewItem"
                                    },
                                    "type": "array"
                                },
                                "samplingRate": {
                                    "$ref": "#/definitions/SamplingRate"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["results"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "columns": {
                                    "items": {},
                                    "type": "array"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hasMore": {
                                    "type": "boolean"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "limit": {
                                    "$ref": "#/definitions/integer"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "offset": {
                                    "$ref": "#/definitions/integer"
                                },
                                "preComputeIneligibleReason": {
                                    "description": "Why a live response skipped precompute: the eligibility-gate reason that refused it. Unset when the query was eligible.",
                                    "type": "string"
                                },
                                "preComputeStale": {
                                    "description": "Whether a lazy-precompute read was served from expired-within-grace (stale) jobs instead of recomputing inline.",
                                    "type": "boolean"
                                },
                                "preComputeStrategy": {
                                    "$ref": "#/definitions/WebAnalyticsPreComputeStrategy"
                                },
                                "preComputedAt": {
                                    "description": "When the oldest precomputed window this response used was computed. Unset for live responses.",
                                    "type": "string"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "items": {},
                                    "type": "array"
                                },
                                "samplingRate": {
                                    "$ref": "#/definitions/SamplingRate"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "types": {
                                    "items": {},
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["results"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "columns": {
                                    "items": {},
                                    "type": "array"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hasMore": {
                                    "type": "boolean"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "limit": {
                                    "$ref": "#/definitions/integer"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "offset": {
                                    "$ref": "#/definitions/integer"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "items": {},
                                    "type": "array"
                                },
                                "samplingRate": {
                                    "$ref": "#/definitions/SamplingRate"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "types": {
                                    "items": {},
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["results"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "columns": {
                                    "items": {},
                                    "type": "array"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hasMore": {
                                    "type": "boolean"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "limit": {
                                    "$ref": "#/definitions/integer"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "offset": {
                                    "$ref": "#/definitions/integer"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "items": {},
                                    "type": "array"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "types": {
                                    "items": {},
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["results"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "columns": {
                                    "items": {},
                                    "type": "array"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hasMore": {
                                    "type": "boolean"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "limit": {
                                    "$ref": "#/definitions/integer"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "offset": {
                                    "$ref": "#/definitions/integer"
                                },
                                "preComputeIneligibleReason": {
                                    "description": "Why a live response skipped precompute: the eligibility-gate reason that refused it. Unset when the query was eligible.",
                                    "type": "string"
                                },
                                "preComputeStale": {
                                    "description": "Whether a lazy-precompute read was served from expired-within-grace (stale) jobs instead of recomputing inline.",
                                    "type": "boolean"
                                },
                                "preComputeStrategy": {
                                    "$ref": "#/definitions/WebAnalyticsPreComputeStrategy"
                                },
                                "preComputedAt": {
                                    "description": "When the oldest precomputed window this response used was computed. Unset for live responses.",
                                    "type": "string"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "items": {},
                                    "type": "array"
                                },
                                "samplingRate": {
                                    "$ref": "#/definitions/SamplingRate"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "types": {
                                    "items": {},
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["results"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "preComputeIneligibleReason": {
                                    "description": "Why a live response skipped precompute: the eligibility-gate reason that refused it. Unset when the query was eligible.",
                                    "type": "string"
                                },
                                "preComputeStale": {
                                    "description": "Whether a lazy-precompute read was served from expired-within-grace (stale) jobs instead of recomputing inline.",
                                    "type": "boolean"
                                },
                                "preComputeStrategy": {
                                    "$ref": "#/definitions/WebAnalyticsPreComputeStrategy"
                                },
                                "preComputedAt": {
                                    "description": "When the oldest precomputed window this response used was computed. Unset for live responses.",
                                    "type": "string"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "items": {
                                        "$ref": "#/definitions/WebVitalsPathBreakdownResult"
                                    },
                                    "maxItems": 1,
                                    "minItems": 1,
                                    "type": "array"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["results"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "columns": {
                                    "items": {},
                                    "type": "array"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hasMore": {
                                    "type": "boolean"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "limit": {
                                    "$ref": "#/definitions/integer"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "offset": {
                                    "$ref": "#/definitions/integer"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {},
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "types": {
                                    "items": {},
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["results"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "columns": {
                                    "items": {},
                                    "type": "array"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hasMore": {
                                    "type": "boolean"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "limit": {
                                    "$ref": "#/definitions/integer"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "offset": {
                                    "$ref": "#/definitions/integer"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "items": {
                                        "items": {},
                                        "type": "array"
                                    },
                                    "type": "array"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "types": {
                                    "items": {
                                        "type": "string"
                                    },
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["columns", "hogql", "results", "types"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "columns": {
                                    "items": {},
                                    "type": "array"
                                },
                                "dataComputedAt": {
                                    "description": "ISO timestamp of the oldest precompute window backing this result.",
                                    "type": "string"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hasMore": {
                                    "type": "boolean"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "latestDayComputedAt": {
                                    "description": "ISO timestamp of when the numbers for the most recent day in the range were computed, at this time or later. It is the oldest stamp among the precompute windows that hold that day, across costs and conversion goals. Unset when no precompute was read or a window has no stamp.",
                                    "type": "string"
                                },
                                "limit": {
                                    "$ref": "#/definitions/integer"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "offset": {
                                    "$ref": "#/definitions/integer"
                                },
                                "precomputeNotReady": {
                                    "description": "True when a conversion goal's precompute has not been warmed for this window yet — the UI shows a \"computing\" state rather than empty results. Marketing analytics serves exclusively from precompute.",
                                    "type": "boolean"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "items": {
                                        "items": {
                                            "$ref": "#/definitions/MarketingAnalyticsItem"
                                        },
                                        "type": "array"
                                    },
                                    "type": "array"
                                },
                                "samplingRate": {
                                    "$ref": "#/definitions/SamplingRate"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "types": {
                                    "items": {},
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["results"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "dataComputedAt": {
                                    "description": "ISO timestamp of the oldest precompute window backing this result.",
                                    "type": "string"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "latestDayComputedAt": {
                                    "description": "ISO timestamp of when the numbers for the most recent day in the range were computed, at this time or later. It is the oldest stamp among the precompute windows that hold that day, across costs and conversion goals. Unset when no precompute was read or a window has no stamp.",
                                    "type": "string"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "precomputeNotReady": {
                                    "description": "True when a conversion goal's precompute has not been warmed for this window yet — the UI shows a \"computing\" state rather than empty results. Marketing analytics serves exclusively from precompute.",
                                    "type": "boolean"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "additionalProperties": {
                                        "$ref": "#/definitions/MarketingAnalyticsItem"
                                    },
                                    "type": "object"
                                },
                                "samplingRate": {
                                    "$ref": "#/definitions/SamplingRate"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["results"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "columns": {
                                    "items": {
                                        "type": "string"
                                    },
                                    "type": "array"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hasMore": {
                                    "type": "boolean"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "limit": {
                                    "$ref": "#/definitions/integer"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "offset": {
                                    "$ref": "#/definitions/integer"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "items": {
                                        "$ref": "#/definitions/ErrorTrackingIssue"
                                    },
                                    "type": "array"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["results"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "columns": {
                                    "items": {
                                        "type": "string"
                                    },
                                    "type": "array"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hasMore": {
                                    "type": "boolean"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "limit": {
                                    "$ref": "#/definitions/integer"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "offset": {
                                    "$ref": "#/definitions/integer"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "items": {
                                        "$ref": "#/definitions/ErrorTrackingCorrelatedIssue"
                                    },
                                    "type": "array"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["results"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "columns": {
                                    "items": {
                                        "type": "string"
                                    },
                                    "type": "array"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hasMore": {
                                    "type": "boolean"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "limit": {
                                    "$ref": "#/definitions/integer"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "offset": {
                                    "$ref": "#/definitions/integer"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "items": {
                                        "$ref": "#/definitions/LLMTrace"
                                    },
                                    "type": "array"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["results"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "columns": {
                                    "items": {
                                        "type": "string"
                                    },
                                    "type": "array"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hasMore": {
                                    "type": "boolean"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "limit": {
                                    "$ref": "#/definitions/integer"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "offset": {
                                    "$ref": "#/definitions/integer"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "items": {
                                        "$ref": "#/definitions/LLMTrace"
                                    },
                                    "type": "array"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["results"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "columns": {
                                    "items": {},
                                    "type": "array"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hasMore": {
                                    "type": "boolean"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "limit": {
                                    "$ref": "#/definitions/integer"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "offset": {
                                    "$ref": "#/definitions/integer"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "items": {},
                                    "type": "array"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "types": {
                                    "items": {},
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["results"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "columns": {
                                    "items": {},
                                    "type": "array"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hasMore": {
                                    "type": "boolean"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "kind": {
                                    "const": "AccountsQuery",
                                    "type": "string"
                                },
                                "limit": {
                                    "$ref": "#/definitions/integer"
                                },
                                "metricsResults": {
                                    "description": "When `metrics` is set on the query, the aggregated values in the same order.",
                                    "items": {
                                        "type": ["number", "null"]
                                    },
                                    "type": "array"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "offset": {
                                    "$ref": "#/definitions/integer"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "items": {
                                        "items": {},
                                        "type": "array"
                                    },
                                    "type": "array"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "types": {
                                    "items": {
                                        "type": "string"
                                    },
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["columns", "hogql", "kind", "limit", "offset", "results", "types"],
                            "type": "object"
                        },
                        {
                            "additionalProperties": false,
                            "properties": {
                                "columns": {
                                    "items": {
                                        "$ref": "#/definitions/AccountsTableResolvedColumn"
                                    },
                                    "type": "array"
                                },
                                "customPropertyDefinitions": {
                                    "items": {
                                        "$ref": "#/definitions/AccountsTableCustomPropertyDefinition"
                                    },
                                    "type": "array"
                                },
                                "error": {
                                    "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
                                    "type": "string"
                                },
                                "hasMore": {
                                    "type": "boolean"
                                },
                                "hogql": {
                                    "description": "Generated HogQL query.",
                                    "type": "string"
                                },
                                "kind": {
                                    "const": "AccountsTableQuery",
                                    "type": "string"
                                },
                                "limit": {
                                    "$ref": "#/definitions/integer"
                                },
                                "metricsResults": {
                                    "description": "Aggregated values in the same order as the requested metrics.",
                                    "items": {
                                        "type": ["number", "null"]
                                    },
                                    "type": "array"
                                },
                                "modifiers": {
                                    "$ref": "#/definitions/HogQLQueryModifiers",
                                    "description": "Modifiers used when performing the query"
                                },
                                "offset": {
                                    "$ref": "#/definitions/integer"
                                },
                                "query_status": {
                                    "$ref": "#/definitions/QueryStatus",
                                    "description": "Query status indicates whether next to the provided data, a query is still running."
                                },
                                "relationshipDefinitions": {
                                    "items": {
                                        "$ref": "#/definitions/AccountsTableRelationshipDefinition"
                                    },
                                    "type": "array"
                                },
                                "resolved_compare_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The resolved previous/comparison period date range, when comparing against another period"
                                },
                                "resolved_date_range": {
                                    "$ref": "#/definitions/ResolvedDateRangeResponse",
                                    "description": "The date range used for the query"
                                },
                                "results": {
                                    "items": {
                                        "$ref": "#/definitions/AccountsTableRow"
                                    },
                                    "type": "array"
                                },
                                "timings": {
                                    "description": "Measured timings for different parts of the query generation process",
                                    "items": {
                                        "$ref": "#/definitions/QueryTiming"
                                    },
                                    "type": "array"
                                },
                                "used_data_warehouse_sources": {
                                    "description": "Connector-synced data warehouse sources referenced by this query, if any.",
                                    "items": {
                                        "$ref": "#/definitions/DataWarehouseSourceUsage"
                                    },
                                    "type": "array"
                                },
                                "warnings": {
                                    "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, and a breakdown warning when the query ran without its requested breakdown.",
                                    "items": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/definitions/DataWarehouseSyncWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/AccessControlFilterWarning"
                                            },
                                            {
                                                "$ref": "#/definitions/BreakdownNotAppliedWarning"
                                            }
                                        ]
                                    },
                                    "type": "array"
                                }
                            },
                            "required": ["hasMore", "kind", "limit", "offset", "results"],
                            "type": "object"
                        }
                    ]
                },
                "showAbsoluteTime": {
                    "description": "Render date-time columns (timestamp, created_at, last_seen, last_seen_at, session_start, session_end) as absolute date+time instead of relative (\"X ago\"). The toggle is exposed in the column header menu only on EventsQuery / ActorsQuery sources.",
                    "type": "boolean"
                },
                "showActions": {
                    "description": "Show the kebab menu at the end of the row",
                    "type": "boolean"
                },
                "showColumnConfigurator": {
                    "description": "Show a button to configure the table's columns if possible",
                    "type": "boolean"
                },
                "showCount": {
                    "description": "Show count of total and filtered results",
                    "type": "boolean"
                },
                "showDateRange": {
                    "description": "Show date range selector",
                    "type": "boolean"
                },
                "showElapsedTime": {
                    "description": "Show the time it takes to run a query",
                    "type": "boolean"
                },
                "showEventFilter": {
                    "description": "Include an event filter above the table (EventsNode only)",
                    "type": "boolean"
                },
                "showEventsFilter": {
                    "description": "Include an events filter above the table to filter by multiple events (EventsQuery only)",
                    "type": "boolean"
                },
                "showExport": {
                    "description": "Show the export button",
                    "type": "boolean"
                },
                "showHogQLEditor": {
                    "description": "Include a HogQL query editor above HogQL tables",
                    "type": "boolean"
                },
                "showOpenEditorButton": {
                    "description": "Show a button to open the current query as a new insight. (default: true)",
                    "type": "boolean"
                },
                "showPersistentColumnConfigurator": {
                    "description": "Show a button to configure and persist the table's default columns if possible",
                    "type": "boolean"
                },
                "showPropertyFilter": {
                    "anyOf": [
                        {
                            "type": "boolean"
                        },
                        {
                            "items": {
                                "$ref": "#/definitions/TaxonomicFilterGroupType"
                            },
                            "type": "array"
                        }
                    ],
                    "description": "Include a property filter above the table"
                },
                "showRecordingColumn": {
                    "description": "Show a recording column for events with session recordings",
                    "type": "boolean"
                },
                "showReload": {
                    "description": "Show a reload button",
                    "type": "boolean"
                },
                "showResultsTable": {
                    "description": "Show a results table",
                    "type": "boolean"
                },
                "showSavedFilters": {
                    "description": "Show saved filters feature for this table (requires uniqueKey)",
                    "type": "boolean"
                },
                "showSavedQueries": {
                    "description": "Shows a list of saved queries",
                    "type": "boolean"
                },
                "showSearch": {
                    "description": "Include a free text search field (PersonsNode only)",
                    "type": "boolean"
                },
                "showSourceQueryOptions": {
                    "description": "Show actors query options and back to source",
                    "type": "boolean"
                },
                "showTableViews": {
                    "description": "Show table views feature for this table (requires uniqueKey)",
                    "type": "boolean"
                },
                "showTestAccountFilters": {
                    "description": "Show filter to exclude test accounts",
                    "type": "boolean"
                },
                "showTimings": {
                    "description": "Show a detailed query timing breakdown",
                    "type": "boolean"
                },
                "source": {
                    "$ref": "#/definitions/DataTableNodeSource",
                    "description": "Source of the events"
                },
                "tags": {
                    "$ref": "#/definitions/QueryLogTags"
                },
                "version": {
                    "description": "version of the node, used for schema migrations",
                    "type": "number"
                }
            },
            "required": ["kind", "source"],
            "type": "object"
        },
        "DataTableNodeSource": {
            "$ref": "#/definitions/DataTableNodeSourceUnion"
        },
        "DataTableNodeSourceUnion": {
            "discriminator": {
                "propertyName": "kind"
            },
            "oneOf": [
                {
                    "$ref": "#/definitions/EventsNode"
                },
                {
                    "$ref": "#/definitions/EventsQuery"
                },
                {
                    "$ref": "#/definitions/PersonsNode"
                },
                {
                    "$ref": "#/definitions/ActorsQuery"
                },
                {
                    "$ref": "#/definitions/GroupsQuery"
                },
                {
                    "$ref": "#/definitions/HogQLQuery"
                },
                {
                    "$ref": "#/definitions/WebOverviewQuery"
                },
                {
                    "$ref": "#/definitions/WebStatsTableQuery"
                },
                {
                    "$ref": "#/definitions/WebExternalClicksTableQuery"
                },
                {
                    "$ref": "#/definitions/WebBotsTableQuery"
                },
                {
                    "$ref": "#/definitions/WebGoalsQuery"
                },
                {
                    "$ref": "#/definitions/WebVitalsQuery"
                },
                {
                    "$ref": "#/definitions/WebVitalsPathBreakdownQuery"
                },
                {
                    "$ref": "#/definitions/SessionAttributionExplorerQuery"
                },
                {
                    "$ref": "#/definitions/SessionsQuery"
                },
                {
                    "$ref": "#/definitions/MarketingAnalyticsTableQuery"
                },
                {
                    "$ref": "#/definitions/MarketingAnalyticsAggregatedQuery"
                },
                {
                    "$ref": "#/definitions/ErrorTrackingQuery"
                },
                {
                    "$ref": "#/definitions/ErrorTrackingIssueCorrelationQuery"
                },
                {
                    "$ref": "#/definitions/TracesQuery"
                },
                {
                    "$ref": "#/definitions/TraceQuery"
                },
                {
                    "$ref": "#/definitions/SessionQuery"
                },
                {
                    "$ref": "#/definitions/EndpointsUsageTableQuery"
                },
                {
                    "$ref": "#/definitions/AccountsQuery"
                },
                {
                    "$ref": "#/definitions/AccountsTableQuery"
                }
            ],
            "required": ["kind"],
            "type": "object"
        },
        "DataTableNodeViewPropsContext": {
            "additionalProperties": false,
            "properties": {
                "eventDefinitionId": {
                    "type": "string"
                },
                "type": {
                    "$ref": "#/definitions/DataTableNodeViewPropsContextType"
                }
            },
            "required": ["type"],
            "type": "object"
        },
        "DataTableNodeViewPropsContextType": {
            "enum": ["event_definition", "team_columns"],
            "type": "string"
        },
        "DataVisualizationNode": {
            "additionalProperties": false,
            "properties": {
                "chartSettings": {
                    "$ref": "#/definitions/ChartSettings"
                },
                "display": {
                    "$ref": "#/definitions/ChartDisplayType"
                },
                "kind": {
                    "const": "DataVisualizationNode",
                    "type": "string"
                },
                "source": {
                    "$ref": "#/definitions/HogQLQuery"
                },
                "tableSettings": {
                    "$ref": "#/definitions/TableSettings"
                },
                "version": {
                    "description": "version of the node, used for schema migrations",
                    "type": "number"
                }
            },
            "required": ["kind", "source"],
            "type": "object"
        },
        "DataWarehouseEventsModifier": {
            "additionalProperties": false,
            "properties": {
                "distinct_id_field": {
                    "type": "string"
                },
                "id_field": {
                    "type": "string"
                },
                "table_name": {
                    "type": "string"
                },
                "timestamp_field": {
                    "type": "string"
                }
            },
            "required": ["table_name", "timestamp_field", "distinct_id_field", "id_field"],
            "type": "object"
        },
        "DataWarehouseManagedViewsetKind": {
            "const": "revenue_analytics",
            "type": "string"
        },
        "DataWarehouseNode": {
            "additionalProperties": false,
            "properties": {
                "custom_name": {
                    "type": "string"
                },
                "distinct_id_field": {
                    "type": "string"
                },
                "dw_source_type": {
                    "type": "string"
                },
                "fixedProperties": {
                    "description": "Fixed properties in the query, can't be edited in the interface (e.g. scoping down by person)",
                    "items": {
                        "$ref": "#/definitions/AnyPropertyFilter"
                    },
                    "type": "array"
                },
                "id": {
                    "type": "string"
                },
                "id_field": {
                    "type": "string"
                },
                "kind": {
                    "const": "DataWarehouseNode",
                    "type": "string"
                },
                "math": {
                    "$ref": "#/definitions/MathType"
                },
                "math_group_type_index": {
                    "enum": [0, 1, 2, 3, 4],
                    "type": "number"
                },
                "math_hogql": {
                    "type": "string"
                },
                "math_multiplier": {
                    "type": "number"
                },
                "math_property": {
                    "type": "string"
                },
                "math_property_revenue_currency": {
                    "$ref": "#/definitions/RevenueCurrencyPropertyConfig"
                },
                "math_property_type": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "optionalInFunnel": {
                    "type": "boolean"
                },
                "properties": {
                    "description": "Properties configurable in the interface",
                    "items": {
                        "$ref": "#/definitions/AnyPropertyFilter"
                    },
                    "type": "array"
                },
                "response": {
                    "type": "object"
                },
                "table_name": {
                    "type": "string"
                },
                "timestamp_field": {
                    "type": "string"
                },
                "version": {
                    "description": "version of the node, used for schema migrations",
                    "type": "number"
                }
            },
            "required": ["distinct_id_field", "id", "id_field", "kind", "table_name", "timestamp_field"],
            "type": "object"
        },
        "DataWarehousePersonPropertyFilter": {
            "additionalProperties": false,
            "properties": {
                "key": {
                    "type": "string"
                },
                "label": {
                    "type": "string"
                },
                "operator": {
                    "$ref": "#/definitions/PropertyOperator"
                },
                "type": {
                    "const": "data_warehouse_person_property",
                    "type": "string"
                },
                "value": {
                    "$ref": "#/definitions/PropertyFilterValue"
                }
            },
            "required": ["key", "operator", "type"],
            "type": "object"
        },
        "DataWarehousePropertyFilter": {
            "additionalProperties": false,
            "properties": {
                "key": {
                    "type": "string"
                },
                "label": {
                    "type": "string"
                },
                "operator": {
                    "$ref": "#/definitions/PropertyOperator"
                },
                "type": {
                    "const": "data_warehouse",
                    "type": "string"
                },
                "value": {
                    "$ref": "#/definitions/PropertyFilterValue"
                }
            },
            "required": ["key", "operator", "type"],
            "type": "object"
        },
        "DataWarehouseSavedQueryOrigin": {
            "enum": ["data_warehouse", "endpoint", "managed_viewset"],
            "type": "string"
        },
        "DataWarehouseSourceUsage": {
            "additionalProperties": false,
            "description": "A connector-synced data warehouse source referenced by a query.",
            "properties": {
                "id": {
                    "description": "ExternalDataSource id",
                    "type": "string"
                },
                "source_type": {
                    "description": "Connector type of the source (e.g. Stripe, Postgres), if known",
                    "type": "string"
                },
                "table_name": {
                    "description": "Warehouse table name that was referenced",
                    "type": "string"
                },
                "uses_history_table": {
                    "description": "Whether the query read a history table of this source",
                    "type": "boolean"
                }
            },
            "required": ["id", "table_name"],
            "type": "object"
        },
        "DataWarehouseSyncWarning": {
            "additionalProperties": false,
            "properties": {
                "data_is_current": {
                    "description": "True when the last sync is still within the table's sync interval, so the data is current and the warning only says it will stop updating (a sync paused recently). False or absent when the data is out of date.",
                    "type": "boolean"
                },
                "message": {
                    "description": "Human-readable warning shown to the user",
                    "type": "string"
                },
                "schema_name": {
                    "description": "Name of the ExternalDataSchema responsible for syncing the table",
                    "type": "string"
                },
                "source_id": {
                    "description": "ID of the ExternalDataSource, used to link to its management page. Null for self-managed tables.",
                    "type": ["string", "null"]
                },
                "source_type": {
                    "description": "Source type, e.g. \"Stripe\", \"Hubspot\"",
                    "type": "string"
                },
                "status": {
                    "description": "Sync status that triggered the warning, e.g. \"Failed\", \"Paused\", \"BillingLimitReached\"",
                    "type": "string"
                },
                "table_name": {
                    "description": "Name of the warehouse table the warning refers to",
                    "type": "string"
                },
                "type": {
                    "const": "warehouse_sync",
                    "description": "Tells warning kinds apart in the shared `warnings` list",
                    "type": "string"
                }
            },
            "required": ["type", "table_name", "schema_name", "source_type", "status", "message"],
            "type": "object"
        },
        "DataWarehouseViewLink": {
            "additionalProperties": false,
            "properties": {
                "created_at": {
                    "type": ["string", "null"]
                },
                "created_by": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/UserBasicType"
                        },
                        {
                            "type": "null"
                        }
                    ]
                },
                "field_name": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "joining_table_key": {
                    "type": "string"
                },
                "joining_table_name": {
                    "type": "string"
                },
                "source_table_key": {
                    "type": "string"
                },
                "source_table_name": {
                    "type": "string"
                }
            },
            "required": ["id"],
            "type": "object"
        },
        "DatabaseSchemaBatchExportTable": {
            "additionalProperties": false,
            "properties": {
                "certification": {
                    "$ref": "#/definitions/DatabaseSchemaTableCertification",
                    "description": "Present only when the table or view carries a settled data catalog certification."
                },
                "fields": {
                    "additionalProperties": {
                        "$ref": "#/definitions/DatabaseSchemaField"
                    },
                    "type": "object"
                },
                "id": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "row_count": {
                    "type": "number"
                },
                "type": {
                    "const": "batch_export",
                    "type": "string"
                }
            },
            "required": ["fields", "id", "name", "type"],
            "type": "object"
        },
        "DatabaseSchemaDataWarehouseTable": {
            "additionalProperties": false,
            "properties": {
                "certification": {
                    "$ref": "#/definitions/DatabaseSchemaTableCertification",
                    "description": "Present only when the table or view carries a settled data catalog certification."
                },
                "fields": {
                    "additionalProperties": {
                        "$ref": "#/definitions/DatabaseSchemaField"
                    },
                    "type": "object"
                },
                "format": {
                    "description": "Absent for a dual-mode source's virtual tables, which have no synced S3 backing.",
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "row_count": {
                    "type": "number"
                },
                "schema": {
                    "$ref": "#/definitions/DatabaseSchemaSchema"
                },
                "search_aliases": {
                    "description": "Alternate names the table is queryable by (e.g. the flat underscore form), in addition to `name`.",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "source": {
                    "$ref": "#/definitions/DatabaseSchemaSource"
                },
                "type": {
                    "const": "data_warehouse",
                    "type": "string"
                },
                "url_pattern": {
                    "description": "Absent for a dual-mode source's virtual tables, which have no synced S3 backing.",
                    "type": "string"
                }
            },
            "required": ["fields", "id", "name", "type"],
            "type": "object"
        },
        "DatabaseSchemaEndpointTable": {
            "additionalProperties": false,
            "properties": {
                "certification": {
                    "$ref": "#/definitions/DatabaseSchemaTableCertification",
                    "description": "Present only when the table or view carries a settled data catalog certification."
                },
                "fields": {
                    "additionalProperties": {
                        "$ref": "#/definitions/DatabaseSchemaField"
                    },
                    "type": "object"
                },
                "id": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "query": {
                    "$ref": "#/definitions/HogQLQuery"
                },
                "row_count": {
                    "type": "number"
                },
                "status": {
                    "type": "string"
                },
                "type": {
                    "const": "endpoint",
                    "type": "string"
                }
            },
            "required": ["fields", "id", "name", "query", "type"],
            "type": "object"
        },
        "DatabaseSchemaField": {
            "additionalProperties": false,
            "properties": {
                "chain": {
                    "items": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "$ref": "#/definitions/integer"
                            }
                        ]
                    },
                    "type": "array"
                },
                "fields": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "hogql_value": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "schema_valid": {
                    "type": "boolean"
                },
                "table": {
                    "type": "string"
                },
                "type": {
                    "$ref": "#/definitions/DatabaseSerializedFieldType"
                }
            },
            "required": ["name", "hogql_value", "type", "schema_valid"],
            "type": "object"
        },
        "DatabaseSchemaManagedViewTable": {
            "additionalProperties": false,
            "properties": {
                "certification": {
                    "$ref": "#/definitions/DatabaseSchemaTableCertification",
                    "description": "Present only when the table or view carries a settled data catalog certification."
                },
                "fields": {
                    "additionalProperties": {
                        "$ref": "#/definitions/DatabaseSchemaField"
                    },
                    "type": "object"
                },
                "id": {
                    "type": "string"
                },
                "kind": {
                    "$ref": "#/definitions/DatabaseSchemaManagedViewTableKind"
                },
                "name": {
                    "type": "string"
                },
                "query": {
                    "$ref": "#/definitions/HogQLQuery"
                },
                "row_count": {
                    "type": "number"
                },
                "source_id": {
                    "type": "string"
                },
                "type": {
                    "const": "managed_view",
                    "type": "string"
                }
            },
            "required": ["fields", "id", "kind", "name", "query", "type"],
            "type": "object"
        },
        "DatabaseSchemaManagedViewTableKind": {
            "enum": [
                "revenue_analytics_charge",
                "revenue_analytics_customer",
                "revenue_analytics_mrr",
                "revenue_analytics_product",
                "revenue_analytics_revenue_item",
                "revenue_analytics_subscription"
            ],
            "type": "string"
        },
        "DatabaseSchemaMaterializedViewTable": {
            "additionalProperties": false,
            "properties": {
                "certification": {
                    "$ref": "#/definitions/DatabaseSchemaTableCertification",
                    "description": "Present only when the table or view carries a settled data catalog certification."
                },
                "fields": {
                    "additionalProperties": {
                        "$ref": "#/definitions/DatabaseSchemaField"
                    },
                    "type": "object"
                },
                "id": {
                    "type": "string"
                },
                "last_run_at": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "query": {
                    "$ref": "#/definitions/HogQLQuery"
                },
                "row_count": {
                    "type": "number"
                },
                "status": {
                    "type": "string"
                },
                "type": {
                    "const": "materialized_view",
                    "type": "string"
                }
            },
            "required": ["fields", "id", "name", "query", "type"],
            "type": "object"
        },
        "DatabaseSchemaPostHogTable": {
            "additionalProperties": false,
            "properties": {
                "certification": {
                    "$ref": "#/definitions/DatabaseSchemaTableCertification",
                    "description": "Present only when the table or view carries a settled data catalog certification."
                },
                "fields": {
                    "additionalProperties": {
                        "$ref": "#/definitions/DatabaseSchemaField"
                    },
                    "type": "object"
                },
                "id": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "row_count": {
                    "type": "number"
                },
                "type": {
                    "const": "posthog",
                    "type": "string"
                }
            },
            "required": ["fields", "id", "name", "type"],
            "type": "object"
        },
        "DatabaseSchemaQuery": {
            "additionalProperties": false,
            "properties": {
                "connectionId": {
                    "description": "Optional direct external data source id for schema introspection",
                    "type": "string"
                },
                "executionTarget": {
                    "description": "Select the native managed Trino catalog instead of the default PostHog catalog.",
                    "enum": ["default", "managed_trino"],
                    "type": "string"
                },
                "includeFields": {
                    "description": "When false, skip serializing each table's fields (`fields` comes back empty). Defaults to true.",
                    "type": "boolean"
                },
                "kind": {
                    "const": "DatabaseSchemaQuery",
                    "type": "string"
                },
                "modifiers": {
                    "$ref": "#/definitions/HogQLQueryModifiers",
                    "description": "Modifiers used when performing the query"
                },
                "response": {
                    "$ref": "#/definitions/DatabaseSchemaQueryResponse"
                },
                "tables": {
                    "description": "Only serialize these tables (keys as returned in the response, e.g. `events` or `zendesk.groups`). Omit for all tables.",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "tags": {
                    "$ref": "#/definitions/QueryLogTags"
                },
                "version": {
                    "description": "version of the node, used for schema migrations",
                    "type": "number"
                }
            },
            "required": ["kind"],
            "type": "object"
        },
        "DatabaseSchemaQueryResponse": {
            "additionalProperties": false,
            "properties": {
                "joins": {
                    "items": {
                        "$ref": "#/definitions/DataWarehouseViewLink"
                    },
                    "type": "array"
                },
                "tables": {
                    "additionalProperties": {
                        "$ref": "#/definitions/DatabaseSchemaTable"
                    },
                    "type": "object"
                }
            },
            "required": ["tables", "joins"],
            "type": "object"
        },
        "DatabaseSchemaSchema": {
            "additionalProperties": false,
            "properties": {
                "id": {
                    "type": "string"
                },
                "incremental": {
                    "type": "boolean"
                },
                "last_synced_at": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "should_sync": {
                    "type": "boolean"
                },
                "status": {
                    "type": "string"
                }
            },
            "required": ["id", "name", "should_sync", "incremental"],
            "type": "object"
        },
        "DatabaseSchemaSource": {
            "additionalProperties": false,
            "properties": {
                "access_method": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "last_synced_at": {
                    "type": "string"
                },
                "prefix": {
                    "type": "string"
                },
                "source_type": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                }
            },
            "required": ["id", "status", "source_type", "prefix"],
            "type": "object"
        },
        "DatabaseSchemaSystemTable": {
            "additionalProperties": false,
            "properties": {
                "certification": {
                    "$ref": "#/definitions/DatabaseSchemaTableCertification",
                    "description": "Present only when the table or view carries a settled data catalog certification."
                },
                "fields": {
                    "additionalProperties": {
                        "$ref": "#/definitions/DatabaseSchemaField"
                    },
                    "type": "object"
                },
                "id": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "row_count": {
                    "type": "number"
                },
                "type": {
                    "const": "system",
                    "type": "string"
                }
            },
            "required": ["fields", "id", "name", "type"],
            "type": "object"
        },
        "DatabaseSchemaTable": {
            "anyOf": [
                {
                    "$ref": "#/definitions/DatabaseSchemaPostHogTable"
                },
                {
                    "$ref": "#/definitions/DatabaseSchemaSystemTable"
                },
                {
                    "$ref": "#/definitions/DatabaseSchemaDataWarehouseTable"
                },
                {
                    "$ref": "#/definitions/DatabaseSchemaViewTable"
                },
                {
                    "$ref": "#/definitions/DatabaseSchemaManagedViewTable"
                },
                {
                    "$ref": "#/definitions/DatabaseSchemaBatchExportTable"
                },
                {
                    "$ref": "#/definitions/DatabaseSchemaMaterializedViewTable"
                },
                {
                    "$ref": "#/definitions/DatabaseSchemaEndpointTable"
                }
            ]
        },
        "DatabaseSchemaTableCertification": {
            "additionalProperties": false,
            "properties": {
                "certified_at": {
                    "type": "string"
                },
                "certified_by": {
                    "type": "string"
                },
                "notes": {
                    "type": "string"
                },
                "status": {
                    "$ref": "#/definitions/DatabaseSchemaTableCertificationStatus",
                    "description": "Settled data catalog trust mark: 'certified' (prefer this source) or 'deprecated' (avoid it)."
                }
            },
            "required": ["status"],
            "type": "object"
        },
        "DatabaseSchemaTableCertificationStatus": {
            "enum": ["certified", "deprecated"],
            "type": "string"
        },
        "DatabaseSchemaTableCommon": {
            "additionalProperties": false,
            "properties": {
                "certification": {
                    "$ref": "#/definitions/DatabaseSchemaTableCertification",
                 

File truncated at 1 MB.