{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amigo/main/json-schema/amigo-paginated-response-dashboard-definition-response-schema.json",
  "title": "PaginatedResponse[DashboardDefinitionResponse]",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amigo-dashboards-api-openapi.yml#/components/schemas/PaginatedResponse_DashboardDefinitionResponse_",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/DashboardDefinitionResponse"
      },
      "type": "array",
      "title": "Items"
    },
    "has_more": {
      "type": "boolean",
      "title": "Has More"
    },
    "continuation_token": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Continuation Token"
    },
    "total": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Total"
    }
  },
  "type": "object",
  "required": [
    "items",
    "has_more"
  ],
  "$defs": {
    "DashboardDefinitionResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "workspace_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Workspace Id"
        },
        "slug": {
          "type": "string",
          "title": "Slug",
          "description": "URL-safe identifier"
        },
        "title": {
          "type": "string",
          "title": "Title",
          "description": "Dashboard display title"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description",
          "description": "Human-readable description"
        },
        "page_context": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Page Context",
          "description": "Developer console page where this dashboard renders"
        },
        "panels": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array",
          "title": "Panels",
          "description": "Ordered list of panel definitions"
        },
        "filters": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array",
          "title": "Filters",
          "description": "Dashboard-level filter controls"
        },
        "refresh_interval": {
          "type": "integer",
          "title": "Refresh Interval",
          "description": "Auto-refresh interval in seconds"
        },
        "is_active": {
          "type": "boolean",
          "title": "Is Active",
          "description": "Whether the dashboard is active"
        },
        "created_by": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created By",
          "description": "Creator identifier"
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At",
          "description": "When the dashboard was created"
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updated At",
          "description": "When the dashboard was last updated"
        }
      },
      "type": "object",
      "required": [
        "id",
        "slug",
        "title",
        "panels",
        "filters",
        "refresh_interval",
        "is_active"
      ],
      "title": "DashboardDefinitionResponse"
    }
  }
}