{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/observeinc/json-schema/observeinc-dashboard-list-response-schema.json",
  "title": "DashboardListResponse",
  "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-ListResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "dashboards",
    "meta",
    "errors"
  ],
  "properties": {
    "dashboards": {
      "type": "array",
      "description": "This page of results. Empty when the filter matches nothing or the\noffset is past the end.\n",
      "items": {
        "$ref": "#/$defs/Dashboard-ListItem"
      }
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    },
    "errors": {
      "type": "array",
      "description": "Items that could not be returned. Each entry identifies the dashboard\nby `id` and includes a `type`/`message` explaining why it was omitted.\nEmpty when all items were returned successfully.\n",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "type",
          "message"
        ],
        "properties": {
          "id": {
            "$ref": "#/$defs/ObjectId"
          },
          "type": {
            "type": "string",
            "description": "Stable machine-readable error type."
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation of why this item was omitted."
          }
        }
      }
    }
  },
  "$defs": {
    "Dashboard-ListItem": {
      "title": "DashboardListItem",
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "schemaVersion",
        "name",
        "createdAt",
        "updatedAt",
        "createdBy",
        "description",
        "updatedBy",
        "managedBy",
        "visibility",
        "objectTags"
      ],
      "description": "Dashboard envelope metadata returned by list. Does not include `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",
      "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"
        }
      }
    },
    "Meta": {
      "description": "List Response Metadata",
      "type": "object",
      "required": [
        "totalCount"
      ],
      "properties": {
        "totalCount": {
          "description": "The total number of resources available, independent of pagination.\nThe API may return -1 if the total count is unknown or cannot be computed\nin reasonable time.\n",
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "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"
    },
    "Time": {
      "type": "string",
      "format": "RFC3339"
    },
    "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"
        }
      }
    }
  }
}