{
  "openapi": "3.1.0",
  "info": {
    "title": "Ultiplace Public API",
    "version": "1.3.0",
    "description": "API publique Ultiplace. Permet de creer, publier, lister, modifier des salons virtuels, des stands, des conferences. Conforme OpenAPI 3.1 et utilisable comme Action ChatGPT, plugin Le Chat ou outil MCP.",
    "termsOfService": "https://www.ultiplace.com/legal/mentions-legales",
    "contact": {
      "name": "Ultiplace Support",
      "email": "contact@realitim.com",
      "url": "https://www.ultiplace.com"
    },
    "license": {
      "name": "Proprietary"
    }
  },
  "servers": [
    { "url": "https://www.ultiplace.com", "description": "Production" }
  ],
  "tags": [
    { "name": "salons", "description": "Operations sur les salons virtuels" },
    { "name": "stands", "description": "Stands d'exposants" },
    { "name": "halls", "description": "Halls thematiques" },
    { "name": "conferences", "description": "Programme de conferences" },
    { "name": "news", "description": "Actualites publiees du salon" },
    { "name": "team", "description": "Equipe et invitations" },
    { "name": "search", "description": "Recherche annuaire" },
    { "name": "analytics", "description": "Statistiques" },
    { "name": "jobs", "description": "Emplois & job dating (offres des exposants, stats recrutement)" },
    { "name": "directory", "description": "Annuaire des salons professionnels physiques (presentiel)" }
  ],
  "components": {
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "description": "OAuth 2.0 Authorization Code Flow (PKCE supporte). Backend supporte aussi en interne X-Ultiplace-Key et Bearer Firebase ID Token pour les integrations directes (voir https://www.ultiplace.com/ai/api-reference).",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://www.ultiplace.com/api/mcp/oauth/authorize",
            "tokenUrl": "https://www.ultiplace.com/api/mcp/oauth/token",
            "scopes": {
              "salon:read": "Lire la liste et le detail des salons virtuels",
              "salon:write": "Creer et modifier des salons virtuels",
              "salon:publish": "Publier (rendre visible publiquement) un salon",
              "stand:write": "Creer et personnaliser des stands d'exposants",
              "team:write": "Inviter des exposants et membres d'equipe",
              "analytics:read": "Lire les statistiques d'un salon",
              "analytics:write": "Envoyer la mesure d'audience d'un site vitrine rattache a un salon",
              "directory:read": "Rechercher dans l'annuaire des salons physiques",
              "directory:write": "Ajouter, enrichir et soumettre des salons physiques a l'annuaire",
              "assistant:chat": "Converser avec l'assistant organisateur d'un salon depuis un site vitrine"
            }
          }
        }
      },
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Ultiplace-Key",
        "description": "Cle API Ultiplace (format utp_live_xxx) pour les integrations serveur-a-serveur. A creer depuis votre espace organisateur."
      },
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Firebase ID Token (Authorization: Bearer xxx), reserve aux integrations cote application Ultiplace."
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": { "type": "string" },
              "message": { "type": "string" }
            }
          }
        }
      },
      "SalonDsl": {
        "type": "object",
        "required": ["name"],
        "properties": {
          "name": { "type": "string", "maxLength": 120 },
          "slug": { "type": "string", "pattern": "^[a-z0-9-]{3,80}$" },
          "description": { "type": "string", "maxLength": 5000 },
          "shortDescription": { "type": "string", "maxLength": 320 },
          "theme": { "type": "string", "enum": ["classique", "moderne", "gaming", "industriel", "corporate", "innovation", "art"] },
          "dateStart": { "type": "string", "format": "date-time" },
          "dateEnd": { "type": "string", "format": "date-time" },
          "isPermanent": { "type": "boolean" },
          "sectors": { "type": "array", "items": { "type": "string" } },
          "language": { "type": "string", "enum": ["fr", "en", "es", "de", "it"] },
          "branding": {
            "type": "object",
            "properties": {
              "logo": { "type": "string", "format": "uri" },
              "banner": { "type": "string", "format": "uri" },
              "primaryColor": { "type": "string" },
              "accentColor": { "type": "string" }
            }
          },
          "halls": { "type": "array", "items": { "$ref": "#/components/schemas/HallSpec" } },
          "stands": { "type": "array", "items": { "$ref": "#/components/schemas/StandSpec" } },
          "conferences": { "type": "array", "items": { "$ref": "#/components/schemas/ConferenceSpec" } }
        }
      },
      "SalonSummary": {
        "type": "object",
        "properties": {
          "id": { "type": "string" },
          "name": { "type": "string" },
          "slug": { "type": "string" },
          "status": { "type": "string" },
          "dateStart": { "type": "number" },
          "dateEnd": { "type": "number" },
          "exhibitorsCount": { "type": "integer" }
        }
      },
      "CreateSalonResponse": {
        "type": "object",
        "required": ["id"],
        "properties": {
          "id": { "type": "string" },
          "slug": { "type": "string" },
          "status": { "type": "string" },
          "url": { "type": "string", "format": "uri" }
        }
      },
      "HallSpec": {
        "type": "object",
        "required": ["name"],
        "properties": {
          "name": { "type": "string", "maxLength": 80 },
          "description": { "type": "string", "maxLength": 1000 },
          "theme": { "type": "string" },
          "image": { "type": "string", "format": "uri" },
          "maxStands": { "type": "integer", "minimum": 1, "maximum": 500 }
        }
      },
      "StandSpec": {
        "type": "object",
        "required": ["exhibitorName"],
        "properties": {
          "exhibitorName": { "type": "string" },
          "exhibitorEmail": { "type": "string", "format": "email" },
          "hallId": { "type": "string" },
          "template": { "type": "string", "enum": ["classique", "premium", "vitrine", "mini", "compact"] },
          "pitch": { "type": "string", "maxLength": 280 },
          "description": { "type": "string", "maxLength": 5000 },
          "logo": { "type": "string", "format": "uri" },
          "website": { "type": "string", "format": "uri" }
        }
      },
      "ConferenceSpec": {
        "type": "object",
        "required": ["title", "dateStart"],
        "properties": {
          "title": { "type": "string" },
          "description": { "type": "string" },
          "shortDescription": { "type": "string", "maxLength": 220, "description": "Resume court (220 caracteres max) affiche dans les listes. Derive de la description si absent." },
          "format": { "type": "string", "enum": ["keynote", "panel", "atelier", "networking", "demo", "pitch"] },
          "dateStart": { "type": "string", "format": "date-time" },
          "durationMinutes": { "type": "integer", "minimum": 5, "maximum": 480 },
          "speakers": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "title": { "type": "string" }, "company": { "type": "string" }, "photoUrl": { "type": "string", "format": "uri" }, "bio": { "type": "string" } } } },
          "subtitles": { "type": "boolean", "default": false, "description": "La conference dispose de sous-titres (accessibilite)." },
          "signLanguage": { "type": "boolean", "default": false, "description": "La conference est interpretee en langue des signes (accessibilite)." },
          "transcriptUrl": { "type": "string", "format": "uri", "pattern": "^https://", "description": "Lien vers la transcription (https uniquement ; ignore si invalide)." }
        }
      },
      "PublicSpeaker": {
        "type": "object",
        "required": ["name", "title", "company"],
        "properties": {
          "name": { "type": "string" },
          "title": { "type": ["string", "null"] },
          "company": { "type": ["string", "null"] }
        }
      },
      "PublicConference": {
        "type": "object",
        "description": "Conference visible publiquement : verified = accepted, publishedOnVirtual different de false, et au moins un lien de diffusion (direct, webinaire ou replay). Les liens de diffusion ne sont jamais exposes.",
        "required": ["id", "slug", "title", "shortDescription", "description", "format", "dateStart", "dateEnd", "durationMinutes", "speakers", "hallId", "themes", "replayAvailable", "subtitles", "signLanguage", "transcriptUrl", "image", "updatedAt"],
        "properties": {
          "id": { "type": "string" },
          "slug": { "type": "string", "description": "titre-slugifie-<id>" },
          "title": { "type": "string" },
          "shortDescription": { "type": "string", "maxLength": 220, "description": "Texte brut ; derive de la description si absent." },
          "description": { "type": "string", "description": "Texte brut (balises HTML retirees)." },
          "format": { "type": ["string", "null"] },
          "dateStart": { "type": "string", "format": "date-time" },
          "dateEnd": { "type": "string", "format": "date-time" },
          "durationMinutes": { "type": ["integer", "null"] },
          "speakers": { "type": "array", "items": { "$ref": "#/components/schemas/PublicSpeaker" } },
          "hallId": { "type": ["string", "null"] },
          "themes": { "type": "array", "items": { "type": "string" } },
          "replayAvailable": { "type": "boolean" },
          "subtitles": { "type": "boolean" },
          "signLanguage": { "type": "boolean" },
          "transcriptUrl": { "type": ["string", "null"], "format": "uri" },
          "image": { "type": ["string", "null"], "format": "uri", "description": "Illustration de la conference (ratio 16:9 recommande)." },
          "updatedAt": { "type": ["string", "null"], "format": "date-time" }
        }
      },
      "PublicConferenceList": {
        "type": "object",
        "required": ["count", "conferences"],
        "properties": {
          "count": { "type": "integer" },
          "conferences": { "type": "array", "items": { "$ref": "#/components/schemas/PublicConference" } }
        }
      },
      "PublicStand": {
        "type": "object",
        "description": "Stand d'un exposant accepte. Ni email, ni telephone, ni proprietaire. Le slug est celui des liens Ultiplace /salon/{slug}/mobile/{hall}/{exhibitorSlug}.",
        "required": ["id", "slug", "exhibitorName", "hallId", "hallName", "pitch", "description", "logo", "website", "city", "tags", "updatedAt"],
        "properties": {
          "id": { "type": "string" },
          "slug": { "type": "string", "description": "nom-normalise-<id>, exactement l'exhibitorSlug des URLs Ultiplace." },
          "exhibitorName": { "type": "string" },
          "hallId": { "type": ["string", "null"] },
          "hallName": { "type": ["string", "null"], "description": "Nom du hall ; son encodage URL (encodeURIComponent) est le segment {hall} des URLs Ultiplace." },
          "pitch": { "type": "string" },
          "description": { "type": "string", "description": "Texte brut (balises HTML retirees)." },
          "logo": { "type": ["string", "null"], "format": "uri" },
          "website": { "type": ["string", "null"], "format": "uri", "description": "URL http(s) valide uniquement." },
          "city": { "type": ["string", "null"] },
          "tags": { "type": "array", "items": { "type": "string" }, "description": "Mots-cles de l'exposant (20 max)." },
          "updatedAt": { "type": ["string", "null"], "format": "date-time" }
        }
      },
      "PublicStandList": {
        "type": "object",
        "required": ["count", "stands"],
        "properties": {
          "count": { "type": "integer" },
          "stands": { "type": "array", "items": { "$ref": "#/components/schemas/PublicStand" } }
        }
      },
      "PublicHall": {
        "type": "object",
        "required": ["id", "name", "slug", "standsCount"],
        "properties": {
          "id": { "type": "string" },
          "name": { "type": "string" },
          "slug": { "type": "string", "description": "Segment {hall} des URLs /salon/{slug}/mobile/{hall}/... (nom encode)." },
          "standsCount": { "type": "integer", "description": "Nombre de stands acceptes dans ce hall." }
        }
      },
      "PublicNews": {
        "type": "object",
        "required": ["id", "slug", "title", "excerpt", "body", "category", "externalUrl", "image", "imageAlt", "publishedAt", "updatedAt"],
        "properties": {
          "id": { "type": "string" },
          "slug": { "type": "string", "description": "Unique dans le salon, fige a la premiere publication." },
          "title": { "type": "string", "maxLength": 140, "description": "Titre saisi, sinon premiere ligne du texte (actualites historiques)." },
          "excerpt": { "type": "string", "maxLength": 220, "description": "Resume saisi, sinon debut du texte." },
          "body": { "type": "string", "maxLength": 20000, "description": "Texte brut (jamais de HTML). Paragraphes separes par une ligne vide ; mise en forme legere : lignes \"## \" (intertitre), \"- \" (puce), liens [libelle](https://...)." },
          "category": { "type": ["string", "null"], "maxLength": 40 },
          "externalUrl": { "type": ["string", "null"], "pattern": "^https://", "description": "Article d'origine (presse...)." },
          "image": { "type": ["string", "null"] },
          "imageAlt": { "type": ["string", "null"], "description": "Texte alternatif de l'image ; chaine vide si decorative, null sans image." },
          "publishedAt": { "type": "string", "format": "date-time" },
          "updatedAt": { "type": ["string", "null"], "format": "date-time" }
        }
      },
      "PublicNewsList": {
        "type": "object",
        "required": ["count", "news"],
        "properties": {
          "count": { "type": "integer" },
          "news": { "type": "array", "items": { "$ref": "#/components/schemas/PublicNews" } }
        }
      },
      "PublicHallList": {
        "type": "object",
        "required": ["count", "halls"],
        "properties": {
          "count": { "type": "integer" },
          "halls": { "type": "array", "items": { "$ref": "#/components/schemas/PublicHall" } }
        }
      },
      "SiteAssistant": {
        "type": "object",
        "required": ["available", "name", "welcomeMessage", "instantReplies"],
        "properties": {
          "available": { "type": "boolean", "description": "Faux si l'organisateur a desactive l'assistance du salon." },
          "name": { "type": ["string", "null"], "description": "Nom de l'assistant IA ; null si l'IA est desactivee (reponses humaines uniquement)." },
          "welcomeMessage": { "type": ["string", "null"] },
          "instantReplies": { "type": "boolean", "description": "Vrai si l'assistant IA repond automatiquement (mode auto)." }
        }
      },
      "SiteAssistantMessage": {
        "type": "object",
        "required": ["id", "author", "authorName", "text", "createdAt"],
        "properties": {
          "id": { "type": "string" },
          "author": { "type": "string", "enum": ["visitor", "assistant", "organizer"] },
          "authorName": { "type": ["string", "null"], "description": "Nom de l'assistant ou du membre de l'equipe ; null pour le visiteur." },
          "text": { "type": "string" },
          "createdAt": { "type": ["string", "null"], "format": "date-time" }
        }
      },
      "SiteAssistantMessageInput": {
        "type": "object",
        "required": ["conversationId", "message"],
        "properties": {
          "conversationId": { "type": "string", "pattern": "^[A-Za-z0-9_-]{16,64}$" },
          "message": { "type": "string", "maxLength": 2000 },
          "visitor": {
            "type": "object",
            "properties": {
              "name": { "type": "string", "maxLength": 80 },
              "email": { "type": "string", "format": "email", "description": "Facultatif : la reponse humaine de l'equipe est aussi envoyee par email." }
            }
          }
        }
      },
      "SiteAssistantConversation": {
        "type": "object",
        "required": ["assistant", "conversationId", "messages"],
        "properties": {
          "assistant": { "$ref": "#/components/schemas/SiteAssistant" },
          "conversationId": { "type": ["string", "null"] },
          "messages": { "type": "array", "items": { "$ref": "#/components/schemas/SiteAssistantMessage" } }
        }
      },
      "SiteAssistantReply": {
        "type": "object",
        "required": ["assistant", "conversationId", "message", "reply", "status"],
        "properties": {
          "assistant": { "$ref": "#/components/schemas/SiteAssistant" },
          "conversationId": { "type": "string" },
          "message": { "$ref": "#/components/schemas/SiteAssistantMessage" },
          "reply": { "oneOf": [{ "$ref": "#/components/schemas/SiteAssistantMessage" }, { "type": "null" }] },
          "status": { "type": "string", "enum": ["answered", "pending"] }
        }
      },
      "PhysicalSalon": {
        "type": "object",
        "required": ["name", "dateStart", "dateEnd", "city", "description", "thematic"],
        "properties": {
          "name": { "type": "string", "minLength": 3, "maxLength": 200 },
          "slug": { "type": "string", "pattern": "^[a-z0-9-]{3,100}$" },
          "description": { "type": "string", "minLength": 80, "maxLength": 8000 },
          "shortDescription": { "type": "string", "maxLength": 320 },
          "dateStart": { "type": "string", "format": "date-time" },
          "dateEnd": { "type": "string", "format": "date-time" },
          "city": { "type": "string", "minLength": 2, "maxLength": 120 },
          "country": { "type": "string", "default": "FR" },
          "venue": { "type": "string", "maxLength": 200 },
          "address": { "type": "string", "maxLength": 400 },
          "postalCode": { "type": "string", "maxLength": 20 },
          "website": { "type": "string", "format": "uri" },
          "organizerName": { "type": "string", "maxLength": 200 },
          "organizerEmail": { "type": "string", "format": "email" },
          "organizerWebsite": { "type": "string", "format": "uri" },
          "expectedVisitors": { "type": "integer", "minimum": 0 },
          "expectedExhibitors": { "type": "integer", "minimum": 0 },
          "audienceType": { "type": "string", "enum": ["B2B", "B2C", "B2B2C"], "default": "B2B" },
          "sector": { "type": "string" },
          "thematic": { "type": "array", "minItems": 1, "maxItems": 12, "items": { "type": "string" } },
          "tags": { "type": "array", "maxItems": 30, "items": { "type": "string" } },
          "imageUrl": { "type": "string", "format": "uri" },
          "logoUrl": { "type": "string", "format": "uri" },
          "isRecurring": { "type": "boolean" },
          "recurringFrequency": { "type": "string", "enum": ["annual", "biennial", "quarterly", "monthly", "other"] },
          "registrationUrl": { "type": "string", "format": "uri" }
        }
      },
      "CreatePhysicalSalonResponse": {
        "type": "object",
        "required": ["salonId", "status", "qualityScore"],
        "properties": {
          "salonId": { "type": "string" },
          "slug": { "type": "string" },
          "status": { "type": "string", "enum": ["draft", "pending_review", "published", "rejected", "archived"] },
          "qualityScore": { "type": "integer", "minimum": 0, "maximum": 100 },
          "requiresHumanReview": { "type": "boolean" },
          "duplicated": { "type": "boolean" },
          "publicUrl": { "type": "string", "format": "uri", "nullable": true }
        }
      }
    }
  },
  "security": [
    {
      "oauth2": [
        "salon:read",
        "salon:write",
        "salon:publish",
        "stand:write",
        "team:write",
        "analytics:read",
        "directory:read",
        "directory:write"
      ]
    },
    { "apiKey": [] },
    { "bearer": [] }
  ],
  "paths": {
    "/api/v1/salons": {
      "get": {
        "operationId": "listSalons",
        "tags": ["salons"],
        "summary": "Liste les salons de l'utilisateur",
        "parameters": [
          { "name": "status", "in": "query", "required": false, "schema": { "type": "string", "enum": ["draft", "published", "archived"] } },
          { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "minimum": 1, "maximum": 100 } }
        ],
        "responses": {
          "200": {
            "description": "Liste des salons",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "salons": { "type": "array", "items": { "$ref": "#/components/schemas/SalonSummary" } },
                    "count": { "type": "integer" }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createSalon",
        "tags": ["salons"],
        "summary": "Cree un salon a partir d'un DSL",
        "parameters": [
          { "name": "Idempotency-Key", "in": "header", "required": false, "schema": { "type": "string" } }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["spec"],
                "properties": {
                  "spec": { "$ref": "#/components/schemas/SalonDsl" },
                  "publishImmediately": { "type": "boolean", "default": false }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Salon cree",
            "content": {
              "application/json": { "schema": { "$ref": "#/components/schemas/CreateSalonResponse" } }
            }
          },
          "400": { "description": "DSL invalide", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "401": { "description": "Authentification manquante", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "429": { "description": "Quota depasse", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }
        }
      }
    },
    "/api/v1/salons/{id}": {
      "get": {
        "operationId": "getSalon",
        "tags": ["salons"],
        "summary": "Detail d'un salon",
        "parameters": [
          { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "responses": {
          "200": {
            "description": "Detail du salon",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Detail complet du salon",
                  "properties": {
                    "id": { "type": "string" },
                    "name": { "type": "string" },
                    "slug": { "type": "string" },
                    "status": { "type": "string", "enum": ["draft", "published", "archived"] },
                    "description": { "type": "string" },
                    "dateStart": { "type": "number" },
                    "dateEnd": { "type": "number" },
                    "halls": { "type": "array", "items": { "type": "string" }, "description": "IDs des halls" },
                    "stands": { "type": "array", "items": { "type": "string" }, "description": "IDs des stands" },
                    "conferences": { "type": "array", "items": { "type": "string" } },
                    "url": { "type": "string", "format": "uri" }
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateSalon",
        "tags": ["salons"],
        "summary": "Mise a jour partielle d'un salon",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Champs partiels du salon a mettre a jour",
                "properties": {
                  "name": { "type": "string", "maxLength": 120 },
                  "description": { "type": "string", "maxLength": 5000 },
                  "shortDescription": { "type": "string", "maxLength": 320 },
                  "dateStart": { "type": "string", "format": "date-time" },
                  "dateEnd": { "type": "string", "format": "date-time" },
                  "sectors": { "type": "array", "items": { "type": "string" } },
                  "branding": {
                    "type": "object",
                    "properties": {
                      "logo": { "type": "string", "format": "uri" },
                      "banner": { "type": "string", "format": "uri" },
                      "primaryColor": { "type": "string" },
                      "accentColor": { "type": "string" }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": { "description": "Salon mis a jour" }
        }
      },
      "delete": {
        "operationId": "archiveSalon",
        "tags": ["salons"],
        "summary": "Archive un salon",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "responses": { "200": { "description": "Salon archive" } }
      }
    },
    "/api/v1/salons/{id}/publish": {
      "post": {
        "operationId": "publishSalon",
        "tags": ["salons"],
        "summary": "Publie un salon",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "responses": { "200": { "description": "Salon publie" } }
      }
    },
    "/api/v1/salons/{id}/halls": {
      "get": {
        "operationId": "listSalonHalls",
        "tags": ["halls"],
        "summary": "Liste les halls d'un salon",
        "description": "Halls de la configuration du salon (sinon derives des stands acceptes), avec le nombre de stands de chacun. Le slug est le segment {hall} des URLs Ultiplace /salon/{slug}/mobile/{hall}/{exhibitorSlug}. Scope salon:read.",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "responses": {
          "200": { "description": "Halls du salon", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PublicHallList" } } } },
          "401": { "description": "Cle API absente, invalide ou revoquee", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "403": { "description": "Scope salon:read manquant", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "404": { "description": "Salon introuvable ou non public", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }
        }
      },
      "post": {
        "operationId": "addHall",
        "tags": ["halls"],
        "summary": "Ajoute un hall a un salon",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "requestBody": {
          "required": true,
          "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HallSpec" } } }
        },
        "responses": { "201": { "description": "Hall cree" } }
      }
    },
    "/api/v1/salons/{id}/news": {
      "get": {
        "operationId": "listSalonNews",
        "tags": ["news"],
        "summary": "Liste les actualites publiees d'un salon",
        "description": "Actualites redigees dans l'editeur de vitrine du salon, de la plus recente a la plus ancienne. Les brouillons ne sont jamais renvoyes, meme a la cle du proprietaire. Scope salon:read. Webhook associe : news.updated.",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "responses": {
          "200": { "description": "Actualites du salon", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PublicNewsList" } } } },
          "401": { "description": "Cle API absente, invalide ou revoquee", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "403": { "description": "Scope salon:read manquant", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "404": { "description": "Salon introuvable ou non public", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }
        }
      }
    },
    "/api/v1/salons/{id}/stands": {
      "get": {
        "operationId": "listSalonStands",
        "tags": ["stands"],
        "summary": "Liste les stands (exposants acceptes) d'un salon",
        "description": "Exposants dont l'adhesion est acceptee, tries par nom. Aucune donnee de contact (email, telephone) ni de proprietaire. Scope salon:read.",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "responses": {
          "200": { "description": "Stands du salon", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PublicStandList" } } } },
          "401": { "description": "Cle API absente, invalide ou revoquee", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "403": { "description": "Scope salon:read manquant", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "404": { "description": "Salon introuvable ou non public", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }
        }
      },
      "post": {
        "operationId": "createStand",
        "tags": ["stands"],
        "summary": "Cree un stand dans un salon",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "requestBody": {
          "required": true,
          "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StandSpec" } } }
        },
        "responses": { "201": { "description": "Stand cree" } }
      }
    },
    "/api/v1/salons/{id}/conferences": {
      "get": {
        "operationId": "listSalonConferences",
        "tags": ["conferences"],
        "summary": "Liste les conferences visibles d'un salon",
        "description": "Conferences acceptees et publiees, avec un lien de diffusion (direct, webinaire ou replay), triees par date de debut croissante. Les liens de diffusion ne sont jamais exposes (replayAvailable indique seulement la presence d'un replay). Scope salon:read.",
        "parameters": [
          { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } },
          { "name": "when", "in": "query", "required": false, "description": "upcoming : dateEnd >= maintenant ; past : dateEnd < maintenant.", "schema": { "type": "string", "enum": ["all", "upcoming", "past"], "default": "all" } }
        ],
        "responses": {
          "200": { "description": "Conferences du salon", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PublicConferenceList" } } } },
          "400": { "description": "Parametre when invalide (code INVALID_QUERY)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "401": { "description": "Cle API absente, invalide ou revoquee", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "403": { "description": "Scope salon:read manquant", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "404": { "description": "Salon introuvable ou non public", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }
        }
      },
      "post": {
        "operationId": "scheduleConference",
        "tags": ["conferences"],
        "summary": "Planifie une conference",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "requestBody": {
          "required": true,
          "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConferenceSpec" } } }
        },
        "responses": { "201": { "description": "Conference planifiee" } }
      }
    },
    "/api/v1/salons/{id}/assistant": {
      "get": {
        "operationId": "getSiteAssistantConversation",
        "tags": ["assistant"],
        "summary": "Reglages de l'assistant organisateur et messages d'une conversation",
        "description": "Pour un site vitrine qui relaie, cote serveur, le tchat organisateur a ses visiteurs. Reponses de l'assistant IA et de l'equipe organisatrice, sans email ni brouillon IA. Sans conversationId, renvoie seulement les reglages. Scope assistant:chat, cle du proprietaire ou de l'equipe du salon.",
        "parameters": [
          { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } },
          { "name": "conversationId", "in": "query", "required": false, "description": "Identifiant aleatoire genere par le navigateur du visiteur ; il sert de secret de lecture de la conversation.", "schema": { "type": "string", "pattern": "^[A-Za-z0-9_-]{16,64}$" } }
        ],
        "responses": {
          "200": { "description": "Assistant et conversation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SiteAssistantConversation" } } } },
          "400": { "description": "conversationId invalide (code INVALID_CONVERSATION_ID)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "401": { "description": "Cle API absente, invalide ou revoquee", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "403": { "description": "Scope assistant:chat manquant", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "404": { "description": "Salon introuvable ou cle sans droit sur ce salon", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }
        }
      },
      "post": {
        "operationId": "postSiteAssistantMessage",
        "tags": ["assistant"],
        "summary": "Envoie le message d'un visiteur du site a l'assistant organisateur",
        "description": "Cree une demande d'aide visible dans la messagerie organisateur et la soumet a l'assistant IA. En mode auto, la reponse est renvoyee immediatement (status answered) ; sinon l'equipe est notifiee (status pending) et sa reponse apparaitra au prochain GET, et par email si le visiteur en a laisse un. Scope assistant:chat.",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "requestBody": {
          "required": true,
          "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SiteAssistantMessageInput" } } }
        },
        "responses": {
          "200": { "description": "Message enregistre", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SiteAssistantReply" } } } },
          "400": { "description": "Message, email ou conversationId invalide (INVALID_MESSAGE, MESSAGE_TOO_LONG, INVALID_EMAIL, INVALID_CONVERSATION_ID)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "401": { "description": "Cle API absente, invalide ou revoquee", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "403": { "description": "Scope assistant:chat manquant", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "404": { "description": "Salon introuvable ou cle sans droit sur ce salon", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "409": { "description": "Assistance organisateur desactivee pour ce salon (code ASSISTANT_UNAVAILABLE)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "429": { "description": "Nombre maximal de messages atteint pour la conversation (code CONVERSATION_LIMIT)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }
        }
      }
    },
    "/api/v1/salons/{id}/exhibitors/invite": {
      "post": {
        "operationId": "inviteExhibitors",
        "tags": ["team"],
        "summary": "Invite des exposants sur un salon",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["emails"],
                "properties": {
                  "emails": { "type": "array", "items": { "type": "string", "format": "email" } },
                  "hallId": { "type": "string" },
                  "message": { "type": "string", "maxLength": 2000 }
                }
              }
            }
          }
        },
        "responses": { "201": { "description": "Invitations creees" } }
      }
    },
    "/api/v1/stands/{id}/customize": {
      "patch": {
        "operationId": "customizeStand",
        "tags": ["stands"],
        "summary": "Personnalise un stand (template, couleurs, logo, pitch)",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Personnalisation partielle du stand",
                "properties": {
                  "template": { "type": "string", "enum": ["classique", "premium", "vitrine", "mini", "compact"] },
                  "primaryColor": { "type": "string", "description": "Couleur primaire (hex)" },
                  "accentColor": { "type": "string", "description": "Couleur accent (hex)" },
                  "logo": { "type": "string", "format": "uri" },
                  "banner": { "type": "string", "format": "uri" },
                  "pitch": { "type": "string", "maxLength": 280 },
                  "description": { "type": "string", "maxLength": 5000 },
                  "website": { "type": "string", "format": "uri" }
                }
              }
            }
          }
        },
        "responses": { "200": { "description": "Stand personnalise" } }
      }
    },
    "/api/v1/stands/{id}/resources": {
      "post": {
        "operationId": "uploadStandResource",
        "tags": ["stands"],
        "summary": "Ajoute une ressource (PDF, video, lien, image) a un stand",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["type", "url"],
                "properties": {
                  "type": { "type": "string", "enum": ["pdf", "video", "link", "image"] },
                  "title": { "type": "string" },
                  "url": { "type": "string", "format": "uri" }
                }
              }
            }
          }
        },
        "responses": { "201": { "description": "Ressource ajoutee" } }
      }
    },
    "/api/v1/search": {
      "get": {
        "operationId": "searchSalons",
        "tags": ["search"],
        "summary": "Recherche dans l'annuaire de salons publies",
        "parameters": [
          { "name": "q", "in": "query", "schema": { "type": "string" } },
          { "name": "sector", "in": "query", "schema": { "type": "string" } },
          { "name": "city", "in": "query", "schema": { "type": "string" } },
          { "name": "limit", "in": "query", "schema": { "type": "integer", "minimum": 1, "maximum": 50 } }
        ],
        "responses": {
          "200": {
            "description": "Resultats de recherche",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": { "type": "array", "items": { "$ref": "#/components/schemas/SalonSummary" } },
                    "count": { "type": "integer" },
                    "engine": { "type": "string", "description": "Moteur utilise (algolia | firestore)" }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/analytics": {
      "get": {
        "operationId": "queryAnalytics",
        "tags": ["analytics"],
        "summary": "Statistiques d'un salon",
        "parameters": [
          { "name": "salonId", "in": "query", "required": true, "schema": { "type": "string" } },
          { "name": "metric", "in": "query", "schema": { "type": "string", "enum": ["visitorCount", "viewCount", "exhibitorsCount", "conferencesCount", "leadsCount", "conversationsCount"] } }
        ],
        "responses": { "200": { "description": "Metriques" } }
      }
    },
    "/api/v1/salons/{id}/live": {
      "get": {
        "operationId": "getSalonLive",
        "tags": ["analytics"],
        "summary": "Visiteurs actuellement en ligne dans le salon",
        "description": "Nombre de visiteurs connectes distincts presents dans le salon 2D ou 3D (session active ayant battu depuis moins de 5 minutes), hors organisateur et equipe. Meme definition que le compteur \"En ligne maintenant\" de la console organisateur. Valeur mise en cache 30 secondes. Reserve au proprietaire et a l'equipe du salon.",
        "security": [{ "oauth2": ["analytics:read"] }, { "apiKey": [] }, { "bearer": [] }],
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "responses": {
          "200": {
            "description": "Visiteurs en ligne",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "salonId": { "type": "string" },
                    "onlineVisitors": { "type": "integer", "minimum": 0 },
                    "windowMinutes": { "type": "integer" },
                    "generatedAt": { "type": "string", "format": "date-time" }
                  }
                }
              }
            }
          },
          "403": { "description": "Scope manquant ou acces refuse au salon" },
          "404": { "description": "Salon introuvable (SALON_NOT_FOUND)" }
        }
      }
    },
    "/api/v1/salons/{id}/site-analytics": {
      "get": {
        "operationId": "getSalonSiteAnalytics",
        "tags": ["analytics"],
        "summary": "Audience du site vitrine d'un salon",
        "description": "Rapport agrege (heure de Paris) : visiteurs, visites, pages vues, rebond, duree, canaux d'acquisition, sites referents, campagnes UTM, pages, actions, heures, appareils, navigateurs, systemes et pays, avec la periode precedente de meme duree. Reserve au proprietaire et aux membres d'equipe ayant le droit de voir les statistiques. Periode par defaut : 30 derniers jours, 366 jours au plus.",
        "security": [{ "oauth2": ["analytics:read"] }, { "apiKey": [] }, { "bearer": [] }],
        "parameters": [
          { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } },
          { "name": "from", "in": "query", "schema": { "type": "string", "format": "date" } },
          { "name": "to", "in": "query", "schema": { "type": "string", "format": "date" } }
        ],
        "responses": {
          "200": { "description": "Rapport d'audience" },
          "400": { "description": "Periode invalide (INVALID_RANGE)" },
          "403": { "description": "Scope manquant ou acces refuse au salon" }
        }
      }
    },
    "/api/v1/salons/{id}/site-analytics/events": {
      "post": {
        "operationId": "recordSalonSiteEvents",
        "tags": ["analytics"],
        "summary": "Envoie des mesures d'audience d'un site vitrine",
        "description": "Appel serveur a serveur depuis le site vitrine. Evenements anonymes (aucun identifiant de visiteur ni adresse IP) : seuls des agregats journaliers sont conserves. 50 evenements au plus par lot ; les evenements de plus de 48 h ou dates du futur sont ignores.",
        "security": [{ "oauth2": ["analytics:write"] }, { "apiKey": [] }],
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["events"],
                "properties": {
                  "site": { "type": "string", "description": "Nom d'hote du site, ex. www.handivosges.fr" },
                  "events": {
                    "type": "array",
                    "maxItems": 50,
                    "items": {
                      "type": "object",
                      "required": ["type", "path"],
                      "properties": {
                        "type": { "type": "string", "enum": ["pageview", "engagement", "event"] },
                        "ts": { "type": "string", "format": "date-time" },
                        "path": { "type": "string", "description": "Chemin de la page, sans parametres" },
                        "title": { "type": "string" },
                        "referrer": { "type": "string", "description": "Nom d'hote du site d'origine (pageview)" },
                        "utm": {
                          "type": "object",
                          "properties": {
                            "source": { "type": "string" },
                            "medium": { "type": "string" },
                            "campaign": { "type": "string" }
                          }
                        },
                        "device": { "type": "string", "enum": ["mobile", "tablet", "desktop"] },
                        "browser": { "type": "string" },
                        "os": { "type": "string" },
                        "country": { "type": "string", "description": "Code pays ISO 3166-1 alpha-2" },
                        "newVisitor": { "type": "boolean", "description": "Premiere page vue du jour sur cet appareil" },
                        "returning": { "type": "boolean", "description": "Appareil deja venu un autre jour" },
                        "sessionPage": { "type": "integer", "minimum": 1, "description": "Rang de la page dans la visite (1 = entree)" },
                        "durationMs": { "type": "integer", "description": "Temps actif sur la page (engagement)" },
                        "name": { "type": "string", "pattern": "^[a-z0-9_]{1,40}$", "description": "Nom de l'action (event)" },
                        "label": { "type": "string", "description": "Detail de l'action (event)" }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": { "description": "{ accepted, rejected }" },
          "400": { "description": "Corps invalide" },
          "403": { "description": "Scope analytics:write manquant ou cle sans droit sur le salon" }
        }
      }
    },
    "/api/v1/salons/{id}/jobs/offers": {
      "get": {
        "operationId": "listSalonJobOffers",
        "tags": ["jobs"],
        "summary": "Liste les offres d'emploi des exposants d'un salon",
        "description": "Offres du module Emplois & Job dating : poste, entreprise, contrat, lieu, statut, compteurs de candidatures et d'entretiens, option job dating, lien public. publishedOnly=false pour inclure brouillons et offres cloturees.",
        "parameters": [
          { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } },
          { "name": "publishedOnly", "in": "query", "schema": { "type": "boolean", "default": true } }
        ],
        "responses": { "200": { "description": "Offres d'emploi du salon" } }
      }
    },
    "/api/v1/salons/{id}/jobs/stats": {
      "get": {
        "operationId": "getSalonRecruitmentStats",
        "tags": ["jobs"],
        "summary": "Statistiques recrutement agregees d'un salon",
        "description": "Offres par statut, stands recruteurs, candidatures par etape (a traiter, vues, entretien, retenues, non retenues), entretiens job dating reserves, taux d'entretien, top 5 des offres. Aucune donnee personnelle des candidats.",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "responses": { "200": { "description": "Statistiques recrutement" } }
      }
    },
    "/api/v1/salons/{id}/recruitment-mode": {
      "post": {
        "operationId": "setSalonRecruitmentMode",
        "tags": ["jobs"],
        "summary": "Active ou desactive le Mode recrutement d'un salon",
        "description": "Quand il est actif, le salon dispose d'un job board public regroupant les offres des exposants et les stands recruteurs affichent un bouton Postuler.",
        "parameters": [
          { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } },
          { "name": "Idempotency-Key", "in": "header", "required": false, "schema": { "type": "string" } }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["enabled"],
                "properties": {
                  "enabled": { "type": "boolean", "description": "true pour activer le job board public" }
                }
              }
            }
          }
        },
        "responses": { "200": { "description": "Mode recrutement mis a jour" } }
      }
    },
    "/api/v1/directory/physical-salons": {
      "get": {
        "operationId": "searchPhysicalSalons",
        "tags": ["directory"],
        "summary": "Recherche dans l'annuaire des salons physiques",
        "description": "Recherche dans l'annuaire. Avec authentification : limite 200 resultats.",
        "parameters": [
          { "name": "q", "in": "query", "schema": { "type": "string" } },
          { "name": "city", "in": "query", "schema": { "type": "string" } },
          { "name": "sector", "in": "query", "schema": { "type": "string" } },
          { "name": "thematic", "in": "query", "schema": { "type": "string" } },
          { "name": "dateFrom", "in": "query", "schema": { "type": "string", "format": "date" } },
          { "name": "dateTo", "in": "query", "schema": { "type": "string", "format": "date" } },
          { "name": "expectedVisitorsMin", "in": "query", "schema": { "type": "integer" } },
          { "name": "audienceType", "in": "query", "schema": { "type": "string", "enum": ["B2B", "B2C", "B2B2C"] } },
          { "name": "recurring", "in": "query", "schema": { "type": "boolean" } },
          { "name": "limit", "in": "query", "schema": { "type": "integer", "minimum": 1, "maximum": 200 } }
        ],
        "responses": {
          "200": {
            "description": "Resultats annuaire",
            "content": { "application/json": { "schema": { "type": "object", "properties": {
              "results": { "type": "array", "items": { "$ref": "#/components/schemas/PhysicalSalon" } },
              "count": { "type": "integer" },
              "engine": { "type": "string", "description": "Moteur utilise (algolia | firestore)" }
            } } } }
          }
        }
      },
      "post": {
        "operationId": "createPhysicalSalon",
        "tags": ["directory"],
        "summary": "Ajoute un salon physique a l'annuaire (brouillon)",
        "description": "Cree un salon professionnel physique en brouillon. Idempotent via (name + city + dateStart). Si doublon, retourne le salon existant.",
        "parameters": [
          { "name": "Idempotency-Key", "in": "header", "required": false, "schema": { "type": "string" } }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["salon"],
                "properties": {
                  "salon": { "$ref": "#/components/schemas/PhysicalSalon" },
                  "sourceUrl": { "type": "string", "format": "uri" },
                  "sourcePrompt": { "type": "string", "maxLength": 1000 }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Salon physique cree (ou retrouve si doublon)",
            "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreatePhysicalSalonResponse" } } }
          },
          "400": { "description": "Donnees invalides", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "401": { "description": "Authentification manquante", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
          "429": { "description": "Quota journalier annuaire atteint", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }
        }
      }
    },
    "/api/v1/directory/physical-salons/{id}": {
      "get": {
        "operationId": "getPhysicalSalon",
        "tags": ["directory"],
        "summary": "Detail d'un salon physique",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "responses": {
          "200": {
            "description": "Detail du salon physique",
            "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PhysicalSalon" } } }
          },
          "404": { "description": "Salon introuvable", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }
        }
      },
      "patch": {
        "operationId": "updatePhysicalSalon",
        "tags": ["directory"],
        "summary": "Mise a jour partielle d'un salon physique",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["patch"],
                "properties": {
                  "patch": {
                    "type": "object",
                    "description": "Champs partiels du PhysicalSalon a mettre a jour",
                    "properties": {
                      "name": { "type": "string", "maxLength": 200 },
                      "description": { "type": "string" },
                      "shortDescription": { "type": "string", "maxLength": 320 },
                      "dateStart": { "type": "string", "format": "date-time" },
                      "dateEnd": { "type": "string", "format": "date-time" },
                      "city": { "type": "string" },
                      "venue": { "type": "string" },
                      "website": { "type": "string", "format": "uri" },
                      "thematic": { "type": "array", "items": { "type": "string" } },
                      "expectedVisitors": { "type": "integer", "minimum": 0 },
                      "expectedExhibitors": { "type": "integer", "minimum": 0 },
                      "imageUrl": { "type": "string", "format": "uri" },
                      "logoUrl": { "type": "string", "format": "uri" }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": { "200": { "description": "Salon mis a jour" } }
      },
      "delete": {
        "operationId": "archivePhysicalSalon",
        "tags": ["directory"],
        "summary": "Archive un salon physique",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "responses": { "200": { "description": "Salon archive" } }
      }
    },
    "/api/v1/directory/physical-salons/{id}/enrich": {
      "post": {
        "operationId": "enrichPhysicalSalon",
        "tags": ["directory"],
        "summary": "Enrichit un salon depuis son site web",
        "description": "Recupere le site officiel et complete les champs manquants (description, image, logo, tags).",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "websiteUrl": { "type": "string", "format": "uri" },
                  "autoFromWeb": { "type": "boolean", "default": true }
                }
              }
            }
          }
        },
        "responses": { "200": { "description": "Salon enrichi" } }
      }
    },
    "/api/v1/directory/physical-salons/{id}/submit-review": {
      "post": {
        "operationId": "submitPhysicalSalonForReview",
        "tags": ["directory"],
        "summary": "Soumet un salon physique a la review humaine",
        "description": "Passe le salon en pending_review. Notifie l'admin Ultiplace par email + dashboard. Etape obligatoire avant publication pour les contributions IA.",
        "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": { "note": { "type": "string", "maxLength": 1000 } }
              }
            }
          }
        },
        "responses": { "200": { "description": "Salon soumis a review" } }
      }
    },
    "/api/v1/directory/physical-salons/by-slug/{slug}": {
      "get": {
        "operationId": "getPhysicalSalonBySlug",
        "tags": ["directory"],
        "summary": "Lecture d'un salon physique par slug",
        "parameters": [{ "name": "slug", "in": "path", "required": true, "schema": { "type": "string" } }],
        "responses": {
          "200": {
            "description": "Detail du salon physique",
            "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PhysicalSalon" } } }
          },
          "404": { "description": "Salon introuvable", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }
        }
      }
    }
  }
}
