{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xavio-in/json-schema/xavio-in-add-component-request-schema.json",
  "title": "AddComponentRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xavio-in-stories-api-openapi.yml#/components/schemas/AddComponentRequest",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "Component id — see /api/v1/public/components."
    },
    "config": {
      "type": "object",
      "description": "Component-specific config blob; shape depends on `type`."
    },
    "position": {
      "type": "string",
      "enum": [
        "top",
        "center",
        "bottom",
        "custom"
      ]
    },
    "z_index": {
      "type": "integer"
    }
  },
  "required": [
    "type",
    "config"
  ]
}