{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "AI instruction preset",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "name",
    "instruction"
  ],
  "properties": {
    "id": {
      "description": "Optional. Omit the key to generate a source identity; null and empty strings are invalid.",
      "type": "string",
      "minLength": 1
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 40
    },
    "createdAt": {
      "description": "Optional. Omission and null mean unavailable metadata. Malformed timestamps are rejected.",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updatedAt": {
      "description": "Optional. Omission and null mean unavailable metadata. Malformed timestamps are rejected.",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "instruction": {
      "type": "string",
      "minLength": 1,
      "maxLength": 10000,
      "description": "Nonblank plain text. Runtime counts raw UTF-16 code units, preserves paragraphs and permits up to 10,000 units."
    }
  }
}
