{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "steps",
  "description": "Adım adım talimat; `mode:\"progress\"` ise canlı durum kartı (sıra/ilerleme çizgisi, `current` adımı vurgular, `live` rozeti).",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "steps"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "steps"
      ]
    },
    "version": {
      "type": "integer",
      "enum": [
        1
      ]
    },
    "tone": {
      "type": "string",
      "enum": [
        "neutral",
        "success",
        "warning",
        "danger",
        "brand"
      ]
    },
    "brand_color": {
      "type": "string",
      "enum": [
        "mavi",
        "turuncu",
        "mor",
        "pembe",
        "altin",
        "yesil",
        "turkuaz"
      ]
    },
    "title": {
      "type": "string",
      "maxLength": 80
    },
    "subtitle": {
      "type": "string",
      "maxLength": 200
    },
    "mode": {
      "type": "string",
      "enum": [
        "instructions",
        "progress"
      ]
    },
    "steps": {
      "type": "array",
      "minItems": 1,
      "maxItems": 20,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 300,
            "minLength": 1
          },
          "detail": {
            "type": "string",
            "maxLength": 300
          }
        },
        "required": [
          "text"
        ]
      }
    },
    "current": {
      "type": "integer",
      "minimum": 0,
      "maximum": 19,
      "description": "progress modunda geçerli adım (0'dan)"
    },
    "live": {
      "type": "boolean",
      "description": "canlı rozeti; güncellemeler inkiEditMessageComponent ile"
    },
    "actions": {
      "type": "array",
      "minItems": 1,
      "maxItems": 3,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "action_id": {
            "type": "string",
            "pattern": "^[a-z0-9_-]{1,64}$",
            "description": "düğme eylem kimliği; `values.action_id` olarak geri gelir"
          },
          "label": {
            "type": "string",
            "maxLength": 40,
            "minLength": 1
          },
          "style": {
            "type": "string",
            "enum": [
              "primary",
              "secondary",
              "danger"
            ]
          },
          "disabled": {
            "type": "boolean"
          }
        },
        "required": [
          "action_id",
          "label"
        ],
        "description": "basılınca `inki_component_action{action:\"submit\", values:{action_id}}`"
      }
    }
  },
  "x-inki-eylem": [
    {
      "action": "submit",
      "values": {
        "action_id": "actions[].action_id"
      }
    }
  ]
}
