{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A reusable interview questionnaire template. Captures the questions a sim creator is asked to derive constitution and style.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "maxGraphemes": 3000,
            "maxLength": 30000,
            "type": "string"
          },
          "descriptionFacets": {
            "items": {
              "ref": "app.bsky.richtext.facet",
              "type": "ref"
            },
            "type": "array"
          },
          "name": {
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "questions": {
            "items": {
              "ref": "#question",
              "type": "ref"
            },
            "maxLength": 40,
            "minLength": 1,
            "type": "array"
          }
        },
        "required": [
          "name",
          "questions",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "question": {
      "description": "A single question inside an interview template.",
      "properties": {
        "id": {
          "description": "Stable ID — lets answers survive prompt edits.",
          "maxLength": 64,
          "type": "string"
        },
        "prompt": {
          "maxLength": 1000,
          "type": "string"
        },
        "required": {
          "default": false,
          "type": "boolean"
        },
        "type": {
          "knownValues": [
            "open",
            "text",
            "yesNo"
          ],
          "type": "string"
        }
      },
      "required": [
        "id",
        "type",
        "prompt"
      ],
      "type": "object"
    }
  },
  "id": "org.simocracy.interviewTemplate",
  "lexicon": 1
}
