{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/observeinc/json-schema/observeinc-dashboard-resource-schema.json",
  "title": "DashboardResource",
  "description": "Full dashboard resource returned by Get, Create, and Update. Includes\nall envelope fields from the list item plus `definition`.\n\nWhen `expand=true`, `createdBy` and `updatedBy` include display\nfields (e.g. `label`); `managedBy.record` is populated. Without\n`expand`, references contain only `id`.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/observeinc-dashboards-api-openapi.yml#/components/schemas/Dashboard-Resource",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "schemaVersion",
    "name",
    "description",
    "createdAt",
    "updatedAt",
    "createdBy",
    "updatedBy",
    "managedBy",
    "visibility",
    "objectTags",
    "definition"
  ],
  "properties": {
    "id": {
      "$ref": "#/$defs/ObjectId",
      "readOnly": true
    },
    "schemaVersion": {
      "type": "integer",
      "enum": [
        2
      ],
      "description": "Dashboard document schema version. Always `2` on the wire."
    },
    "name": {
      "type": "string",
      "minLength": 1
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "$ref": "#/$defs/Time"
    },
    "updatedAt": {
      "$ref": "#/$defs/Time"
    },
    "createdBy": {
      "$ref": "#/$defs/User"
    },
    "updatedBy": {
      "$ref": "#/$defs/User"
    },
    "managedBy": {
      "anyOf": [
        {
          "$ref": "#/$defs/ObjectRef"
        },
        {
          "type": "null"
        }
      ],
      "description": "The app or other object that manages this dashboard, or `null` when\nit is not managed. Returned only — it cannot be set through this\nAPI.\n"
    },
    "visibility": {
      "type": "string",
      "enum": [
        "Listed",
        "Hidden"
      ]
    },
    "objectTags": {
      "$ref": "#/$defs/ObjectTags"
    },
    "definition": {
      "$ref": "#/$defs/DashboardContent"
    }
  },
  "$defs": {
    "Annotation": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "point",
            "range"
          ]
        },
        "point": {
          "$ref": "#/$defs/PointAnnotation",
          "description": "Populated when `type` is `point`; absent otherwise."
        },
        "range": {
          "$ref": "#/$defs/RangeAnnotation",
          "description": "Populated when `type` is `range`; absent otherwise."
        }
      }
    },
    "AnomalyOptions": {
      "type": "object",
      "additionalProperties": false,
      "description": "Settings for the anomaly chart: which column marks anomalous\npoints, which one separates the series, and how the two axes\nare drawn.\n\nThis chart type is read-only. The product has no editor for\nit, and only the monitor view produces one. Preserve these\nsettings when updating a dashboard that already has one, but\ndo not author them.\n",
      "properties": {
        "redPointField": {
          "$ref": "#/$defs/FieldRef"
        },
        "seriesField": {
          "$ref": "#/$defs/FieldRef"
        },
        "xConfig": {
          "$ref": "#/$defs/AxisConfig"
        },
        "yConfig": {
          "$ref": "#/$defs/AxisConfig"
        },
        "curve": {
          "$ref": "#/$defs/LineCurveType"
        },
        "extensions": {
          "$ref": "#/$defs/ExtensionsBag"
        }
      }
    },
    "AreaOptions": {
      "type": "object",
      "additionalProperties": false,
      "description": "Stacked-area chart options.",
      "properties": {
        "xConfig": {
          "$ref": "#/$defs/AxisConfig"
        },
        "yConfig": {
          "$ref": "#/$defs/AxisConfig"
        },
        "colorConfig": {
          "$ref": "#/$defs/ColorConfig"
        },
        "areaConfig": {
          "$ref": "#/$defs/LineConfig"
        },
        "horizontal": {
          "type": "boolean"
        },
        "stack": {
          "$ref": "#/$defs/StackMode"
        },
        "extensions": {
          "$ref": "#/$defs/ExtensionsBag"
        }
      }
    },
    "AxisBounds": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "start": {
          "type": "number",
          "format": "double"
        },
        "end": {
          "type": "number",
          "format": "double"
        }
      }
    },
    "AxisConfig": {
      "type": "object",
      "additionalProperties": false,
      "description": "Configuration for a single axis: whether it is shown, its label,\nbounds, scale, and number formatting. On a value axis\n`valueFormat` uses all of `CellNumberFormat`; on category and\ntime axes only its `options` apply.\n",
      "properties": {
        "show": {
          "type": "boolean"
        },
        "label": {
          "type": "string"
        },
        "domain": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "range": {
              "$ref": "#/$defs/AxisBounds"
            },
            "type": {
              "type": "string",
              "enum": [
                "Query Window",
                "Fit to Data"
              ]
            }
          }
        },
        "scaleType": {
          "$ref": "#/$defs/LogScale"
        },
        "valueFormat": {
          "$ref": "#/$defs/CellNumberFormat"
        },
        "hideGridLines": {
          "type": "boolean"
        },
        "orient": {
          "type": "string",
          "enum": [
            "left",
            "right",
            "top",
            "bottom"
          ]
        }
      }
    },
    "BarOptions": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "x2": {
          "$ref": "#/$defs/FieldRef"
        },
        "xConfig": {
          "$ref": "#/$defs/AxisConfig"
        },
        "yConfig": {
          "$ref": "#/$defs/AxisConfig"
        },
        "colorConfig": {
          "$ref": "#/$defs/ColorConfig"
        },
        "barConfig": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "showValues": {
              "type": "boolean"
            },
            "areaFillType": {
              "$ref": "#/$defs/ChartAreaFillType"
            },
            "horizontal": {
              "type": "boolean"
            },
            "grouped": {
              "type": "boolean"
            }
          }
        },
        "stack": {
          "$ref": "#/$defs/StackMode"
        },
        "histogram": {
          "type": "boolean"
        },
        "extensions": {
          "$ref": "#/$defs/ExtensionsBag"
        }
      }
    },
    "Card": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "type",
        "geometry"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "query",
            "parameter",
            "markdown",
            "image"
          ]
        },
        "geometry": {
          "$ref": "#/$defs/Geometry"
        },
        "query": {
          "$ref": "#/$defs/Query",
          "description": "Populated when `type` is `query`; absent otherwise."
        },
        "parameter": {
          "$ref": "#/$defs/Parameter",
          "description": "The parameter definition rendered as an input control.\nPopulated when `type` is `parameter`; absent otherwise.\n"
        },
        "markdown": {
          "$ref": "#/$defs/MarkdownCard",
          "description": "Populated when `type` is `markdown`; absent otherwise."
        },
        "image": {
          "$ref": "#/$defs/ImageCard",
          "description": "Populated when `type` is `image`; absent otherwise."
        }
      }
    },
    "CardContent": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "pipeline",
        "inputs"
      ],
      "description": "A card's query: the OPAL pipeline, the data it runs over, and — for\ncards built with the visual query builder — the builder's state.\n",
      "properties": {
        "pipeline": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "OPAL source, as an array of lines (one statement / line per\nelement; join with newline to reconstruct the source).\nNewlines are significant in OPAL, so the array form avoids\nembedded escape sequences and produces clean diffs.\nCanonical when `builderDef` is absent. Derived (read-only)\nwhen `builderDef` is present.\n"
        },
        "inputs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Input"
          },
          "description": "Data sources for this card's pipeline. Each input provides\na named binding accessible via `@name` in OPAL.\n"
        },
        "builderDef": {
          "type": "object",
          "additionalProperties": false,
          "description": "State for the visual query builder. This version of the schema\ndoes not give the builder's expression surface a typed shape; it\nis carried opaquely under `ui`.\n\nWhen `builderDef` is present the builder is the source of truth\nand `pipeline` is only a rendering of it, so clients MUST NOT\nedit `pipeline` directly. When `builderDef` is absent, `pipeline`\nis the source of truth.\n",
          "properties": {
            "ui": {
              "type": "object",
              "additionalProperties": true,
              "description": "The builder definition. Opaque: stored and returned\nunchanged, and its contents are not validated.\n"
            }
          }
        }
      }
    },
    "CellNumberFormat": {
      "type": "object",
      "additionalProperties": false,
      "description": "Number formatting for a value axis or table cell. `options`\nextends `Intl.NumberFormat` options with Observe metric units.\n",
      "properties": {
        "options": {
          "type": "object",
          "additionalProperties": true,
          "description": "Intl.NumberFormat options (notation, maximumSignificantDigits,\netc.) plus `metricUnit`, `metricUnitPrecision`, `isCustomUnit`.\n"
        },
        "locale": {
          "type": "string"
        },
        "colorScale": {
          "$ref": "#/$defs/ColorScaleConfig"
        },
        "thresholds": {
          "$ref": "#/$defs/ThresholdsConfig"
        }
      }
    },
    "ChangeOverTimeOptions": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "key": {
          "$ref": "#/$defs/FieldRef"
        },
        "value": {
          "$ref": "#/$defs/FieldRef"
        },
        "keyConfig": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "label": {
              "type": "string"
            },
            "order": {
              "type": "string",
              "enum": [
                "descending",
                "ascending"
              ]
            }
          }
        },
        "valueConfig": {
          "$ref": "#/$defs/TopValueConfig"
        },
        "barConfig": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "bandSize": {
              "type": "number",
              "format": "double"
            }
          }
        },
        "extensions": {
          "$ref": "#/$defs/ExtensionsBag"
        }
      }
    },
    "ChartAreaFillType": {
      "type": "string",
      "enum": [
        "SolidFill",
        "TranslucentFill",
        "GradientFill",
        "NoFill"
      ]
    },
    "ColorConfig": {
      "type": "object",
      "additionalProperties": false,
      "description": "Color encoding. `field` selects the column driving color (often\nthe same series as `Visualization.groupBy`); `config` carries the\nstyling.\n",
      "properties": {
        "field": {
          "$ref": "#/$defs/FieldRef"
        },
        "config": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "colorConfigType": {
              "type": "string",
              "enum": [
                "Color",
                "Threshold",
                "Mapping",
                "Range"
              ]
            },
            "color": {
              "$ref": "#/$defs/ColorSelection"
            },
            "thresholds": {
              "$ref": "#/$defs/ThresholdsConfig"
            },
            "colorMapping": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "key",
                  "color"
                ],
                "properties": {
                  "key": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "color": {
                    "$ref": "#/$defs/ColorSelection"
                  },
                  "matchType": {
                    "type": "string",
                    "enum": [
                      "regex"
                    ]
                  }
                }
              }
            },
            "colorScale": {
              "$ref": "#/$defs/ColorScaleConfig"
            }
          }
        }
      }
    },
    "ColorScaleConfig": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "colorScaleType"
      ],
      "properties": {
        "colorScaleType": {
          "type": "string",
          "enum": [
            "Sequential",
            "Diverging"
          ]
        },
        "bounds": {
          "$ref": "#/$defs/AxisBounds"
        },
        "sequentialColorScale": {
          "$ref": "#/$defs/SequentialColorScale"
        },
        "divergingColorScale": {
          "$ref": "#/$defs/DivergingColorScale"
        },
        "divergingScaleMidpoint": {
          "$ref": "#/$defs/DivergingScaleMidpoint"
        },
        "reverseColors": {
          "type": "boolean"
        },
        "target": {
          "type": "string",
          "enum": [
            "text",
            "fill",
            "pill"
          ],
          "description": "Cell color target (table / single-stat contexts)."
        },
        "ignoreMinimum": {
          "type": "boolean"
        }
      }
    },
    "ColorSelection": {
      "type": "string",
      "description": "A named swatch color or an arbitrary CSS color string."
    },
    "ColumnFormatting": {
      "type": "object",
      "additionalProperties": false,
      "description": "Formatting rules for a single column.",
      "properties": {
        "valueColors": {
          "type": "array",
          "description": "Map specific values to colors.",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "value",
              "color"
            ],
            "properties": {
              "value": {
                "type": "string"
              },
              "color": {
                "type": "string"
              }
            }
          }
        },
        "colorTarget": {
          "type": "string",
          "enum": [
            "pill",
            "text",
            "fill"
          ],
          "description": "Where to apply value colors. Default `pill`. Omit when\ndefault.\n"
        },
        "colorScale": {
          "$ref": "#/$defs/ColorScaleConfig",
          "description": "Continuous color scale for numeric cells in this column.\nUses the shared `ColorScaleConfig` so both the sequential\nand diverging scale selections, the diverging midpoint,\nbounds, and the `reverseColors` / `ignoreMinimum` toggles\nround-trip losslessly.\n"
        },
        "numberFormat": {
          "type": "object",
          "additionalProperties": true,
          "description": "Intl.NumberFormat options for the column (e.g. notation,\nmaximumSignificantDigits).\n"
        },
        "thresholds": {
          "$ref": "#/$defs/ThresholdsConfig",
          "description": "Banded conditional coloring for numeric cells in this column.\n"
        },
        "prefix": {
          "type": "string"
        },
        "suffix": {
          "type": "string"
        }
      }
    },
    "ColumnLink": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "label"
      ],
      "description": "The foreign key of a link column. Describes how this dataset joins to\nthe dataset the link points at, so the rule can filter through the link.\n",
      "properties": {
        "label": {
          "type": "string",
          "description": "Foreign-key label, used as the linked-column name in OPAL."
        },
        "targetDatasetId": {
          "$ref": "#/$defs/ObjectId",
          "description": "Dataset the link points at."
        },
        "linkType": {
          "type": "string",
          "description": "Foreign-key type (e.g. `linked`)."
        },
        "srcFields": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Source-side key fields on this dataset."
        },
        "dstFields": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Destination-side key fields on the target dataset."
        },
        "targetStageLabel": {
          "type": "string",
          "description": "Label of the target stage the link resolves against. Usually empty."
        }
      }
    },
    "ColumnRef": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id"
      ],
      "description": "A reference to a column the rule filters on.",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "description": "The column's OPAL type (e.g. `string`, `int64`, `link`). Used to\ncast the rule's values to the column's type when the filter is\ncompiled to OPAL. Optional: omit to compare the values without\ncasting them.\n"
        },
        "path": {
          "type": "string",
          "description": "Dotted path within an object/variant/JSON column (e.g.\n`data.user.status`). Omit for a whole-column reference.\n"
        },
        "link": {
          "$ref": "#/$defs/ColumnLink",
          "description": "Present when the column is a foreign-key / link column."
        }
      }
    },
    "CustomVegaLiteOptions": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "spec": {
          "type": "object",
          "additionalProperties": true,
          "description": "Full Vega-Lite specification (JSON)."
        },
        "prompt": {
          "type": "string",
          "description": "Editor metadata; renderers ignore it."
        },
        "extensions": {
          "$ref": "#/$defs/ExtensionsBag"
        }
      }
    },
    "CustomVegaOptions": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "spec": {
          "type": "object",
          "additionalProperties": true,
          "description": "Full Vega specification (JSON)."
        },
        "prompt": {
          "type": "string",
          "description": "Editor metadata; renderers ignore it."
        },
        "extensions": {
          "$ref": "#/$defs/ExtensionsBag"
        }
      }
    },
    "DashboardContent": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "layout"
      ],
      "description": "The dashboard body — what the dashboard shows — kept separate\nfrom the identity, audit, and governance metadata on the\ndashboard itself so the two can evolve independently. This is\nthe object governed by `schemaVersion`.\n",
      "properties": {
        "defaultTimeRange": {
          "$ref": "#/$defs/FrontendTimeRange"
        },
        "datasetFilter": {
          "$ref": "#/$defs/DatasetFilter",
          "description": "Optional filterable dataset that acts as a cross-card filter\nsource. Cards reference it via `Input.source.datasetFilter`.\nThe current UI allows at most one per dashboard.\n"
        },
        "hiddenParameters": {
          "type": "array",
          "description": "Parameters that are not placed on the grid as a\nparameter card in any section. They still drive the\ndashboard's queries. This is separate from\n`Parameter.hidden`, which hides the input control of a\nparameter that *is* placed.\n",
          "items": {
            "$ref": "#/$defs/Parameter"
          }
        },
        "hiddenQueries": {
          "type": "array",
          "description": "Data-only query cards that are not displayed in any section.\nTypically shared base queries referenced as inputs by visible\ncards. Each must have an `id` so other cards can reference it.\n",
          "items": {
            "$ref": "#/$defs/Query"
          }
        },
        "ui": {
          "type": "object",
          "additionalProperties": true,
          "description": "Opaque dashboard-level UI state, stored and returned\nunchanged. Must be a JSON object; its contents are not\nvalidated. Recognized keys include\n`liveMode` (auto-refresh enabled), `autoPack`,\n`selectedCardId`, and `additionalDatasetFilters`, which\nholds any filterable datasets beyond the primary\n`datasetFilter`.\n"
        },
        "layout": {
          "$ref": "#/$defs/Layout"
        }
      }
    },
    "DatasetFilter": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "datasetId"
      ],
      "description": "A filterable dataset that acts as a cross-card filter source.\nCards reference it via `Input.source.datasetFilter`. The\ncurrent UI allows creating at most one per dashboard.\n",
      "properties": {
        "id": {
          "type": "string",
          "description": "Stable identity of this dataset filter, used by a card input that\nbinds to one specific filter rather than to the primary one.\nOptional for a document with a single, primary dataset filter.\n"
        },
        "datasetId": {
          "$ref": "#/$defs/ObjectId"
        },
        "name": {
          "type": "string",
          "description": "Human-readable dataset name. Optional but encouraged."
        },
        "path": {
          "type": "string",
          "description": "Slash-delimited dataset path. Optional but encouraged."
        },
        "filterActions": {
          "type": "array",
          "description": "The constraints this filter applies, each a `FilterRule`. These are\nthe filters a viewer sees and can change in the filter bar.\n",
          "items": {
            "$ref": "#/$defs/FilterRule"
          }
        },
        "preFilterActions": {
          "type": "array",
          "description": "Constraints applied to the dataset before `filterActions`. Same\n`FilterRule` shape, but these are fixed by the document's author and\nare not shown in the filter bar.\n",
          "items": {
            "$ref": "#/$defs/FilterRule"
          }
        },
        "autoApply": {
          "type": "boolean",
          "description": "When `true`, the filter is automatically applied to new\ncards added to the dashboard. Default `true`. Omit when\ndefault.\n"
        }
      }
    },
    "DivergingColorScale": {
      "type": "string",
      "enum": [
        "BrBG",
        "PRGn",
        "PiYG",
        "PuOr",
        "RdBu",
        "RdGy",
        "RdYlBu",
        "RdYlGn",
        "Spectral"
      ]
    },
    "DivergingScaleMidpoint": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "preset",
            "value"
          ]
        },
        "preset": {
          "type": "string",
          "enum": [
            "average",
            "zero",
            "midpointLowerUpper"
          ],
          "description": "Populated when `type` is `preset`; absent otherwise."
        },
        "value": {
          "type": "number",
          "format": "double",
          "description": "Populated when `type` is `value`; absent otherwise."
        }
      }
    },
    "Drilldown": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "trigger",
        "target"
      ],
      "description": "A link from a card to somewhere else — another dashboard, one of the\nexplorers, or an external URL — optionally carrying the card's time\nrange and parameter values across to the destination.\n",
      "properties": {
        "trigger": {
          "type": "string",
          "enum": [
            "card",
            "row"
          ],
          "description": "What the viewer interacts with to follow the link.\n`card` — a link offered on the card itself.\n`row`  — a drilldown from clicking a data point or table row.\n"
        },
        "target": {
          "$ref": "#/$defs/LinkTarget"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "description": "Authored label for the link. Omit when unnamed; clients may fall\nback to naming the destination (URL, dashboard name, explorer\ndataset). Empty string is invalid — absence is omission.\n"
        },
        "timeRange": {
          "$ref": "#/$defs/DrilldownTimeRange"
        },
        "includeFilteredDataset": {
          "type": "boolean",
          "description": "When `true`, explorer destinations also receive the source\ndocument's current dataset-filter query params. Default `false`.\nOmit when default.\n"
        },
        "openInNewTab": {
          "type": "boolean",
          "description": "Default `true`. Omit when default."
        },
        "parameters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DrilldownParameter"
          }
        }
      }
    },
    "DrilldownParameter": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "destinationName",
        "source"
      ],
      "properties": {
        "destinationName": {
          "type": "string"
        },
        "isRequiredCorrelationTag": {
          "type": "boolean",
          "description": "When `true` and source is `parameter` pointing to a\ncorrelation tag parameter, the destination will receive\na `requiredTag-` prefixed query parameter. Default `false`.\nOmit when default.\n"
        },
        "isColumnFilter": {
          "type": "boolean",
          "description": "When `true`, generation serializes the mapping with a\n`filter-<destinationName>=` query key instead of `tag-` /\n`requiredTag-`. Used for column/resource filter mappings on\nexplorer destinations. Default `false`. Omit when default.\n"
        },
        "source": {
          "$ref": "#/$defs/DrilldownSource"
        }
      }
    },
    "DrilldownSource": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "parameter",
            "grouping",
            "custom",
            "selection-resource",
            "selection-tag"
          ]
        },
        "parameter": {
          "$ref": "#/$defs/DrilldownSourceParameter"
        },
        "grouping": {
          "$ref": "#/$defs/DrilldownSourceGrouping"
        },
        "custom": {
          "$ref": "#/$defs/DrilldownSourceCustom"
        },
        "selectionResource": {
          "$ref": "#/$defs/DrilldownSourceSelectionResource"
        },
        "selectionTag": {
          "$ref": "#/$defs/DrilldownSourceSelectionTag"
        }
      }
    },
    "DrilldownSourceCustom": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "value"
      ],
      "properties": {
        "value": {
          "type": "string"
        }
      }
    },
    "DrilldownSourceGrouping": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "columnId"
      ],
      "properties": {
        "columnId": {
          "type": "string",
          "description": "Column name (or dataset id for resource groupings)."
        }
      }
    },
    "DrilldownSourceParameter": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "sourceName"
      ],
      "properties": {
        "sourceName": {
          "type": "string",
          "description": "Name of the source dashboard parameter."
        }
      }
    },
    "DrilldownSourceSelectionResource": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        }
      }
    },
    "DrilldownSourceSelectionTag": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "tag"
      ],
      "properties": {
        "tag": {
          "type": "string"
        }
      }
    },
    "DrilldownTimeRange": {
      "type": "string",
      "enum": [
        "current",
        "default",
        "none"
      ],
      "description": "Which time range the destination opens with. `current` (the default)\ncarries over the source card's selected range. `default` uses the\ntarget dashboard's own default range. `none` sends no time range at\nall. Omit when `current`.\n"
    },
    "DurationNanoseconds": {
      "type": "string",
      "format": "int64 nanoseconds"
    },
    "ExtensionsBag": {
      "type": "object",
      "additionalProperties": true,
      "description": "An escape hatch for visualization settings that do not yet have\na typed field of their own. Contents are stored and returned\nunchanged and are not validated, so newer clients can round-trip\nsettings this version of the schema does not name.\n"
    },
    "FieldRef": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "type"
      ],
      "description": "Reference to a column / field. The `column` variant is a plain\ncolumn id; the others cover nested paths, correlation tags,\nlink/resource source fields, and primary keys.\n",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "column",
            "nested",
            "tag",
            "link",
            "primaryKey"
          ]
        },
        "column": {
          "type": "string",
          "description": "Column id. Populated when `type` is `column`; absent otherwise."
        },
        "nested": {
          "$ref": "#/$defs/FieldRefNested",
          "description": "Populated when `type` is `nested`; absent otherwise."
        },
        "tag": {
          "$ref": "#/$defs/FieldRefTag",
          "description": "Populated when `type` is `tag`; absent otherwise."
        },
        "link": {
          "$ref": "#/$defs/FieldRefLink",
          "description": "Populated when `type` is `link`; absent otherwise."
        },
        "primaryKey": {
          "$ref": "#/$defs/FieldRefPrimaryKey",
          "description": "Populated when `type` is `primaryKey`; absent otherwise."
        }
      }
    },
    "FieldRefLink": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "srcFields"
      ],
      "description": "A link/resource field composed of one or more source fields, with\nan optional display label.\n",
      "properties": {
        "label": {
          "type": "string"
        },
        "srcFields": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FieldRefSrcField"
          }
        }
      }
    },
    "FieldRefNested": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "path"
      ],
      "description": "A field addressed by id and nested path.",
      "properties": {
        "id": {
          "type": "string"
        },
        "path": {
          "type": "string"
        }
      }
    },
    "FieldRefPrimaryKey": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "srcFields"
      ],
      "description": "A primary key composed of one or more source fields.",
      "properties": {
        "srcFields": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FieldRefSrcField"
          }
        }
      }
    },
    "FieldRefSrcField": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "column",
            "nested"
          ]
        },
        "column": {
          "type": "string",
          "description": "Column id. Populated when `type` is `column`; absent otherwise."
        },
        "nested": {
          "$ref": "#/$defs/FieldRefNested",
          "description": "Populated when `type` is `nested`; absent otherwise."
        }
      }
    },
    "FieldRefTag": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "tagId"
      ],
      "description": "A correlation-tag reference.",
      "properties": {
        "tagId": {
          "type": "string"
        }
      }
    },
    "FilterPredicate": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operator"
      ],
      "description": "The filter operation. `operator` selects which variant body is\npopulated.\n",
      "properties": {
        "operator": {
          "type": "string",
          "enum": [
            "values",
            "text",
            "range",
            "cidr",
            "jsonValues",
            "multiColumn",
            "resourceInstance",
            "parameter",
            "tag",
            "exists",
            "pattern",
            "filterCondition"
          ]
        },
        "values": {
          "$ref": "#/$defs/PredicateValues"
        },
        "text": {
          "$ref": "#/$defs/PredicateText"
        },
        "filterCondition": {
          "$ref": "#/$defs/PredicateFilterCondition"
        },
        "range": {
          "$ref": "#/$defs/PredicateRange"
        },
        "cidr": {
          "$ref": "#/$defs/PredicateCidr"
        },
        "jsonValues": {
          "$ref": "#/$defs/PredicateJsonValues"
        },
        "multiColumn": {
          "$ref": "#/$defs/PredicateMultiColumn"
        },
        "resourceInstance": {
          "$ref": "#/$defs/PredicateResourceInstance"
        },
        "parameter": {
          "$ref": "#/$defs/PredicateParameter"
        },
        "tag": {
          "$ref": "#/$defs/PredicateTag"
        },
        "exists": {
          "$ref": "#/$defs/PredicateExists"
        },
        "pattern": {
          "$ref": "#/$defs/PredicatePattern"
        }
      }
    },
    "FilterRule": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "predicate"
      ],
      "description": "One filter rule: apply `predicate` to `column`, quantified by `verb`.\nSet `enabled: false` to keep a rule in the document but leave it out of\nthe query.\n",
      "properties": {
        "column": {
          "$ref": "#/$defs/ColumnRef",
          "description": "Target column. Absent for predicates that carry their own targets\n(`multiColumn`, `resourceInstance`, `exists`) or that run globally\n(a `text` match with no column).\n"
        },
        "verb": {
          "$ref": "#/$defs/FilterVerb"
        },
        "enabled": {
          "type": "boolean",
          "description": "Default `true`. Omit when enabled."
        },
        "predicate": {
          "$ref": "#/$defs/FilterPredicate"
        }
      }
    },
    "FilterVerb": {
      "type": "string",
      "enum": [
        "filter",
        "ever",
        "always",
        "never",
        "filterLast"
      ],
      "description": "How the predicate is quantified over time. The default, `filter`, keeps\nindividual matching rows and is what event data normally wants. The\nother verbs quantify the predicate over each interval or resource\nlifetime, keeping a whole interval or not at all:\n  - filter     — keep each matching row (default)\n  - ever       — the predicate matched at least once during the interval\n  - always     — the predicate matched for the entire interval\n  - never      — the predicate never matched during the interval\n  - filterLast — the predicate matched at the interval's latest point\nOmit for `filter`.\n"
    },
    "FrontendTimeRange": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "kind"
      ],
      "description": "A time range, expressed in one of three ways. `kind` selects which of\n`preset`, `relative`, or `absolute` is present; the other two are\nabsent.\n  Preset:   `{ \"kind\": \"preset\", \"preset\": { \"presetType\": \"PAST_15_MINUTES\" } }`\n  Relative: `{ \"kind\": \"relative\", \"relative\": { \"millisFromCurrentTime\": 900000 } }`\n  Absolute: `{ \"kind\": \"absolute\", \"absolute\": { \"startTime\": \"2024-04-30T00:00:00.000Z\", \"endTime\": \"2024-05-01T00:00:00.000Z\" } }`\nKnown preset types include:\n  PAST_5_MINUTES, PAST_10_MINUTES, PAST_15_MINUTES,\n  PAST_30_MINUTES, PAST_60_MINUTES, PAST_2_HOURS,\n  PAST_4_HOURS, PAST_6_HOURS, PAST_12_HOURS,\n  PAST_24_HOURS, PAST_2_DAYS, PAST_3_DAYS, PAST_4_DAYS,\n  PAST_7_DAYS, PAST_14_DAYS, PAST_30_DAYS,\n  TODAY, YESTERDAY, THIS_DAY_LAST_WEEK, LAST_WEEK, LAST_MONTH.\nFor presets, `millisFromCurrentTime` is derivable and is not stored.\n",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "preset",
            "relative",
            "absolute"
          ]
        },
        "preset": {
          "$ref": "#/$defs/FrontendTimeRangePreset",
          "description": "Populated when `kind` is `preset`; absent otherwise."
        },
        "relative": {
          "$ref": "#/$defs/FrontendTimeRangeRelative",
          "description": "Populated when `kind` is `relative`; absent otherwise."
        },
        "absolute": {
          "$ref": "#/$defs/FrontendTimeRangeAbsolute",
          "description": "Populated when `kind` is `absolute`; absent otherwise."
        }
      }
    },
    "FrontendTimeRangeAbsolute": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "startTime",
        "endTime"
      ],
      "properties": {
        "startTime": {
          "$ref": "#/$defs/Time",
          "description": "Window start, as a UTC RFC 3339 timestamp."
        },
        "endTime": {
          "$ref": "#/$defs/Time",
          "description": "Window end, as a UTC RFC 3339 timestamp."
        }
      }
    },
    "FrontendTimeRangePreset": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "presetType"
      ],
      "properties": {
        "presetType": {
          "type": "string",
          "description": "Named Observe preset. Not a closed enum so newly added\npresets can round-trip without a schema bump.\n"
        }
      }
    },
    "FrontendTimeRangeRelative": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "millisFromCurrentTime"
      ],
      "properties": {
        "millisFromCurrentTime": {
          "type": "number",
          "format": "double",
          "description": "Custom relative window length in milliseconds."
        }
      }
    },
    "Geometry": {
      "type": "object",
      "additionalProperties": false,
      "description": "A card's placement within its section's grid, measured from the\nsection's top-left corner. `x` and `w` are in grid columns (the\ngrid is 12 columns wide); `y` and `h` are in grid rows.\n",
      "required": [
        "x",
        "y",
        "w",
        "h"
      ],
      "properties": {
        "x": {
          "type": "integer",
          "minimum": 0
        },
        "y": {
          "type": "integer",
          "minimum": 0
        },
        "w": {
          "type": "integer",
          "minimum": 1
        },
        "h": {
          "type": "integer",
          "minimum": 1
        }
      }
    },
    "HeatmapOptions": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "fieldValue": {
          "$ref": "#/$defs/FieldRef"
        },
        "autobinTemporalAxis": {
          "type": "boolean"
        },
        "xBinSize": {
          "type": "number",
          "format": "double"
        },
        "yBinSize": {
          "type": "number",
          "format": "double"
        },
        "useLogColorScale": {
          "type": "boolean"
        },
        "colorScale": {
          "$ref": "#/$defs/SequentialColorScale"
        },
        "useReverseColorScale": {
          "type": "boolean"
        },
        "showValueText": {
          "type": "boolean"
        },
        "aggregate": {
          "type": "string",
          "description": "Vega-Lite non-arg aggregate op (e.g. \"count\", \"sum\", \"mean\")."
        },
        "valueFormattingConfig": {
          "$ref": "#/$defs/AxisConfig"
        },
        "extensions": {
          "$ref": "#/$defs/ExtensionsBag"
        }
      }
    },
    "ImageCard": {
      "type": "object",
      "additionalProperties": false,
      "description": "A static image card. Renders the image at `url` inside the\ncard's grid placement.\n",
      "properties": {
        "title": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "description": "Image source URL."
        },
        "stretch": {
          "type": "boolean",
          "description": "When `true`, the image stretches to fill the card. Default\n`false`. Omit when default.\n"
        },
        "resizeBehavior": {
          "type": "string",
          "enum": [
            "height",
            "width",
            "fill",
            "contain"
          ],
          "description": "How the image is fitted within the card bounds."
        },
        "backgroundFillColor": {
          "type": "string",
          "description": "CSS color painted behind the image (letterboxing)."
        }
      }
    },
    "IncludeExcludeValues": {
      "type": "array",
      "description": "A list of discrete values, each either included or excluded. Every value\nis carried as a string: write numbers as decimal strings (which keeps\nfull int64 precision) and booleans as `\"true\"` / `\"false\"`. Values are\ncast back to the column's type when the filter runs. A JSON `null` value\nmatches the OPAL null.\n",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "value",
          "exclude"
        ],
        "properties": {
          "value": {
            "type": [
              "string",
              "null"
            ]
          },
          "exclude": {
            "type": "boolean"
          }
        }
      }
    },
    "Input": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "name",
        "source"
      ],
      "description": "A named data source for a card's pipeline, bound in OPAL as `@name`.\nThe data itself can come from a dataset, another card's result, or the\ndocument's dataset filter.\n",
      "properties": {
        "name": {
          "type": "string"
        },
        "role": {
          "type": "string",
          "enum": [
            "Data",
            "Reference"
          ],
          "description": "How the pipeline uses this input. `Data` (the default; omit) is a\nprimary stream of rows. `Reference` is a lookup binding — a\ndataset joined in to enrich the data rather than queried\ndirectly.\n"
        },
        "isUserInput": {
          "type": "boolean",
          "description": "Whether a user added this input explicitly, rather than it being\ngenerated from the pipeline. Editor state only — it does not\naffect how the query runs. Default `false`; omit for generated\ninputs.\n"
        },
        "source": {
          "$ref": "#/$defs/InputSource"
        }
      }
    },
    "InputSource": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "dataset",
            "card",
            "datasetFilter"
          ]
        },
        "dataset": {
          "$ref": "#/$defs/InputSourceDataset",
          "description": "Populated when `type` is `dataset`; absent otherwise."
        },
        "card": {
          "type": "string",
          "description": "Populated when `type` is `card`; absent otherwise.\nReferences another card's `id`.\n"
        },
        "datasetFilter": {
          "$ref": "#/$defs/InputSourceDatasetFilter",
          "description": "Names which dataset filter to bind, for documents that have more\nthan one. Omit to bind the primary `definition.datasetFilter` —\nin that case `type: datasetFilter` is enough on its own. Absent\nfor other types.\n"
        }
      }
    },
    "InputSourceDataset": {
      "type": "object",
      "additionalProperties": false,
      "minProperties": 1,
      "description": "A dataset binding. Normally identified by `id`, but `id` may be absent\nfor a by-name binding — a mode where the input references a dataset only\nby `name`/`path` (e.g. an input resolved across tenants, where IDs\ndiffer but names match) — in which case `name` or `path` carries the\nreference.\n",
      "properties": {
        "id": {
          "$ref": "#/$defs/ObjectId"
        },
        "name": {
          "type": "string",
          "description": "Human-readable dataset name. Optional but\nencouraged — aids cross-tenant migration where\nIDs differ but names match.\n"
        },
        "path": {
          "type": "string",
          "description": "Slash-delimited dataset path, e.g.\n\"kubernetes/Pod\". Optional but encouraged.\n"
        }
      }
    },
    "InputSourceDatasetFilter": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id"
      ],
      "description": "A binding to one of the additional dataset filters carried in\n`ui.additionalDatasetFilters`, named by `id`. The primary\n`definition.datasetFilter` needs no body: an input binds it by setting\n`type: datasetFilter` and omitting this object.\n",
      "properties": {
        "id": {
          "type": "string",
          "description": "Id of an entry in `ui.additionalDatasetFilters`."
        }
      }
    },
    "JoinField": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "columnId"
      ],
      "properties": {
        "columnId": {
          "type": "string"
        },
        "path": {
          "type": "string",
          "description": "Dotted path within the column, when the join key is a nested field."
        }
      }
    },
    "JoinKey": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "srcFields",
        "dstFields"
      ],
      "description": "Join specification for an `exists` predicate: `srcFields` on this dataset\nmap positionally to `dstFields` on the joined input.\n",
      "properties": {
        "srcFields": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JoinField"
          }
        },
        "dstFields": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JoinField"
          }
        }
      }
    },
    "Layout": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "sections"
      ],
      "description": "Sections are laid out in a 12-column grid. The grid width is a\nfixed UI convention, not a stored field.\n",
      "properties": {
        "sections": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Section"
          }
        }
      }
    },
    "LegacyD3Options": {
      "type": "object",
      "additionalProperties": true,
      "description": "Options for the legacy chart types — both the deprecated\nvariants of a current chart type and the specialized charts\nthat have no current equivalent. These charts predate the typed\noptions above, so their settings vary by chart type and are\nonly loosely validated: whatever is sent is preserved\nunchanged under `extensions`.\n\nNew content SHOULD NOT use a deprecated type. Where a current\nequivalent exists (for example `line` in place of\n`timeseries_deprecated`), author that instead.\n",
      "properties": {
        "extensions": {
          "$ref": "#/$defs/ExtensionsBag"
        }
      }
    },
    "LegendConfig": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "visible": {
          "type": "boolean",
          "description": "Default `true`. Omit when default."
        },
        "layout": {
          "type": "string",
          "enum": [
            "list",
            "table"
          ],
          "description": "Default `list`. Omit when default."
        },
        "tableAggregates": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "For `layout: table`, the per-series summary columns shown in\nthe legend, in order (e.g. \"Last\", \"Min\", \"Max\", \"Avg\",\n\"Sum\"). Absent when the legend shows no summary columns.\n"
        }
      }
    },
    "LineConfig": {
      "type": "object",
      "additionalProperties": false,
      "description": "Line / area drawing options.",
      "properties": {
        "showPoints": {
          "type": "boolean"
        },
        "showValues": {
          "type": "boolean"
        },
        "curve": {
          "$ref": "#/$defs/LineCurveType"
        },
        "areaFillType": {
          "$ref": "#/$defs/ChartAreaFillType"
        }
      }
    },
    "LineCurveType": {
      "type": "string",
      "enum": [
        "Linear",
        "Curve",
        "Step"
      ]
    },
    "LineOptions": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "xConfig": {
          "$ref": "#/$defs/AxisConfig"
        },
        "yConfig": {
          "$ref": "#/$defs/AxisConfig"
        },
        "colorConfig": {
          "$ref": "#/$defs/ColorConfig"
        },
        "lineConfig": {
          "$ref": "#/$defs/LineConfig"
        },
        "horizontal": {
          "type": "boolean"
        },
        "extensions": {
          "$ref": "#/$defs/ExtensionsBag"
        }
      }
    },
    "LinkTarget": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "kind"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "link",
            "dashboard",
            "logExplorer",
            "traceExplorer",
            "metricsExplorer",
            "serviceExplorer"
          ]
        },
        "link": {
          "$ref": "#/$defs/LinkTargetUrl"
        },
        "dashboard": {
          "$ref": "#/$defs/LinkTargetDashboard"
        },
        "logExplorer": {
          "$ref": "#/$defs/LinkTargetLogExplorer"
        },
        "traceExplorer": {
          "$ref": "#/$defs/LinkTargetTraceExplorer"
        },
        "metricsExplorer": {
          "$ref": "#/$defs/LinkTargetMetricsExplorer"
        },
        "serviceExplorer": {
          "$ref": "#/$defs/LinkTargetServiceExplorer"
        }
      }
    },
    "LinkTargetDashboard": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "targetDashboardId"
      ],
      "properties": {
        "targetDashboardId": {
          "$ref": "#/$defs/ObjectId"
        },
        "targetDashboardName": {
          "type": "string",
          "description": "Cached display name of the destination dashboard. Optional but\nencouraged — used as the chrome label when `Drilldown.name` is\nomitted.\n"
        }
      }
    },
    "LinkTargetLogExplorer": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "targetDatasetId": {
          "$ref": "#/$defs/ObjectId"
        },
        "targetDatasetName": {
          "type": "string"
        }
      }
    },
    "LinkTargetMetricsExplorer": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "targetDatasetId": {
          "$ref": "#/$defs/ObjectId"
        },
        "targetDatasetName": {
          "type": "string"
        },
        "targetMetricName": {
          "type": "string",
          "description": "Optional metric to preselect in the metrics explorer."
        }
      }
    },
    "LinkTargetServiceExplorer": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "targetDatasetId": {
          "$ref": "#/$defs/ObjectId"
        },
        "targetDatasetName": {
          "type": "string"
        }
      }
    },
    "LinkTargetTraceExplorer": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "targetDatasetId": {
          "$ref": "#/$defs/ObjectId"
        },
        "targetDatasetName": {
          "type": "string"
        }
      }
    },
    "LinkTargetUrl": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "url"
      ],
      "description": "A link to an arbitrary URL.",
      "properties": {
        "url": {
          "type": "string"
        },
        "icon": {
          "type": "string",
          "description": "Icon name for the URL link in card chrome. Default `link`.\nOmit when default.\n"
        }
      }
    },
    "LogScale": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "use": {
          "type": "boolean"
        },
        "base": {
          "type": "number",
          "format": "double"
        }
      }
    },
    "MarkdownCard": {
      "type": "object",
      "additionalProperties": false,
      "description": "A text card. Renders formatted prose rather than data.",
      "required": [
        "body"
      ],
      "properties": {
        "title": {
          "type": "string"
        },
        "body": {
          "type": "string",
          "description": "CommonMark text rendered in the card."
        }
      }
    },
    "ObjectBrief": {
      "title": "ObjectBrief",
      "type": "object",
      "description": "Brief record fields for an ObjectRef. This type is polymorphic: additional fields pointing to specific object types (e.g. dataset, dashboard, monitor) may be added in the future as needed.\n",
      "required": [
        "label",
        "description",
        "iconUrl",
        "managedBy"
      ],
      "properties": {
        "label": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "iconUrl": {
          "type": "string"
        },
        "managedBy": {
          "anyOf": [
            {
              "$ref": "#/$defs/ObjectRef"
            },
            {
              "type": "null"
            }
          ],
          "description": "Owner/manager of this object. Always returned as an id-only ObjectRef even when the parent was requested with expand=true: `expand` populates a single layer of brief data, so `record.managedBy` on a brief is itself never expanded. Pass the inner id back through a separate request (or filter via CEL, which lazily resolves) to access the manager's brief."
        }
      }
    },
    "ObjectId": {
      "type": "string",
      "format": "ObjectId"
    },
    "ObjectRef": {
      "title": "ObjectRef",
      "type": "object",
      "description": "A reference to another resource. Always carries the id; the optional `record` field carries the brief metadata, populated when expand=true. Brief expansion applies to one layer only — fields inside `record` that are themselves ObjectRefs (e.g. `record.managedBy`) are returned id-only, never with their own `record` populated. CEL filter expressions can deeper-resolve via lazy wrapper resolution if needed.\n",
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/ObjectId"
        },
        "record": {
          "$ref": "#/$defs/ObjectBrief"
        }
      }
    },
    "ObjectTags": {
      "title": "ObjectTags",
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "description": "User-applied tags for organization and discovery, as a map of tag key\nto a list of values. For example: {\"env\": [\"prod\", \"staging\"], \"team\": [\"platform\"]}.\n"
    },
    "Parameter": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "label",
        "valueKind"
      ],
      "description": "A viewer-controllable value that cards reference from OPAL as\n`$parameterId`. `valueKind` fixes what sort of value it holds and\n`viewType` chooses the input control. Dashboards can place a parameter\non the grid as a card; worksheets cannot.\n",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "label": {
          "type": "string",
          "minLength": 1
        },
        "viewType": {
          "type": "string",
          "enum": [
            "resourceInput",
            "dropdown",
            "textInput",
            "numberInput",
            "singleSelect",
            "multiSelect"
          ],
          "description": "UI widget hint. Defaults vary by `valueKind.kind`:\n- `resource` → `resourceInput`\n- `scalar` with a `valueSource` → `singleSelect`\n- `scalar` without → `textInput`\nOmit when the default applies.\n"
        },
        "valueKind": {
          "$ref": "#/$defs/ValueKind"
        },
        "allowEmpty": {
          "type": "boolean",
          "description": "Default `true`. Omit when default."
        },
        "hidden": {
          "type": "boolean",
          "description": "When `true`, the parameter's input control is not rendered to\nviewers; the parameter still drives queries and (per the\nhide-sections feature) section visibility. Set only at creation\ntime. Default `false`. Omit when default.\n"
        },
        "defaultValue": {
          "description": "The parameter's default value, as a tagged object with exactly\none key naming the value's type. For a string parameter,\n`{ \"string\": null }` means an empty control that encodes as OPAL\nnull, while `{ \"string\": \"\" }` encodes as an empty string. Omit\nwhen there is no default.\n",
          "$ref": "#/$defs/ParameterDefaultValue"
        },
        "customEmptyValueLabel": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "ParameterDefaultValue": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "bool": {
          "type": "boolean"
        },
        "float64": {
          "type": "number",
          "format": "double"
        },
        "int64": {
          "description": "A 64-bit integer. Normally a decimal string, which preserves\nfull precision; may also be a JSON number or `null`.\n",
          "type": [
            "string",
            "number",
            "null"
          ]
        },
        "string": {
          "type": [
            "string",
            "null"
          ]
        },
        "timestamp": {
          "$ref": "#/$defs/TimeNano"
        },
        "duration": {
          "$ref": "#/$defs/DurationNanoseconds"
        },
        "array": {
          "description": "A list of values. JSON `null` means empty. Otherwise an object\nwith a `value` array — not a bare JSON array. Items are scalar\ncells; nested arrays and resource links are not allowed.\n",
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": false,
          "properties": {
            "value": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/ParameterDefaultValueCell"
              }
            }
          }
        },
        "link": {
          "description": "A resource-instance value, or JSON `null` when unset.\n",
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": false,
          "properties": {
            "datasetId": {
              "$ref": "#/$defs/ObjectId"
            },
            "storedLabel": {
              "type": "string"
            },
            "primaryKeyValue": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "value": {
                    "$ref": "#/$defs/ParameterDefaultValueCell"
                  }
                }
              }
            }
          }
        },
        "datasetref": {
          "$ref": "#/$defs/ParameterDefaultValueDatasetRef"
        },
        "nullValueType": {
          "type": "string"
        }
      }
    },
    "ParameterDefaultValueCell": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "bool": {
          "type": "boolean"
        },
        "float64": {
          "type": "number",
          "format": "double"
        },
        "int64": {
          "description": "A 64-bit integer. Normally a decimal string, which preserves\nfull precision; may also be a JSON number or `null`.\n",
          "type": [
            "string",
            "number",
            "null"
          ]
        },
        "string": {
          "type": [
            "string",
            "null"
          ]
        },
        "timestamp": {
          "$ref": "#/$defs/TimeNano"
        },
        "duration": {
          "$ref": "#/$defs/DurationNanoseconds"
        },
        "datasetref": {
          "$ref": "#/$defs/ParameterDefaultValueDatasetRef"
        },
        "nullValueType": {
          "type": "string"
        }
      }
    },
    "ParameterDefaultValueDatasetRef": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "datasetId": {
          "$ref": "#/$defs/ObjectId"
        },
        "datasetPath": {
          "type": "string"
        },
        "stageId": {
          "type": "string"
        }
      }
    },
    "PieOptions": {
      "type": "object",
      "additionalProperties": false,
      "description": "Pie / donut chart options. `key` picks the column that divides the\ncircle into slices and `value` the column that sizes them, so the\nencoding is the key/value pair TopList uses rather than x/y.\n",
      "properties": {
        "key": {
          "$ref": "#/$defs/FieldRef"
        },
        "value": {
          "$ref": "#/$defs/FieldRef"
        },
        "keyConfig": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "order": {
              "type": "string",
              "enum": [
                "descending",
                "ascending"
              ]
            },
            "showOthers": {
              "type": "boolean",
              "description": "Collapse the slices beyond `limit` into a single\n\"Other\" slice instead of dropping them.\n"
            },
            "limit": {
              "type": "integer",
              "minimum": 1
            },
            "color": {
              "$ref": "#/$defs/ColorConfig"
            }
          }
        },
        "valueConfig": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "format": {
              "$ref": "#/$defs/CellNumberFormat"
            }
          }
        },
        "pieConfig": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "innerRadius": {
              "type": "number",
              "format": "double",
              "description": "Hole size as a fraction of the outer radius. `0`\n(the default) is a full pie; any larger value\nrenders a donut.\n"
            },
            "showValues": {
              "type": "boolean"
            }
          }
        },
        "extensions": {
          "$ref": "#/$defs/ExtensionsBag"
        }
      }
    },
    "PointAnnotation": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "at"
      ],
      "properties": {
        "at": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "color": {
          "type": "string"
        }
      }
    },
    "PredicateCidr": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "values"
      ],
      "description": "Match an IPv4 address column against CIDR ranges. Each `value` is a\nCIDR string, and each may be included or excluded.\n",
      "properties": {
        "values": {
          "$ref": "#/$defs/IncludeExcludeValues"
        }
      }
    },
    "PredicateExists": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "joinKey"
      ],
      "description": "Keep only rows that have a matching row in another dataset. A row is\nkept when it joins, on `joinKey`, to the input named by `inputLabel`.\n",
      "properties": {
        "joinKey": {
          "$ref": "#/$defs/JoinKey"
        },
        "inputLabel": {
          "type": "string",
          "description": "Name of the input holding the dataset to join against, as declared\nin the card's list of inputs.\n"
        },
        "streaming": {
          "type": "boolean",
          "description": "Evaluate the join as a streaming existence check. Default `false`.\nOmit when default.\n"
        }
      }
    },
    "PredicateFilterCondition": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "condition"
      ],
      "description": "A raw OPAL boolean condition, for filters the other predicates cannot\nexpress. The condition is stored as an opaque string and is not parsed\nor validated here. Supply the boolean expression on its own, without a\nsurrounding filter verb — the verb comes from the enclosing\n`FilterRule`.\n",
      "properties": {
        "condition": {
          "type": "string",
          "description": "OPAL boolean expression, without a surrounding filter verb."
        },
        "disabledCondition": {
          "type": "string",
          "description": "A condition that is currently turned off, retained in the document\nso it can be restored later.\n"
        }
      }
    },
    "PredicateJsonValues": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "paths"
      ],
      "description": "Match values at one or more JSON paths inside an object, variant, or\nJSON column. Values listed under the same path are OR-ed together;\n`combine` controls how the separate paths combine with each other.\n",
      "properties": {
        "combine": {
          "type": "string",
          "enum": [
            "and",
            "or"
          ],
          "description": "How to combine across paths. Default `and`."
        },
        "paths": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "path",
              "values"
            ],
            "properties": {
              "path": {
                "type": "string"
              },
              "excludePath": {
                "type": "boolean",
                "description": "Exclude (negate) this whole path. Default `false`."
              },
              "values": {
                "$ref": "#/$defs/IncludeExcludeValues"
              }
            }
          }
        }
      }
    },
    "PredicateMultiColumn": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "fields",
        "rows"
      ],
      "description": "Filter on combinations of several columns or paths at once. Each entry in\n`rows` is one allowed combination — or, with `exclude`, one disallowed\ncombination — whose values line up positionally with `fields`.\n",
      "properties": {
        "fields": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "columnId"
            ],
            "properties": {
              "columnId": {
                "type": "string"
              },
              "path": {
                "type": "string"
              }
            }
          }
        },
        "rows": {
          "type": "array",
          "items": {
            "type": "array",
            "items": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "exclude": {
          "type": "boolean",
          "description": "Exclude the listed tuples instead of including them. Default `false`."
        }
      }
    },
    "PredicateParameter": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "parameters"
      ],
      "description": "Bind a column filter to one or more dashboard or worksheet parameters.\nThe values to filter on come from those parameters at query time, so the\nfilter follows whatever a viewer selects.\n",
      "properties": {
        "parameters": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "parameterId"
            ],
            "properties": {
              "parameterId": {
                "type": "string"
              },
              "columnPath": {
                "type": "string",
                "description": "Filter against a path within an object/variant column."
              },
              "resourceInstanceField": {
                "type": "string",
                "description": "For a resource-instance parameter, filter against one of its\nkey fields rather than the whole instance.\n"
              }
            }
          }
        },
        "tagId": {
          "type": "string",
          "description": "Correlation-tag id, when the bound filter targets a tag."
        },
        "datasetKind": {
          "type": "string",
          "description": "Kind of the dataset being filtered (e.g. `Event`, `Resource`). The\nrule picks its OPAL filter verb from this, because a resource\ndataset filters differently than an event dataset. Omit for a\nplain row filter.\n"
        },
        "castToColumnType": {
          "type": "boolean",
          "description": "Whether to cast the bound parameter value to the column's type\nbefore comparing. Set `false` to compare the value as it is, with no\ntype coercion. Default `true`. Omit when default.\n"
        }
      }
    },
    "PredicatePattern": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "values"
      ],
      "description": "Filter by log or data pattern cluster. Each `value` is a pattern\nidentifier produced by an earlier pattern-extraction stage in the\npipeline.\n",
      "properties": {
        "values": {
          "$ref": "#/$defs/IncludeExcludeValues"
        }
      }
    },
    "PredicateRange": {
      "type": "object",
      "additionalProperties": false,
      "description": "Keep rows whose column value falls in a numeric, time, or duration\nrange. `start` and `end` are inclusive by default; either may be null\nfor an open-ended range.\n",
      "properties": {
        "start": {
          "type": [
            "number",
            "null"
          ]
        },
        "end": {
          "type": [
            "number",
            "null"
          ]
        },
        "startUnit": {
          "type": "string",
          "description": "OPAL duration unit for `start` on duration columns (e.g. `ns`)."
        },
        "endUnit": {
          "type": "string",
          "description": "OPAL duration unit for `end` on duration columns."
        },
        "startExclusive": {
          "type": "boolean",
          "description": "Use `>` instead of `>=` for `start`. Default `false`."
        },
        "endExclusive": {
          "type": "boolean",
          "description": "Use `<` instead of `<=` for `end`. Default `false`."
        },
        "invert": {
          "type": "boolean",
          "description": "Filter out the range instead (wraps in `not (...)`). Default `false`."
        },
        "toColumnId": {
          "type": "string",
          "description": "Second column, for comparing one interval against another — for\nexample filtering on a resource's validity window, where the range\nspans from `column` to `toColumnId`.\n"
        }
      }
    },
    "PredicateResourceInstance": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "instances"
      ],
      "description": "Narrow the results to specific resource instances. Each instance is\nidentified by its primary-key column/value pairs.\n",
      "properties": {
        "instances": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "resourceId"
            ],
            "properties": {
              "resourceId": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "name",
                    "value"
                  ],
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "value": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              },
              "exclude": {
                "type": "boolean",
                "description": "Exclude this instance instead of including it. Default `false`."
              }
            }
          }
        }
      }
    },
    "PredicateTag": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "values"
      ],
      "description": "Filter on the values of a correlation tag. Name the tag with `tagName`,\n`tagId`, or both. To negate the filter, mark the individual entries in\n`values` as excluded.\n",
      "properties": {
        "tagName": {
          "type": "string"
        },
        "tagId": {
          "type": "string"
        },
        "values": {
          "$ref": "#/$defs/IncludeExcludeValues"
        }
      }
    },
    "PredicateText": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "match",
        "terms"
      ],
      "description": "Match text against the column, or across the whole row when\n`FilterRule.column` is absent. `match` chooses the syntax — substring,\nglob, regular expression, free-text search, or token lookup — and with\nit the OPAL function the rule compiles to. `match` is always stored\nexplicitly and is never guessed from the shape of the terms.\n",
      "properties": {
        "match": {
          "type": "string",
          "enum": [
            "contains",
            "glob",
            "regex",
            "search",
            "tokens"
          ],
          "description": "- contains — substring via `contains()` (case-sensitive) or `search()` (see `caseSensitive`)\n- glob     — glob `~` / `!~`\n- regex    — regular expression\n- search   — free-text `search()` term (unified search)\n- tokens   — token-index lookup\n"
        },
        "caseSensitive": {
          "type": "boolean",
          "description": "Only for the `contains` match. Default `true`."
        },
        "terms": {
          "$ref": "#/$defs/TextMatchTerms"
        },
        "paths": {
          "type": "array",
          "description": "Term groups scoped to individual JSON paths. Only for\n`match: regex` and `match: search`; each entry applies its terms to\none path within the column instead of the column as a whole.\n",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "path",
              "terms"
            ],
            "properties": {
              "path": {
                "type": "string"
              },
              "terms": {
                "$ref": "#/$defs/TextMatchTerms"
              }
            }
          }
        }
      }
    },
    "PredicateValues": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "values"
      ],
      "description": "Match the column against a list of discrete values.",
      "properties": {
        "values": {
          "$ref": "#/$defs/IncludeExcludeValues"
        }
      }
    },
    "Query": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "content"
      ],
      "description": "A query card: an OPAL pipeline run over one or more data inputs and\nrendered as a visualization. This is the default card type in both\ndashboards and worksheets.\n\nA card carries either a single `visualization` or, when each\nexpression in the query is charted separately, a `multiVisualization`\narray. Exactly one of the two is present.\n",
      "properties": {
        "type": {
          "const": "query",
          "description": "Default `query`. May be omitted."
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "description": "Optional. Required only when another card references this one\nas an input (`Input.source.card`), or when it appears in a\ndashboard's `hiddenQueries`. Any non-empty string; the format\nis not constrained. Ids are stored exactly as sent, so\nreferences to them from inside the opaque\n`content.builderDef.ui` stay valid.\n"
        },
        "label": {
          "type": "string",
          "minLength": 1,
          "description": "Optional. User-authored card title. Omit when the card is\nunnamed; clients synthesize a display name (e.g. \"Untitled\nStage N\") and must not persist that placeholder. Empty\nstring is invalid — absence is omission. Hidden / base\nqueries are identified by `id`, not by label. (Grid\nplacement lives on the wrapping `Card.geometry`, not here.)\n"
        },
        "timeRange": {
          "$ref": "#/$defs/FrontendTimeRange"
        },
        "content": {
          "$ref": "#/$defs/CardContent"
        },
        "visualization": {
          "$ref": "#/$defs/Visualization"
        },
        "multiVisualization": {
          "type": "array",
          "description": "One visualization per expression, for a card whose query has\nseveral expressions and charts each one separately. Each entry\npairs an expression id (`A`, `B`, ...) with its visualization —\nfor example a dual-axis chart where `A` is a line and `B` is a\nbar. Present instead of `visualization`.\n",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "expression",
              "visualization"
            ],
            "properties": {
              "expression": {
                "type": "string",
                "description": "The expression id this visualization renders."
              },
              "visualization": {
                "$ref": "#/$defs/Visualization"
              }
            }
          }
        },
        "drilldowns": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Drilldown"
          }
        },
        "ui": {
          "type": "object",
          "description": "Opaque card-level UI state, stored and returned unchanged. Must be\na JSON object; its contents are not validated.\n",
          "additionalProperties": true
        }
      }
    },
    "RangeAnnotation": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "from",
        "to"
      ],
      "properties": {
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "color": {
          "type": "string"
        }
      }
    },
    "ScatterOptions": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "xConfig": {
          "$ref": "#/$defs/AxisConfig"
        },
        "yConfig": {
          "$ref": "#/$defs/AxisConfig"
        },
        "colorConfig": {
          "$ref": "#/$defs/ColorConfig"
        },
        "labelConfig": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "field": {
              "$ref": "#/$defs/FieldRef"
            }
          }
        },
        "radiusConfig": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "field": {
              "$ref": "#/$defs/FieldRef"
            },
            "range": {
              "$ref": "#/$defs/AxisBounds"
            },
            "scaleType": {
              "type": "string",
              "enum": [
                "log",
                "linear"
              ]
            },
            "fillType": {
              "type": "string",
              "enum": [
                "solid",
                "none",
                "translucent"
              ]
            }
          }
        },
        "horizontal": {
          "type": "boolean"
        },
        "extensions": {
          "$ref": "#/$defs/ExtensionsBag"
        }
      }
    },
    "Section": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "title",
        "cards"
      ],
      "properties": {
        "title": {
          "type": "string"
        },
        "collapsed": {
          "type": "boolean",
          "description": "Default `false`. Omit when default."
        },
        "hideParameter": {
          "type": "string",
          "description": "Id of a parameter that controls this section's visibility\n(the \"hide sections\" feature). When that parameter has a\ntruthy value the section is hidden from viewers. Absent when\nthe section is always shown.\n"
        },
        "cards": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Card"
          }
        }
      }
    },
    "SequentialColorScale": {
      "type": "string",
      "enum": [
        "Blues",
        "Greens",
        "Greys",
        "Oranges",
        "Purples",
        "Reds",
        "BuGn",
        "BuPu",
        "GnBu",
        "OrRd",
        "PuBu",
        "PuBuGn",
        "PuRd",
        "RdPu",
        "YlGn",
        "YlGnBu",
        "YlOrBr",
        "YlOrRd",
        "Viridis",
        "Inferno",
        "Magma",
        "Plasma",
        "Warm",
        "Cool",
        "Cubehelix",
        "Turbo",
        "Cividis"
      ]
    },
    "SingleStatOptions": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "yConfig": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "domain": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "range": {
                  "$ref": "#/$defs/AxisBounds"
                }
              }
            },
            "format": {
              "$ref": "#/$defs/CellNumberFormat"
            },
            "color": {
              "$ref": "#/$defs/ColorConfig"
            },
            "showRaw": {
              "type": "boolean"
            }
          }
        },
        "style": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "textMode": {
              "type": "string",
              "enum": [
                "value",
                "name"
              ]
            },
            "textAlignment": {
              "type": "string",
              "enum": [
                "center"
              ]
            },
            "colorMode": {
              "type": "string",
              "enum": [
                "value",
                "none"
              ]
            },
            "chartMode": {
              "type": "string",
              "enum": [
                "none",
                "line"
              ]
            },
            "showPercentChange": {
              "type": "boolean"
            },
            "label": {
              "type": "string"
            },
            "valueFontSize": {
              "type": "number",
              "format": "double"
            },
            "groupFontSize": {
              "type": "number",
              "format": "double"
            }
          }
        },
        "facet": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sort": {
              "type": "string",
              "enum": [
                "value-ascending",
                "value-descending",
                "name-ascending",
                "name-descending"
              ]
            },
            "limit": {
              "type": "integer",
              "minimum": 1
            }
          }
        },
        "aggregation": {
          "type": "string",
          "enum": [
            "last-non-null",
            "last",
            "first-non-null",
            "first"
          ]
        },
        "extensions": {
          "$ref": "#/$defs/ExtensionsBag"
        }
      }
    },
    "StackMode": {
      "type": "string",
      "enum": [
        "zero",
        "center",
        "normalize"
      ]
    },
    "TableConfig": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "viewType": {
          "type": "string",
          "enum": [
            "auto",
            "flexible",
            "compact",
            "log"
          ],
          "description": "Row density and layout of the table. Default `auto`,\nwhich picks a density based on the result. Omit when\ndefault.\n"
        },
        "columnWidths": {
          "type": "object",
          "additionalProperties": {
            "type": "number",
            "format": "double",
            "minimum": 1
          }
        },
        "columnVisibility": {
          "type": "object",
          "additionalProperties": {
            "type": "boolean"
          }
        },
        "columnOrder": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "conditionalFormatting": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/ColumnFormatting"
          },
          "description": "Per-column conditional formatting rules. Keys are column\nnames. Absent columns have no special formatting.\n"
        },
        "sort": {
          "type": "array",
          "description": "How the table's rows are sorted. Each entry sorts by one\nresult column, and earlier entries take precedence. This\nsorts the presented result and does not change the card's\nOPAL pipeline. Omit to leave the result in its natural\norder.\n",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "column",
              "ascending"
            ],
            "properties": {
              "column": {
                "type": "string"
              },
              "ascending": {
                "type": "boolean"
              }
            }
          }
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "description": "Maximum number of rows to show. This limits the presented\nresult and does not add a `limit` verb to the card's OPAL\npipeline. Omit to use the view default.\n"
        }
      }
    },
    "TableOptions": {
      "type": "object",
      "additionalProperties": false,
      "description": "Table presentation lives in `Visualization.tableConfig`; this\nvariant only carries the extensions escape hatch.\n",
      "properties": {
        "extensions": {
          "$ref": "#/$defs/ExtensionsBag"
        }
      }
    },
    "TextMatchTerms": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "term"
        ],
        "properties": {
          "term": {
            "type": "string",
            "description": "The match text: a substring, a glob, a regex, a search term, or a\nsingle token, per the enclosing `match`.\n"
          },
          "exclude": {
            "type": "boolean",
            "description": "Exclude rows matching this term instead of keeping them. Default\n`false`. Must be `false` for the `contains` and `tokens` matches,\nwhich support inclusion only.\n"
          }
        }
      }
    },
    "Threshold": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "value",
        "color"
      ],
      "properties": {
        "value": {
          "type": "number",
          "format": "double"
        },
        "op": {
          "type": "string",
          "enum": [
            "gt",
            "lt"
          ],
          "description": "Default `gt`. Omit when default."
        },
        "color": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "fillRegion": {
          "type": "boolean",
          "description": "Default `false`. Omit when default."
        }
      }
    },
    "ThresholdsConfig": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "startingColor"
      ],
      "description": "Banded coloring driven by numeric thresholds: each band colors\nvalues above its `value`. This is separate from\n`Visualization.thresholds[]`, which draws threshold lines and\nregions on a chart.\n",
      "properties": {
        "startingColor": {
          "$ref": "#/$defs/ColorSelection"
        },
        "defaultColor": {
          "$ref": "#/$defs/ColorSelection"
        },
        "thresholds": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "value",
              "exceedsColor"
            ],
            "properties": {
              "value": {
                "type": "number",
                "format": "double"
              },
              "exceedsColor": {
                "$ref": "#/$defs/ColorSelection"
              }
            }
          }
        },
        "drawType": {
          "type": "string",
          "enum": [
            "Lines",
            "Dashed lines",
            "Filled regions",
            "Filled regions & lines",
            "Filled regions & dashed lines"
          ]
        },
        "mode": {
          "type": "string",
          "enum": [
            "Value",
            "Percentage"
          ]
        },
        "visible": {
          "type": "boolean"
        },
        "target": {
          "type": "string",
          "enum": [
            "text",
            "fill",
            "pill"
          ],
          "description": "Cell color target (table contexts)."
        }
      }
    },
    "Time": {
      "type": "string",
      "format": "RFC3339"
    },
    "TimeNano": {
      "type": "string",
      "format": "RFC3339Nano"
    },
    "TopListOptions": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "key": {
          "$ref": "#/$defs/FieldRef"
        },
        "value": {
          "$ref": "#/$defs/FieldRef"
        },
        "viewConfig": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "useSingleStatOnSingleGroup": {
              "type": "boolean"
            }
          }
        },
        "keyConfig": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "label": {
              "type": "string"
            },
            "order": {
              "type": "string",
              "enum": [
                "descending",
                "ascending"
              ]
            },
            "showOthers": {
              "type": "boolean"
            },
            "limit": {
              "type": "integer",
              "minimum": 1
            }
          }
        },
        "valueConfig": {
          "$ref": "#/$defs/TopValueConfig"
        },
        "barConfig": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "bandSize": {
              "type": "number",
              "format": "double"
            }
          }
        },
        "extensions": {
          "$ref": "#/$defs/ExtensionsBag"
        }
      }
    },
    "TopValueConfig": {
      "type": "object",
      "additionalProperties": false,
      "description": "Value-axis config for TopList / ChangeOverTime.",
      "properties": {
        "range": {
          "$ref": "#/$defs/AxisBounds"
        },
        "scaleType": {
          "$ref": "#/$defs/LogScale"
        },
        "format": {
          "$ref": "#/$defs/CellNumberFormat"
        },
        "color": {
          "$ref": "#/$defs/ColorConfig"
        },
        "showAxis": {
          "type": "boolean"
        },
        "label": {
          "type": "string"
        },
        "aggregate": {
          "type": "string",
          "description": "Optional aggregate op (TopList only)."
        }
      }
    },
    "User": {
      "title": "User",
      "type": "object",
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "title": "User Identifier",
          "$ref": "#/$defs/ObjectId"
        },
        "label": {
          "title": "User Label",
          "type": "string"
        },
        "timezone": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        }
      }
    },
    "ValueKind": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "kind"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "resource",
            "scalar",
            "correlationTag"
          ]
        },
        "resource": {
          "$ref": "#/$defs/ValueKindResource",
          "description": "Populated when `kind` is `resource`; absent otherwise."
        },
        "scalar": {
          "$ref": "#/$defs/ValueKindScalar",
          "description": "Populated when `kind` is `scalar`; absent otherwise."
        },
        "correlationTag": {
          "$ref": "#/$defs/ValueKindCorrelationTag",
          "description": "Populated when `kind` is `correlationTag`; absent otherwise."
        }
      }
    },
    "ValueKindCorrelationTag": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "tagName"
      ],
      "description": "Correlation tag parameter. The user selects one or more values\nof a named correlation tag (e.g. `k8s.pod.name`). Expressions\nbind to this parameter via `FilterParameter` actions.\n",
      "properties": {
        "tagName": {
          "type": "string"
        }
      }
    },
    "ValueKindResource": {
      "type": "object",
      "additionalProperties": false,
      "description": "A resource-instance parameter: the viewer picks one specific\nresource — a row identified by its primary key — from a dataset.\n`datasetId` may be absent for a parameter not yet bound to a\ndataset; such a parameter is stored as-is, but cannot resolve a\nvalue until a dataset is set.\n",
      "properties": {
        "datasetId": {
          "$ref": "#/$defs/ObjectId"
        }
      }
    },
    "ValueKindScalar": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "scalarType"
      ],
      "description": "Scalar value parameter. The user enters or selects a simple\nvalue (string, number, or boolean).\n",
      "properties": {
        "scalarType": {
          "type": "string",
          "enum": [
            "string",
            "number",
            "bool"
          ]
        },
        "valueSource": {
          "$ref": "#/$defs/ValueSource",
          "description": "For select parameters (viewType `singleSelect` / `multiSelect`),\nwhere the dropdown's candidate values come from. Absent for\nfree-entry (`textInput` / `numberInput`) parameters.\n"
        }
      }
    },
    "ValueSource": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "source"
      ],
      "properties": {
        "source": {
          "type": "string",
          "enum": [
            "custom",
            "dataset",
            "card"
          ]
        },
        "custom": {
          "$ref": "#/$defs/ValueSourceCustom",
          "description": "Populated when `source` is `custom`; absent otherwise."
        },
        "dataset": {
          "$ref": "#/$defs/ValueSourceDataset",
          "description": "Populated when `source` is `dataset`; absent otherwise."
        },
        "card": {
          "$ref": "#/$defs/ValueSourceCard",
          "description": "Populated when `source` is `card`; absent otherwise."
        }
      }
    },
    "ValueSourceCard": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "cardId"
      ],
      "description": "Values are the distinct entries of a column in another card's\nresult.\n",
      "properties": {
        "cardId": {
          "type": "string"
        },
        "columnId": {
          "type": "string"
        }
      }
    },
    "ValueSourceCustom": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "values"
      ],
      "description": "A fixed list of values, authored by hand.",
      "properties": {
        "values": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Map of value -> display label."
        }
      }
    },
    "ValueSourceDataset": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "datasetId"
      ],
      "description": "Values are the distinct entries of a column in a dataset.\n",
      "properties": {
        "datasetId": {
          "$ref": "#/$defs/ObjectId"
        },
        "columnId": {
          "type": "string"
        }
      }
    },
    "Visualization": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "type"
      ],
      "description": "How a query card's results are rendered. `type` picks the chart\ntype; `x`, `y`, and `groupBy` map result columns onto the\nchart's axes and series; `legend`, `thresholds`, and\n`annotations` apply to every chart type; and `options` carries\nthe settings specific to the chosen `type`.\n",
      "properties": {
        "type": {
          "$ref": "#/$defs/VizType"
        },
        "x": {
          "$ref": "#/$defs/FieldRef",
          "description": "The result column plotted on the x-axis. Usually a plain\ncolumn id (`{type: column, column: \"<id>\"}`); use the\n`link` form when the axis groups by a link or resource\nrather than a single column.\n"
        },
        "y": {
          "type": "array",
          "description": "The result column or columns plotted on the y-axis.\nUsually plain column ids\n(`{type: column, column: \"<id>\"}`); an entry may use the\n`link` form to address a link or resource by its source\nfields.\n",
          "items": {
            "$ref": "#/$defs/FieldRef"
          }
        },
        "groupBy": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "legend": {
          "$ref": "#/$defs/LegendConfig"
        },
        "thresholds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Threshold"
          }
        },
        "annotations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Annotation"
          }
        },
        "tableConfig": {
          "$ref": "#/$defs/TableConfig",
          "description": "Meaningful only when `type == \"table\"`."
        },
        "options": {
          "$ref": "#/$defs/VisualizationOptions",
          "description": "Settings specific to the chosen chart type — axis, color,\nline, and bar configuration and so on. `options.type`\nselects the variant and always matches\n`Visualization.type`.\n\nAnything that applies to every chart type lives at the\ntop level instead and is not repeated here: the `x`,\n`y`, and `groupBy` encodings and the `legend`,\n`thresholds`, and `annotations` settings. Each variant\nalso carries an `extensions` object for settings that do\nnot yet have a typed field.\n"
        }
      }
    },
    "VisualizationOptions": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "$ref": "#/$defs/VizType"
        },
        "line": {
          "$ref": "#/$defs/LineOptions"
        },
        "bar": {
          "$ref": "#/$defs/BarOptions"
        },
        "area": {
          "$ref": "#/$defs/AreaOptions"
        },
        "scatter": {
          "$ref": "#/$defs/ScatterOptions"
        },
        "table": {
          "$ref": "#/$defs/TableOptions"
        },
        "singleStat": {
          "$ref": "#/$defs/SingleStatOptions"
        },
        "heatmap": {
          "$ref": "#/$defs/HeatmapOptions"
        },
        "topList": {
          "$ref": "#/$defs/TopListOptions"
        },
        "changeOverTime": {
          "$ref": "#/$defs/ChangeOverTimeOptions"
        },
        "anomaly": {
          "$ref": "#/$defs/AnomalyOptions"
        },
        "customVega": {
          "$ref": "#/$defs/CustomVegaOptions"
        },
        "customVegaLite": {
          "$ref": "#/$defs/CustomVegaLiteOptions"
        },
        "pie": {
          "$ref": "#/$defs/PieOptions"
        },
        "legacyD3": {
          "$ref": "#/$defs/LegacyD3Options",
          "description": "Populated for every deprecated / D3-only `type`\n(timeseries_deprecated, histogram, gantt, ...).\n"
        }
      }
    },
    "VizType": {
      "type": "string",
      "description": "The chart type. Also selects which `VisualizationOptions`\nvariant applies — `Visualization.type` and\n`VisualizationOptions.type` always match.\n\nTypes suffixed `_deprecated` are superseded by a current type\nof the same shape (for example `line` supersedes\n`timeseries_deprecated`) and SHOULD NOT be used in new\ncontent. The types listed after them are specialized charts\nthat have no current equivalent and are not deprecated.\n\n`anomaly` is read-only. The product has no editor for it, and\nonly the monitor view produces one. Preserve it when updating\na dashboard that already has one, but do not author it.\n",
      "enum": [
        "line",
        "bar",
        "area",
        "scatter",
        "table",
        "singleStat",
        "heatmap",
        "topList",
        "changeOverTime",
        "anomaly",
        "customVega",
        "customVegaLite",
        "pie",
        "timeseries_deprecated",
        "bar_deprecated",
        "stacked_area_deprecated",
        "singlevalue_deprecated",
        "list_deprecated",
        "valueovertime_deprecated",
        "stacked_bar_deprecated",
        "circular",
        "histogram",
        "gantt",
        "force_displacement",
        "dag",
        "geographic_map",
        "choropleth_map",
        "flame",
        "hex",
        "waterfall"
      ]
    }
  }
}