{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mantic/json-schema/mantic-group-summary-response-schema.json",
  "title": "GroupSummaryResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mantic-group-summaries-api-openapi.yml#/components/schemas/GroupSummaryResponse",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "list_id": {
      "type": "integer",
      "title": "List Id"
    },
    "group_id": {
      "type": "integer",
      "title": "Group Id"
    },
    "group_name": {
      "type": "string",
      "title": "Group Name"
    },
    "enabled": {
      "type": "boolean",
      "title": "Enabled"
    },
    "custom_instructions": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Custom Instructions"
    },
    "title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Title"
    },
    "short_summary": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Short Summary"
    },
    "long_summary": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Long Summary"
    },
    "min_auto_rerun_interval_seconds": {
      "type": "integer",
      "title": "Min Auto Rerun Interval Seconds"
    },
    "last_generated_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Generated At"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    },
    "latest_run": {
      "anyOf": [
        {
          "$ref": "#/$defs/GroupSummaryRunResponse"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "id",
    "list_id",
    "group_id",
    "group_name",
    "enabled",
    "custom_instructions",
    "title",
    "short_summary",
    "long_summary",
    "min_auto_rerun_interval_seconds",
    "last_generated_at",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "GroupSummaryRunResponse": {
      "properties": {
        "id": {
          "type": "integer",
          "title": "Id"
        },
        "summary_id": {
          "type": "integer",
          "title": "Summary Id"
        },
        "trigger_type": {
          "type": "string",
          "title": "Trigger Type"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "is_forced": {
          "type": "boolean",
          "title": "Is Forced"
        },
        "input_hash": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Input Hash"
        },
        "error_message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error Message"
        },
        "queued_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Queued At"
        },
        "started_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Started At"
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Completed At"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "summary_id",
        "trigger_type",
        "status",
        "is_forced",
        "input_hash",
        "error_message",
        "queued_at",
        "started_at",
        "completed_at",
        "created_at"
      ],
      "title": "GroupSummaryRunResponse"
    }
  }
}