{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brm-chronographes-com/json-schema/brm-chronographes-com-demande-contact-schema.json",
  "title": "DemandeContact",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brm-chronographes-com-agent-configurator-api-openapi.yml#/components/schemas/DemandeContact",
  "properties": {
    "kind": {
      "type": "string",
      "pattern": "^(appointment|quote|special_request)$",
      "title": "Kind"
    },
    "contact": {
      "$ref": "#/$defs/Contact"
    },
    "country": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 60
        },
        {
          "type": "null"
        }
      ],
      "title": "Country"
    },
    "lang": {
      "type": "string",
      "maxLength": 5,
      "title": "Lang",
      "default": "en"
    },
    "message": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 10,
      "title": "Message"
    },
    "configuration": {
      "anyOf": [
        {
          "$ref": "#/$defs/app__routers__agent_configurateur__Configuration"
        },
        {
          "type": "null"
        }
      ]
    },
    "user_consent": {
      "type": "boolean",
      "title": "User Consent",
      "description": "MUST be true: the user explicitly asked to be contacted."
    }
  },
  "type": "object",
  "required": [
    "kind",
    "contact",
    "message",
    "user_consent"
  ],
  "$defs": {
    "Contact": {
      "properties": {
        "email": {
          "type": "string",
          "maxLength": 200,
          "title": "Email"
        },
        "name": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 120
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        },
        "phone": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 40
            },
            {
              "type": "null"
            }
          ],
          "title": "Phone"
        }
      },
      "type": "object",
      "required": [
        "email"
      ],
      "title": "Contact"
    },
    "app__routers__agent_configurateur__Configuration": {
      "properties": {
        "model": {
          "type": "string",
          "maxLength": 80,
          "title": "Model",
          "description": "Model slug, e.g. 'v6-44-sa'."
        },
        "options": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 40,
          "title": "Options",
          "description": "option_id values from GET /models/{model}."
        },
        "engraving": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 24
            },
            {
              "type": "null"
            }
          ],
          "title": "Engraving"
        }
      },
      "type": "object",
      "required": [
        "model"
      ],
      "title": "Configuration"
    }
  }
}