{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/stackit/main/json-schema/stackit-list-automations-response-schema.json",
  "title": "ListAutomationsResponse",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stackit-automation-openapi.yml#/components/schemas/ListAutomationsResponse",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/ListAutomationsItem"
      },
      "type": "array"
    },
    "nextPageToken": {
      "description": "A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.",
      "type": "string"
    }
  },
  "required": [
    "items"
  ],
  "type": "object",
  "$defs": {
    "AutomationScheduleTrigger": {
      "properties": {
        "rrule": {
          "description": "An rrule (Recurrence Rule) is a standardized string format used in iCalendar (RFC 5545) to define repeating events, and you can generate one by using a dedicated library or by using online generator tools to specify parameters like frequency, interval, and end dates",
          "type": "string"
        }
      },
      "required": [
        "rrule"
      ],
      "type": [
        "object",
        "null"
      ]
    },
    "AutomationTriggers": {
      "properties": {
        "schedule": {
          "$ref": "#/$defs/AutomationScheduleTrigger"
        }
      },
      "type": [
        "object",
        "null"
      ]
    },
    "ListAutomationsItem": {
      "properties": {
        "createTime": {
          "format": "date-time",
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "templateId": {
          "format": "uuid",
          "type": "string"
        },
        "triggers": {
          "$ref": "#/$defs/AutomationTriggers"
        },
        "updateTime": {
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "id",
        "createTime",
        "updateTime"
      ]
    }
  }
}