{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/listar-fr/json-schema/listar-fr-company-enrichment-result-schema.json",
  "title": "CompanyEnrichmentResult",
  "description": "Entreprise enrichie : firmographics + contacts. Les libellés (`legalForm`, `apeLabel`, rôles de mandat) sont renvoyés en anglais ; villes, pays et noms de personnes sont mis en casse lisible, l’adresse reste celle publiée par le registre. Le champ `activity` (objet social en texte libre, dans la langue du registre) n’est PAS exposé sur cette API : utilisez `apeCode` / `apeLabel` pour le secteur.",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/listar-fr-openapi.yml#/components/schemas/CompanyEnrichmentResult",
  "type": "object",
  "properties": {
    "companyName": {
      "type": [
        "string",
        "null"
      ]
    },
    "tradeName": {
      "type": [
        "string",
        "null"
      ]
    },
    "domain": {
      "type": [
        "string",
        "null"
      ]
    },
    "siren": {
      "type": [
        "string",
        "null"
      ]
    },
    "siret": {
      "type": [
        "string",
        "null"
      ]
    },
    "legalForm": {
      "type": [
        "string",
        "null"
      ],
      "description": "Forme juridique en anglais (ex: `Simplified joint-stock company (SAS)`)."
    },
    "legalFormCode": {
      "type": [
        "string",
        "null"
      ]
    },
    "apeCode": {
      "type": [
        "string",
        "null"
      ]
    },
    "apeLabel": {
      "type": [
        "string",
        "null"
      ],
      "description": "Secteur en anglais, résolu depuis `apeCode` (ex: `Computer programming, consultancy and related activities`)."
    },
    "isActive": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "creationDate": {
      "type": [
        "string",
        "null"
      ]
    },
    "capital": {
      "type": [
        "number",
        "null"
      ]
    },
    "industry": {
      "type": [
        "string",
        "null"
      ]
    },
    "employees": {
      "type": [
        "integer",
        "null"
      ]
    },
    "employeesRange": {
      "type": [
        "string",
        "null"
      ],
      "description": "Tranche d’effectif LinkedIn quand le chiffre exact est inconnu."
    },
    "revenue": {
      "type": [
        "number",
        "null"
      ]
    },
    "foundedYear": {
      "type": [
        "integer",
        "null"
      ]
    },
    "address": {
      "type": [
        "string",
        "null"
      ]
    },
    "city": {
      "type": [
        "string",
        "null"
      ]
    },
    "postalCode": {
      "type": [
        "string",
        "null"
      ]
    },
    "country": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pays en anglais (`France`, `Germany`) ; un code ISO fourni à la requête est renvoyé tel quel en majuscules."
    },
    "establishmentSiret": {
      "type": [
        "string",
        "null"
      ],
      "description": "Renseigné quand le match porte sur un ÉTABLISSEMENT différent du siège (chaînes, multi-sites). Dans ce cas `establishment*` est l’adresse du site matché et `address`/`city`/`postalCode` celle du siège."
    },
    "establishmentAddress": {
      "type": [
        "string",
        "null"
      ]
    },
    "establishmentCity": {
      "type": [
        "string",
        "null"
      ]
    },
    "establishmentPostalCode": {
      "type": [
        "string",
        "null"
      ]
    },
    "establishmentsCount": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Nombre d’établissements ouverts."
    },
    "industries": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "Secteurs d’activité (vocabulaire distinct de `apeLabel`)."
    },
    "technologies": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "website": {
      "type": [
        "string",
        "null"
      ]
    },
    "linkedinUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "phone": {
      "type": [
        "string",
        "null"
      ]
    },
    "directors": {
      "type": [
        "array",
        "null"
      ],
      "description": "Représentants légaux issus des registres officiels : personnes physiques, et mandataires personnes morales (holdings, `type: \"entity\"`) lorsque le registre les publie. Indépendant de `withContacts`, mais **`withFirmographics: false` met ce tableau à `null`** (comme `address`/`city`/`country`) puisque le bloc société n’est alors ni facturé ni renvoyé. Les employés des mandataires personnes morales ne sont jamais recherchés.",
      "items": {
        "$ref": "#/$defs/CompanyContactInfo"
      }
    },
    "contactsRequested": {
      "type": [
        "integer",
        "null"
      ]
    },
    "contactsFound": {
      "type": "integer"
    },
    "contacts": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/CompanyContactInfo"
      }
    }
  },
  "$defs": {
    "CompanyContactInfo": {
      "type": "object",
      "properties": {
        "fullName": {
          "type": [
            "string",
            "null"
          ]
        },
        "firstName": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastName": {
          "type": [
            "string",
            "null"
          ]
        },
        "jobTitle": {
          "type": [
            "string",
            "null"
          ]
        },
        "mandateRole": {
          "type": [
            "string",
            "null"
          ],
          "description": "Rôle de mandat déclaré au registre, en anglais (ex: `Managing director`, `President`). Contexte secondaire quand `jobTitle` porte un intitulé opérationnel distinct."
        },
        "type": {
          "type": "string",
          "enum": [
            "individual",
            "entity"
          ],
          "description": "`entity` = mandataire personne morale (holding / société représentante) - pas de LinkedIn/email."
        },
        "linkedinUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "validated": {
          "type": "boolean",
          "description": "Contact validé (identité confirmée)."
        },
        "confidence": {
          "type": "number",
          "minimum": 0,
          "maximum": 100
        }
      }
    }
  }
}