{
  "openapi": "3.1.0",
  "jsonSchemaDialect": "https://spec.openapis.org/oas/3.1/dialect/base",
  "info": {
    "title": "Get Your Job : API partenaire Radar (v1)",
    "version": "1.0.0",
    "description": "API partenaire Radar de Get Your Job : le Radar ESN (bench, missions recommandées, leads clients finaux, fiches entreprise avec contacts et provenance, suivis, statuts, exclusions) pour un partenaire, par clé partenaire.\n\nGuide d'intégration en français : https://getyourjob.pro/docs/partner-radar-v1.\n\n- Authentification : clé partenaire `gyj_pk_…` en `Authorization: Bearer <clé>` ou `X-API-Key: <clé>`.\n- Scopes accordés par GetYourJob sur la clé : `radar:read` (lectures), `radar:write` (écritures, inclut `radar:read`).\n- Débit : 60 requêtes par minute et par clé (valeur provisoire, à confirmer), compteur propre au Radar, partagé avec l'accès MCP de la même clé.\n- Pagination par curseur opaque : `limit` de 1 à 100 (défaut 100), `cursor` = `next_cursor` de la page précédente, mêmes paramètres sur chaque page.\n- Erreurs : `{ \"error\": { \"code\", \"message\" } }` ; fiez-vous au `code`.\n- Les réponses des routes Radar portent `Cache-Control: no-store` : les contacts sont relus à chaque requête et une personne opposée n'apparaît jamais.",
    "contact": {
      "name": "Get Your Job, API partenaire",
      "email": "contact@getyourjob.pro"
    }
  },
  "externalDocs": {
    "description": "Guide d'intégration (français)",
    "url": "https://getyourjob.pro/docs/partner-radar-v1"
  },
  "servers": [
    {
      "url": "https://getyourjob.pro",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "Lecture",
      "description": "Scope `radar:read`."
    },
    {
      "name": "Écriture",
      "description": "Scope `radar:write` (inclut `radar:read`)."
    }
  ],
  "paths": {
    "/api/partner/v1/radar/bench": {
      "get": {
        "operationId": "listBench",
        "summary": "Lister le bench",
        "description": "Les consultants de votre espace, avec le nombre de leads clients finaux de chacun. Les consultants inactifs sont exclus sauf `include_inactive=true`.\n\nScope : `radar:read`.",
        "tags": [
          "Lecture"
        ],
        "security": [
          {
            "PartnerBearer": [
              "radar:read"
            ]
          },
          {
            "PartnerApiKey": [
              "radar:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "required": false,
            "description": "Inclure les consultants inactifs.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "default": "false"
            }
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "Une page du bench.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarBenchPage"
                },
                "example": {
                  "data": [
                    {
                      "id": "cons_2b7d41",
                      "email": "camille.exemple@example.com",
                      "first_name": "Camille",
                      "last_name": "Exemple",
                      "headline": "Développeuse Java / Spring Boot senior",
                      "years_of_experience": 9,
                      "seniority_level": "SENIOR",
                      "daily_rate": 620,
                      "contract_salary_min": null,
                      "contract_salary_max": null,
                      "contract_type_preference": "FREELANCE",
                      "currency": "EUR",
                      "available_from": "2026-12-01",
                      "cost_floor_daily": 480,
                      "min_daily_rate": 550,
                      "max_mission_weeks": 52,
                      "workload_days_min": 4,
                      "workload_days_max": 5,
                      "flexible_daily_rate": false,
                      "work_types": [
                        "REMOTE",
                        "HYBRID"
                      ],
                      "main_cv_url": null,
                      "website_url": null,
                      "linkedin_url": "https://www.linkedin.com/in/exemple-camille",
                      "github_url": null,
                      "malt_url": null,
                      "collectiv_url": null,
                      "location_formatted": "Lyon, France",
                      "location_lat": 45.764,
                      "location_lng": 4.8357,
                      "location_country": "France",
                      "location_region": "Auvergne-Rhône-Alpes",
                      "location_city": "Lyon",
                      "max_travel_distance": 50,
                      "job_visibility_scope": "NATIONAL",
                      "remote_reach": "NATIONAL",
                      "onsite_unlimited": false,
                      "is_active": true,
                      "read_only": false,
                      "notes": null,
                      "main_skills": [
                        {
                          "technology": "Java",
                          "order": 1
                        },
                        {
                          "technology": "Spring Boot",
                          "order": 2
                        }
                      ],
                      "secondary_skills": [
                        {
                          "technology": "Kafka",
                          "rating": 4
                        }
                      ],
                      "interested_roles": [
                        "BACKEND",
                        "FULL_STACK"
                      ],
                      "primary_role": "BACKEND",
                      "created_at": "2026-10-02T09:14:00.000Z",
                      "updated_at": "2026-11-18T16:40:12.000Z",
                      "leads": {
                        "visibility": "VISIBLE",
                        "total": 12
                      }
                    }
                  ],
                  "next_cursor": null,
                  "has_more": false,
                  "total": 1,
                  "total_leads": 12
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/partner/v1/radar/consultants": {
      "post": {
        "operationId": "createConsultant",
        "summary": "Ajouter un consultant",
        "description": "Ajoute un consultant au bench, avec les règles du formulaire du tableau de bord. Un champ refusé donne 400 `invalid_request` qui le nomme.\n\nScope : `radar:write`.",
        "tags": [
          "Écriture"
        ],
        "security": [
          {
            "PartnerBearer": [
              "radar:write"
            ]
          },
          {
            "PartnerApiKey": [
              "radar:write"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Le consultant à créer.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RadarConsultantCreateBody"
              },
              "example": {
                "email": "camille.exemple@example.com",
                "first_name": "Camille",
                "last_name": "Exemple",
                "headline": "Développeuse Java / Spring Boot senior",
                "years_of_experience": 9,
                "seniority_level": "SENIOR",
                "daily_rate": 620,
                "contract_type_preference": "FREELANCE",
                "available_from": "2026-12-01",
                "work_types": [
                  "REMOTE",
                  "HYBRID"
                ],
                "linkedin_url": "https://www.linkedin.com/in/exemple-camille",
                "location_city": "Lyon",
                "main_skills": [
                  {
                    "technology": "Java",
                    "order": 1
                  },
                  {
                    "technology": "Spring Boot",
                    "order": 2
                  }
                ],
                "secondary_skills": [
                  {
                    "technology": "Kafka",
                    "rating": 4
                  }
                ],
                "interested_roles": [
                  "BACKEND",
                  "FULL_STACK"
                ],
                "primary_role": "BACKEND"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Le consultant créé.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarConsultant"
                },
                "example": {
                  "id": "cons_2b7d41",
                  "email": "camille.exemple@example.com",
                  "first_name": "Camille",
                  "last_name": "Exemple",
                  "headline": "Développeuse Java / Spring Boot senior",
                  "years_of_experience": 9,
                  "seniority_level": "SENIOR",
                  "daily_rate": 620,
                  "contract_salary_min": null,
                  "contract_salary_max": null,
                  "contract_type_preference": "FREELANCE",
                  "currency": "EUR",
                  "available_from": "2026-12-01",
                  "cost_floor_daily": 480,
                  "min_daily_rate": 550,
                  "max_mission_weeks": 52,
                  "workload_days_min": 4,
                  "workload_days_max": 5,
                  "flexible_daily_rate": false,
                  "work_types": [
                    "REMOTE",
                    "HYBRID"
                  ],
                  "main_cv_url": null,
                  "website_url": null,
                  "linkedin_url": "https://www.linkedin.com/in/exemple-camille",
                  "github_url": null,
                  "malt_url": null,
                  "collectiv_url": null,
                  "location_formatted": "Lyon, France",
                  "location_lat": 45.764,
                  "location_lng": 4.8357,
                  "location_country": "France",
                  "location_region": "Auvergne-Rhône-Alpes",
                  "location_city": "Lyon",
                  "max_travel_distance": 50,
                  "job_visibility_scope": "NATIONAL",
                  "remote_reach": "NATIONAL",
                  "onsite_unlimited": false,
                  "is_active": true,
                  "read_only": false,
                  "notes": null,
                  "main_skills": [
                    {
                      "technology": "Java",
                      "order": 1
                    },
                    {
                      "technology": "Spring Boot",
                      "order": 2
                    }
                  ],
                  "secondary_skills": [
                    {
                      "technology": "Kafka",
                      "rating": 4
                    }
                  ],
                  "interested_roles": [
                    "BACKEND",
                    "FULL_STACK"
                  ],
                  "primary_role": "BACKEND",
                  "created_at": "2026-10-02T09:14:00.000Z",
                  "updated_at": "2026-11-18T16:40:12.000Z"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/partner/v1/radar/consultants/{id}": {
      "get": {
        "operationId": "getConsultant",
        "summary": "Lire un consultant",
        "description": "Un consultant de votre espace. Un identifiant inconnu, ou d'un autre espace, donne 404 `not_found`.\n\nScope : `radar:read`.",
        "tags": [
          "Lecture"
        ],
        "security": [
          {
            "PartnerBearer": [
              "radar:read"
            ]
          },
          {
            "PartnerApiKey": [
              "radar:read"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ConsultantId"
          }
        ],
        "responses": {
          "200": {
            "description": "Le consultant.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarConsultant"
                },
                "example": {
                  "id": "cons_2b7d41",
                  "email": "camille.exemple@example.com",
                  "first_name": "Camille",
                  "last_name": "Exemple",
                  "headline": "Développeuse Java / Spring Boot senior",
                  "years_of_experience": 9,
                  "seniority_level": "SENIOR",
                  "daily_rate": 620,
                  "contract_salary_min": null,
                  "contract_salary_max": null,
                  "contract_type_preference": "FREELANCE",
                  "currency": "EUR",
                  "available_from": "2026-12-01",
                  "cost_floor_daily": 480,
                  "min_daily_rate": 550,
                  "max_mission_weeks": 52,
                  "workload_days_min": 4,
                  "workload_days_max": 5,
                  "flexible_daily_rate": false,
                  "work_types": [
                    "REMOTE",
                    "HYBRID"
                  ],
                  "main_cv_url": null,
                  "website_url": null,
                  "linkedin_url": "https://www.linkedin.com/in/exemple-camille",
                  "github_url": null,
                  "malt_url": null,
                  "collectiv_url": null,
                  "location_formatted": "Lyon, France",
                  "location_lat": 45.764,
                  "location_lng": 4.8357,
                  "location_country": "France",
                  "location_region": "Auvergne-Rhône-Alpes",
                  "location_city": "Lyon",
                  "max_travel_distance": 50,
                  "job_visibility_scope": "NATIONAL",
                  "remote_reach": "NATIONAL",
                  "onsite_unlimited": false,
                  "is_active": true,
                  "read_only": false,
                  "notes": null,
                  "main_skills": [
                    {
                      "technology": "Java",
                      "order": 1
                    },
                    {
                      "technology": "Spring Boot",
                      "order": 2
                    }
                  ],
                  "secondary_skills": [
                    {
                      "technology": "Kafka",
                      "rating": 4
                    }
                  ],
                  "interested_roles": [
                    "BACKEND",
                    "FULL_STACK"
                  ],
                  "primary_role": "BACKEND",
                  "created_at": "2026-10-02T09:14:00.000Z",
                  "updated_at": "2026-11-18T16:40:12.000Z"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "patch": {
        "operationId": "updateConsultant",
        "summary": "Modifier un consultant",
        "description": "Modifie les champs donnés seulement (positionnement, cadre de mission, disponibilité, `is_active`…), avec les règles du tableau de bord.\n\nScope : `radar:write`.",
        "tags": [
          "Écriture"
        ],
        "security": [
          {
            "PartnerBearer": [
              "radar:write"
            ]
          },
          {
            "PartnerApiKey": [
              "radar:write"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ConsultantId"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Les champs à modifier.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RadarConsultantUpdateBody"
              },
              "example": {
                "available_from": "2027-01-05",
                "daily_rate": 650,
                "is_active": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Le consultant modifié.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarConsultant"
                },
                "example": {
                  "id": "cons_2b7d41",
                  "email": "camille.exemple@example.com",
                  "first_name": "Camille",
                  "last_name": "Exemple",
                  "headline": "Développeuse Java / Spring Boot senior",
                  "years_of_experience": 9,
                  "seniority_level": "SENIOR",
                  "daily_rate": 650,
                  "contract_salary_min": null,
                  "contract_salary_max": null,
                  "contract_type_preference": "FREELANCE",
                  "currency": "EUR",
                  "available_from": "2027-01-05",
                  "cost_floor_daily": 480,
                  "min_daily_rate": 550,
                  "max_mission_weeks": 52,
                  "workload_days_min": 4,
                  "workload_days_max": 5,
                  "flexible_daily_rate": false,
                  "work_types": [
                    "REMOTE",
                    "HYBRID"
                  ],
                  "main_cv_url": null,
                  "website_url": null,
                  "linkedin_url": "https://www.linkedin.com/in/exemple-camille",
                  "github_url": null,
                  "malt_url": null,
                  "collectiv_url": null,
                  "location_formatted": "Lyon, France",
                  "location_lat": 45.764,
                  "location_lng": 4.8357,
                  "location_country": "France",
                  "location_region": "Auvergne-Rhône-Alpes",
                  "location_city": "Lyon",
                  "max_travel_distance": 50,
                  "job_visibility_scope": "NATIONAL",
                  "remote_reach": "NATIONAL",
                  "onsite_unlimited": false,
                  "is_active": true,
                  "read_only": false,
                  "notes": null,
                  "main_skills": [
                    {
                      "technology": "Java",
                      "order": 1
                    },
                    {
                      "technology": "Spring Boot",
                      "order": 2
                    }
                  ],
                  "secondary_skills": [
                    {
                      "technology": "Kafka",
                      "rating": 4
                    }
                  ],
                  "interested_roles": [
                    "BACKEND",
                    "FULL_STACK"
                  ],
                  "primary_role": "BACKEND",
                  "created_at": "2026-10-02T09:14:00.000Z",
                  "updated_at": "2026-11-18T16:40:12.000Z"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/partner/v1/radar/consultants/{id}/missions": {
      "get": {
        "operationId": "getConsultantMissions",
        "summary": "Lister les missions d'un consultant",
        "description": "Les missions déjà recommandées pour le consultant, les meilleures en premier, dans son cadre (TJM, durée, charge) sauf `include_out_of_frame=true`.\n\nScope : `radar:read`.",
        "tags": [
          "Lecture"
        ],
        "security": [
          {
            "PartnerBearer": [
              "radar:read"
            ]
          },
          {
            "PartnerApiKey": [
              "radar:read"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ConsultantId"
          },
          {
            "name": "chain_rank",
            "in": "query",
            "required": false,
            "description": "Rangs dans la chaîne de sous-traitance à garder. Valeurs séparées par des virgules.",
            "style": "form",
            "explode": false,
            "schema": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "string",
                "enum": [
                  "CLIENT_FINAL",
                  "PLATEFORME",
                  "NON_PRECISE",
                  "RANG_2_PLUS"
                ]
              }
            }
          },
          {
            "name": "include_out_of_frame",
            "in": "query",
            "required": false,
            "description": "Inclure les missions hors du cadre du consultant.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "default": "false"
            }
          },
          {
            "name": "include_old",
            "in": "query",
            "required": false,
            "description": "Inclure les missions anciennes.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "default": "false"
            }
          },
          {
            "name": "min_score",
            "in": "query",
            "required": false,
            "description": "Score de correspondance minimal (0 à 100).",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "Une page de missions.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarMissionsPage"
                },
                "example": {
                  "data": [
                    {
                      "id": "b3e1f0c2-7a4d-4e8b-9c16-d2f3a4b5c6d7",
                      "locked": false,
                      "off_market": false,
                      "title": "Développeur Java Spring Boot (H/F)",
                      "company_name": "Exemple Industrie",
                      "company": {
                        "name": "Exemple Industrie",
                        "type": "DIRECT_EMPLOYER"
                      },
                      "location": "Lyon (69)",
                      "stack": [
                        "Java",
                        "Spring Boot",
                        "Kafka"
                      ],
                      "job_type": "Freelance",
                      "seniority_level": "SENIOR",
                      "is_urgent": false,
                      "application_url": "https://www.example.com/offres/1234",
                      "created_at": "2026-11-17T07:30:00.000Z",
                      "daily_rate": {
                        "min": 550,
                        "max": 650,
                        "label": "550-650 €/j"
                      },
                      "work_type": "HYBRID",
                      "remote_verdict": "HYBRID",
                      "remote_claim": "HYBRID",
                      "remote_constraint_detail": null,
                      "mission_terms": {
                        "duration_weeks_min": 26,
                        "duration_weeks_max": 52,
                        "workload_days_per_week": 5
                      },
                      "out_of_frame": [],
                      "distance_km": 4.2,
                      "chain_rank": "CLIENT_FINAL",
                      "chain_rank_label": "Client final",
                      "need_author_kind": null,
                      "also_published_by_count": 1,
                      "match_score": 87.5,
                      "match_id": "match_9c21e0",
                      "matched_at": "2026-11-18T06:02:00.000Z"
                    }
                  ],
                  "next_cursor": null,
                  "has_more": false,
                  "total": 1,
                  "chain_rank_counts": {
                    "CLIENT_FINAL": 1,
                    "PLATEFORME": 0,
                    "NON_PRECISE": 0,
                    "RANG_2_PLUS": 0
                  },
                  "out_of_frame_count": 2,
                  "locked_hidden_count": 0
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/partner/v1/radar/consultants/{id}/lead-statuses": {
      "get": {
        "operationId": "getLeadStatuses",
        "summary": "Lister les statuts de lead d'un consultant",
        "description": "Les statuts de lead posés pour le consultant, le plus récent en premier.\n\nScope : `radar:read`.",
        "tags": [
          "Lecture"
        ],
        "security": [
          {
            "PartnerBearer": [
              "radar:read"
            ]
          },
          {
            "PartnerApiKey": [
              "radar:read"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ConsultantId"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "Une page de statuts.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarLeadStatusesPage"
                },
                "example": {
                  "visible": true,
                  "data": [
                    {
                      "company_id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
                      "company_name": "Exemple Industrie",
                      "status": "CONTACTED",
                      "note": "Relance prévue le 2 décembre",
                      "updated_at": "2026-11-18T10:05:00.000Z"
                    }
                  ],
                  "next_cursor": null,
                  "has_more": false,
                  "total": 1
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/partner/v1/radar/consultants/{id}/leads/{companyId}/status": {
      "put": {
        "operationId": "setLeadStatus",
        "summary": "Poser le statut d'un lead",
        "description": "Pose le statut du lead (l'entreprise) pour le consultant, avec une note facultative, comme sur le tableau de bord.\n\nScope : `radar:write`.",
        "tags": [
          "Écriture"
        ],
        "security": [
          {
            "PartnerBearer": [
              "radar:write"
            ]
          },
          {
            "PartnerApiKey": [
              "radar:write"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ConsultantId"
          },
          {
            "$ref": "#/components/parameters/CompanyId"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Le statut et la note.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RadarLeadStatusBody"
              },
              "example": {
                "status": "MEETING",
                "note": "Rendez-vous le 3 décembre avec la DSI"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Le statut enregistré.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarLeadStatusResult"
                },
                "example": {
                  "consultant_id": "cons_2b7d41",
                  "company_id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
                  "status": "MEETING",
                  "note": "Rendez-vous le 3 décembre avec la DSI",
                  "updated_at": "2026-11-19T08:30:00.000Z"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/partner/v1/radar/leads": {
      "get": {
        "operationId": "getEndClientLeads",
        "summary": "Lister les leads clients finaux",
        "description": "Les entreprises qui recrutent en direct, les mieux classées en premier, avec les filtres du tableau de bord. Une valeur inconnue donne 400 `invalid_parameter` ; un `consultant_id` inconnu donne 404 `not_found`.\n\nScope : `radar:read`.",
        "tags": [
          "Lecture"
        ],
        "security": [
          {
            "PartnerBearer": [
              "radar:read"
            ]
          },
          {
            "PartnerApiKey": [
              "radar:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "consultant_id",
            "in": "query",
            "required": false,
            "description": "Leads pour ce consultant seulement.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,64}$"
            }
          },
          {
            "name": "track",
            "in": "query",
            "required": false,
            "description": "Piste (recherche prête à l’emploi).",
            "schema": {
              "type": "string",
              "enum": [
                "jeunes_pousses",
                "pme_en_tension",
                "besoin_immediat",
                "rame_a_recruter",
                "ouvert_remote",
                "nouveau_marche"
              ]
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "description": "Tailles d'entreprise. Valeurs séparées par des virgules.",
            "style": "form",
            "explode": false,
            "schema": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "string",
                "enum": [
                  "TPE",
                  "PME",
                  "ETI",
                  "GRAND_COMPTE",
                  "UNKNOWN"
                ]
              }
            }
          },
          {
            "name": "company_age",
            "in": "query",
            "required": false,
            "description": "Âge de l'entreprise, en années.",
            "schema": {
              "type": "string",
              "enum": [
                "<2",
                "2-5",
                ">5",
                "unknown"
              ]
            }
          },
          {
            "name": "contract",
            "in": "query",
            "required": false,
            "description": "Type de contrat des postes.",
            "schema": {
              "type": "string",
              "enum": [
                "freelance",
                "salarie",
                "all"
              ]
            }
          },
          {
            "name": "work_mode",
            "in": "query",
            "required": false,
            "description": "Modes de travail. Valeurs séparées par des virgules.",
            "style": "form",
            "explode": false,
            "schema": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "string",
                "enum": [
                  "remote",
                  "hybrid",
                  "onsite"
                ]
              }
            }
          },
          {
            "name": "city",
            "in": "query",
            "required": false,
            "description": "Ville de référence du rayon.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "radius_km",
            "in": "query",
            "required": false,
            "description": "Rayon autour de `city` (obligatoire avec ce paramètre), 1 à 200 km.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "description": "Région française, par exemple Bretagne.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "skills",
            "in": "query",
            "required": false,
            "description": "Compétences (au plus 20, 50 caractères chacune), séparées par des virgules.",
            "style": "form",
            "explode": false,
            "schema": {
              "type": "array",
              "minItems": 1,
              "maxItems": 20,
              "items": {
                "type": "string",
                "maxLength": 50
              }
            }
          },
          {
            "name": "posted_within",
            "in": "query",
            "required": false,
            "description": "Ancienneté des postes : moins de 7 jours, moins de 30 jours, 30 jours ou plus.",
            "schema": {
              "type": "string",
              "enum": [
                "lt7",
                "lt30",
                "gte30"
              ]
            }
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "Une page de leads.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarLeadsPage"
                },
                "example": {
                  "data": [
                    {
                      "company_id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
                      "company_name": "Exemple Industrie",
                      "city": "Lyon",
                      "size_class": "ETI",
                      "founded_year": 1998,
                      "score": 78,
                      "reasons": [
                        {
                          "kind": "SIZE",
                          "label": "ETI"
                        },
                        {
                          "kind": "URGENT",
                          "label": "Besoin urgent"
                        }
                      ],
                      "why_now": [
                        {
                          "kind": "OPEN_ROLES",
                          "skill": "Java",
                          "count": 3,
                          "label": "3 postes Java ouverts"
                        },
                        {
                          "kind": "OPEN_SINCE",
                          "days": 21,
                          "label": "Ouvert depuis 21 jours"
                        }
                      ],
                      "work_modes": [
                        "hybrid"
                      ],
                      "matching_offers": 3,
                      "distance_km": 4.2,
                      "postes": [
                        {
                          "id": "b3e1f0c2-7a4d-4e8b-9c16-d2f3a4b5c6d7",
                          "title": "Développeur Java Spring Boot (H/F)",
                          "job_type": "Freelance",
                          "contract": "FREELANCE",
                          "age_days": 3,
                          "city": "Lyon",
                          "distance_km": 4.2,
                          "copies": 2,
                          "sources": 2,
                          "stt_accepted": {
                            "evidence": "sous-traitance acceptée"
                          }
                        }
                      ],
                      "bench_fit": [
                        {
                          "consultant_id": "cons_2b7d41",
                          "short_name": "Camille E."
                        }
                      ],
                      "status": {
                        "status": "CONTACTED",
                        "consultant_id": "cons_2b7d41"
                      },
                      "followed": true
                    }
                  ],
                  "next_cursor": null,
                  "has_more": false,
                  "total": 1,
                  "tracks": {
                    "jeunes_pousses": 0,
                    "pme_en_tension": 1,
                    "besoin_immediat": 1,
                    "rame_a_recruter": 0,
                    "ouvert_remote": 0,
                    "nouveau_marche": 0
                  },
                  "truncated": false,
                  "bench_size": 1,
                  "empty_reason": null
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/partner/v1/radar/companies": {
      "get": {
        "operationId": "searchCompanies",
        "summary": "Chercher une entreprise",
        "description": "Les entreprises dont le nom correspond à `q` (2 à 100 caractères), 10 au plus, sans pagination.\n\nScope : `radar:read`.",
        "tags": [
          "Lecture"
        ],
        "security": [
          {
            "PartnerBearer": [
              "radar:read"
            ]
          },
          {
            "PartnerApiKey": [
              "radar:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "Nom (ou début de nom) de l'entreprise.",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Les entreprises trouvées.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarCompanySearch"
                },
                "example": {
                  "data": [
                    {
                      "company_id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
                      "name": "Exemple Industrie",
                      "city": "Lyon",
                      "size_class": "ETI",
                      "company_type": "DIRECT_EMPLOYER",
                      "followed": true
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/partner/v1/radar/companies/{id}": {
      "get": {
        "operationId": "getCompanyInsights",
        "summary": "Lire la fiche d'une entreprise (contacts compris)",
        "description": "La fiche Radar de l'entreprise : postes ouverts, historique, raisons, bench, statuts, note, exclusion, contacts et coordonnées publiées, chaque coordonnée avec sa `source` et sa date de collecte `collected_at`. Relue à chaque requête, jamais mise en cache (`Cache-Control: no-store`). Une personne opposée n'apparaît jamais ; une entreprise de la liste noire donne 404 `not_found`. Lecture pure : les notifications de suivi restent non lues.\n\nScope : `radar:read`.",
        "tags": [
          "Lecture"
        ],
        "security": [
          {
            "PartnerBearer": [
              "radar:read"
            ]
          },
          {
            "PartnerApiKey": [
              "radar:read"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/CompanyIdPath"
          }
        ],
        "responses": {
          "200": {
            "description": "La fiche de l'entreprise.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarCompany"
                },
                "examples": {
                  "scale": {
                    "summary": "Fiche complète (espace partenaire, droits Scale)",
                    "value": {
                      "locked": false,
                      "company": {
                        "company_id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
                        "name": "Exemple Industrie",
                        "city": "Lyon",
                        "hq_address": "1 rue de l'Exemple, 69002 Lyon",
                        "size_class": "ETI",
                        "size_source": "sirene",
                        "sirene_category": "ETI",
                        "founded_year": 1998,
                        "industry": "Fabrication de machines",
                        "website": "https://www.example.com",
                        "linkedin_url": "https://www.linkedin.com/company/exemple-industrie",
                        "public_slug": "exemple-industrie"
                      },
                      "followed": true,
                      "counts": {
                        "open_postes": 1,
                        "history_postes": 2
                      },
                      "reasons": [
                        {
                          "kind": "SIZE",
                          "label": "ETI"
                        }
                      ],
                      "open_postes": [
                        {
                          "offer_id": "b3e1f0c2-7a4d-4e8b-9c16-d2f3a4b5c6d7",
                          "title": "Développeur Java Spring Boot (H/F)",
                          "contract": "FREELANCE",
                          "work_mode": "hybrid",
                          "city": "Lyon",
                          "age_days": 3,
                          "copies": 2,
                          "sources": 2
                        }
                      ],
                      "history": {
                        "postes": [
                          {
                            "offer_id": "b3e1f0c2-7a4d-4e8b-9c16-d2f3a4b5c6d7",
                            "title": "Développeur Java Spring Boot (H/F)",
                            "contract": "FREELANCE",
                            "work_mode": "hybrid",
                            "city": "Lyon",
                            "age_days": 3,
                            "copies": 2,
                            "sources": 2,
                            "open": true,
                            "closed_days_ago": null
                          },
                          {
                            "offer_id": "c4f2a1d3-8b5e-4f9c-8d27-e3a4b5c6d7e8",
                            "title": "Architecte cloud (H/F)",
                            "contract": "FREELANCE",
                            "work_mode": "hybrid",
                            "city": "Lyon",
                            "age_days": 64,
                            "copies": 2,
                            "sources": 2,
                            "open": false,
                            "closed_days_ago": 40
                          }
                        ],
                        "per_month": [
                          {
                            "month": "2026-09",
                            "count": 1
                          },
                          {
                            "month": "2026-11",
                            "count": 1
                          }
                        ]
                      },
                      "bench": [
                        {
                          "consultant_id": "cons_2b7d41",
                          "short_name": "Camille E."
                        }
                      ],
                      "statuses": [
                        {
                          "consultant_id": "cons_2b7d41",
                          "short_name": "Camille E.",
                          "status": "CONTACTED"
                        }
                      ],
                      "note": "Interlocuteur achats à identifier",
                      "exclusion": null,
                      "contacts": [
                        {
                          "id": "person_5e8a21",
                          "name": "Dominique Exemple",
                          "title": "Directeur des systèmes d'information",
                          "role_type": "IT_MANAGER",
                          "linkedin_url": {
                            "value": "https://www.linkedin.com/in/exemple-dominique",
                            "source": "linkedin_profile",
                            "source_label": "LinkedIn (profil public)",
                            "collected_at": "2026-10-21T08:00:00.000Z"
                          },
                          "email": {
                            "value": "dominique.exemple@example.com",
                            "source": "website",
                            "source_label": "Site de l'entreprise",
                            "collected_at": "2026-11-04T13:12:00.000Z"
                          },
                          "phone": null
                        }
                      ],
                      "channels": [
                        {
                          "kind": "phone",
                          "value": "+33 1 99 00 12 34",
                          "source": "website",
                          "source_label": "Site de l'entreprise",
                          "source_url": "https://www.example.com/contact",
                          "collected_at": "2026-11-04T13:12:00.000Z"
                        },
                        {
                          "kind": "email",
                          "value": "contact@example.com",
                          "source": "website",
                          "source_label": "Site de l'entreprise",
                          "source_url": "https://www.example.com/contact",
                          "collected_at": "2026-11-04T13:12:00.000Z"
                        }
                      ]
                    }
                  },
                  "locked": {
                    "summary": "Vue réduite du plan gratuit (ne concerne pas un espace partenaire)",
                    "value": {
                      "locked": true,
                      "company": {
                        "company_id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
                        "name": "Exemple Industrie",
                        "city": "Lyon",
                        "hq_address": "1 rue de l'Exemple, 69002 Lyon",
                        "size_class": "ETI",
                        "size_source": "sirene",
                        "sirene_category": "ETI",
                        "founded_year": 1998,
                        "industry": "Fabrication de machines",
                        "website": "https://www.example.com",
                        "linkedin_url": "https://www.linkedin.com/company/exemple-industrie",
                        "public_slug": "exemple-industrie"
                      },
                      "followed": false,
                      "counts": {
                        "open_postes": 1
                      },
                      "latest_titles": [
                        "Développeur Java Spring Boot (H/F)"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/partner/v1/radar/follows": {
      "get": {
        "operationId": "listFollowedCompanies",
        "summary": "Lister les entreprises suivies",
        "description": "Les entreprises suivies par votre espace, la plus récemment suivie en premier.\n\nScope : `radar:read`.",
        "tags": [
          "Lecture"
        ],
        "security": [
          {
            "PartnerBearer": [
              "radar:read"
            ]
          },
          {
            "PartnerApiKey": [
              "radar:read"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "Une page de suivis.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarFollowsPage"
                },
                "example": {
                  "data": [
                    {
                      "company_id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
                      "name": "Exemple Industrie",
                      "city": "Lyon",
                      "size_class": "ETI",
                      "open_postes": 1,
                      "latest_poste": {
                        "title": "Développeur Java Spring Boot (H/F)",
                        "age_days": 3
                      },
                      "new_count": 1,
                      "bench_fit": 1,
                      "status": {
                        "status": "CONTACTED",
                        "consultant_id": "cons_2b7d41"
                      },
                      "note": "Interlocuteur achats à identifier",
                      "paused": false
                    }
                  ],
                  "next_cursor": null,
                  "has_more": false,
                  "total": 1,
                  "follow_limit": null
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "post": {
        "operationId": "followCompany",
        "summary": "Suivre une entreprise",
        "description": "Suit une entreprise. La suivre à nouveau ne change rien. Une entreprise inconnue donne 404 `not_found`.\n\nScope : `radar:write`.",
        "tags": [
          "Écriture"
        ],
        "security": [
          {
            "PartnerBearer": [
              "radar:write"
            ]
          },
          {
            "PartnerApiKey": [
              "radar:write"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "description": "L'entreprise à suivre.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RadarFollowBody"
              },
              "example": {
                "company_id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "L'entreprise est suivie.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarFollowResult"
                },
                "example": {
                  "company_id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
                  "followed": true
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/partner/v1/radar/follows/{companyId}": {
      "patch": {
        "operationId": "setCompanyNote",
        "summary": "Écrire la note d'une entreprise suivie",
        "description": "La note sur une entreprise suivie ; null l'efface. Une entreprise non suivie donne 404 `not_found`.\n\nScope : `radar:write`.",
        "tags": [
          "Écriture"
        ],
        "security": [
          {
            "PartnerBearer": [
              "radar:write"
            ]
          },
          {
            "PartnerApiKey": [
              "radar:write"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/CompanyId"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "La note.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RadarFollowNoteBody"
              },
              "example": {
                "note": "Interlocuteur achats à identifier"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "La note enregistrée.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarCompanyNote"
                },
                "example": {
                  "company_id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
                  "note": "Interlocuteur achats à identifier"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "delete": {
        "operationId": "unfollowCompany",
        "summary": "Ne plus suivre une entreprise",
        "description": "Arrête le suivi ; la note part avec le suivi. Une entreprise non suivie répond aussi 200.\n\nScope : `radar:write`.",
        "tags": [
          "Écriture"
        ],
        "security": [
          {
            "PartnerBearer": [
              "radar:write"
            ]
          },
          {
            "PartnerApiKey": [
              "radar:write"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/CompanyId"
          }
        ],
        "responses": {
          "200": {
            "description": "L'entreprise n'est plus suivie.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarFollowResult"
                },
                "example": {
                  "company_id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
                  "followed": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/partner/v1/radar/exclusions": {
      "get": {
        "operationId": "listExclusions",
        "summary": "Lister les entreprises exclues",
        "description": "Les entreprises que votre espace ne veut jamais voir en lead (client actuel, ne pas contacter).\n\nScope : `radar:read`.",
        "tags": [
          "Lecture"
        ],
        "security": [
          {
            "PartnerBearer": [
              "radar:read"
            ]
          },
          {
            "PartnerApiKey": [
              "radar:read"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "Une page d’exclusions.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarExclusionsPage"
                },
                "example": {
                  "data": [
                    {
                      "company_id": "0d9e8f7a-6b5c-4d3e-9f21-a0b1c2d3e4f5",
                      "company_name": "Autre Exemple SA",
                      "reason": "CLIENT_ACTUEL",
                      "created_at": "2026-11-12T15:20:00.000Z"
                    }
                  ],
                  "next_cursor": null,
                  "has_more": false,
                  "total": 1
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "post": {
        "operationId": "excludeCompany",
        "summary": "Exclure une entreprise des leads",
        "description": "Exclut une entreprise des leads, avec sa raison. Idempotent. Une entreprise inconnue donne 404 `not_found`.\n\nScope : `radar:write`.",
        "tags": [
          "Écriture"
        ],
        "security": [
          {
            "PartnerBearer": [
              "radar:write"
            ]
          },
          {
            "PartnerApiKey": [
              "radar:write"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "description": "L'entreprise et la raison.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RadarExclusionBody"
              },
              "example": {
                "company_id": "0d9e8f7a-6b5c-4d3e-9f21-a0b1c2d3e4f5",
                "reason": "CLIENT_ACTUEL"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "L'entreprise est exclue.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarExclusionResult"
                },
                "example": {
                  "company_id": "0d9e8f7a-6b5c-4d3e-9f21-a0b1c2d3e4f5",
                  "excluded": true
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "delete": {
        "operationId": "unexcludeCompany",
        "summary": "Retirer une exclusion",
        "description": "Retire l'exclusion. L'entreprise se donne soit par `?company_id=`, soit dans le corps `{ \"company_id\": … }`. Répond 200 aussi quand l'entreprise n'était pas exclue.\n\nScope : `radar:write`.",
        "tags": [
          "Écriture"
        ],
        "security": [
          {
            "PartnerBearer": [
              "radar:write"
            ]
          },
          {
            "PartnerApiKey": [
              "radar:write"
            ]
          }
        ],
        "parameters": [
          {
            "name": "company_id",
            "in": "query",
            "required": false,
            "description": "L'entreprise (uuid), si elle n'est pas dans le corps.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "description": "L'entreprise, si elle n'est pas dans la requête.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RadarExclusionDeleteBody"
              },
              "example": {
                "company_id": "0d9e8f7a-6b5c-4d3e-9f21-a0b1c2d3e4f5"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "L'exclusion est retirée.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarExclusionResult"
                },
                "example": {
                  "company_id": "0d9e8f7a-6b5c-4d3e-9f21-a0b1c2d3e4f5",
                  "excluded": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/partner/v1/radar/saved-missions": {
      "post": {
        "operationId": "saveMission",
        "summary": "Enregistrer une mission pour un consultant",
        "description": "Le « Positionner » du tableau de bord : enregistre la mission pour le consultant et, avec `propose_to_author: true`, propose le consultant à l'auteur d'un besoin Espace Pro. Déjà enregistrée, ou votre propre besoin : 400 `invalid_request`.\n\nScope : `radar:write`.",
        "tags": [
          "Écriture"
        ],
        "security": [
          {
            "PartnerBearer": [
              "radar:write"
            ]
          },
          {
            "PartnerApiKey": [
              "radar:write"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Le consultant et la mission.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RadarSavedMissionBody"
              },
              "example": {
                "consultant_id": "cons_2b7d41",
                "job_offer_id": "b3e1f0c2-7a4d-4e8b-9c16-d2f3a4b5c6d7",
                "notes": "Profil à présenter au client"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "La mission enregistrée.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarSavedMissionResult"
                },
                "example": {
                  "saved_mission": {
                    "id": "saved_41d0aa",
                    "consultant_id": "cons_2b7d41",
                    "job_offer_id": "b3e1f0c2-7a4d-4e8b-9c16-d2f3a4b5c6d7",
                    "status": "CV_TO_SEND",
                    "notes": "Profil à présenter au client",
                    "created_at": "2026-11-19T09:00:00.000Z",
                    "updated_at": "2026-11-19T09:00:00.000Z"
                  },
                  "proposal": null
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/partner/v1/radar/saved-missions/{id}": {
      "delete": {
        "operationId": "unsaveMission",
        "summary": "Retirer une mission enregistrée",
        "description": "Retire une mission enregistrée pour un consultant de votre espace. Inconnue, ou d'un autre espace : 404 `not_found`.\n\nScope : `radar:write`.",
        "tags": [
          "Écriture"
        ],
        "security": [
          {
            "PartnerBearer": [
              "radar:write"
            ]
          },
          {
            "PartnerApiKey": [
              "radar:write"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/SavedMissionId"
          }
        ],
        "responses": {
          "200": {
            "description": "La mission est retirée.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Cache-Control": {
                "$ref": "#/components/headers/Cache-Control"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarSavedMissionDeleted"
                },
                "example": {
                  "id": "saved_41d0aa",
                  "deleted": true
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "PartnerBearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Clé partenaire `gyj_pk_…` dans `Authorization: Bearer <clé>`."
      },
      "PartnerApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "La même clé dans `X-API-Key`."
      }
    },
    "parameters": {
      "limit": {
        "name": "limit",
        "in": "query",
        "required": false,
        "description": "Éléments par page, 1 à 100. Au-delà : 400 `invalid_parameter`, jamais de troncature silencieuse. Fait partie des paramètres du parcours : gardez la même valeur sur chaque page.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "default": 100
        }
      },
      "cursor": {
        "name": "cursor",
        "in": "query",
        "required": false,
        "description": "Le `next_cursor` de la page précédente, tel quel. Il est lié à la liste et à ses paramètres (filtres, identifiant du chemin, `limit`) : renvoyé avec d’autres paramètres, il donne 400 `invalid_parameter`.",
        "schema": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{1,512}$"
        }
      },
      "ConsultantId": {
        "name": "id",
        "in": "path",
        "required": true,
        "description": "Identifiant du consultant (`id` de RadarConsultant).",
        "schema": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{1,64}$"
        }
      },
      "CompanyIdPath": {
        "name": "id",
        "in": "path",
        "required": true,
        "description": "Identifiant de l'entreprise (uuid, `company_id`).",
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      },
      "CompanyId": {
        "name": "companyId",
        "in": "path",
        "required": true,
        "description": "Identifiant de l'entreprise (uuid, `company_id`).",
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      },
      "SavedMissionId": {
        "name": "id",
        "in": "path",
        "required": true,
        "description": "Identifiant de la mission enregistrée (`saved_mission.id`).",
        "schema": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{1,64}$"
        }
      }
    },
    "headers": {
      "X-RateLimit-Limit": {
        "description": "Requêtes permises par fenêtre de 60 secondes sur la clé.",
        "schema": {
          "type": "integer",
          "example": 60
        }
      },
      "X-RateLimit-Remaining": {
        "description": "Requêtes restantes dans la fenêtre.",
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      },
      "X-RateLimit-Reset": {
        "description": "Instant (secondes Unix) où la fenêtre courante est entièrement écoulée.",
        "schema": {
          "type": "integer"
        }
      },
      "Retry-After": {
        "description": "Secondes à attendre avant de réessayer.",
        "schema": {
          "type": "integer",
          "minimum": 1
        }
      },
      "Cache-Control": {
        "description": "Toujours `no-store` : ne mettez pas ces réponses en cache.",
        "schema": {
          "type": "string",
          "const": "no-store"
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "`invalid_parameter` : paramètre de requête ou de chemin invalide (inconnu, répété, hors bornes, `cursor` modifié ou renvoyé avec d'autres paramètres, `limit` hors 1–100). `invalid_request` : corps invalide (pas du JSON, champ inconnu, valeur refusée ; le message nomme le champ en snake_case), mission déjà enregistrée ou votre propre besoin.",
        "headers": {
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "invalid_parameter": {
                "summary": "Paramètre de requête ou de chemin invalide",
                "value": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "limit must be an integer between 1 and 100."
                  }
                }
              },
              "invalid_request": {
                "summary": "Corps JSON invalide",
                "value": {
                  "error": {
                    "code": "invalid_request",
                    "message": "Unknown field: firstName."
                  }
                }
              }
            }
          }
        }
      },
      "Unauthorized": {
        "description": "`missing_api_key`, `invalid_api_key`, `expired_api_key` ou `revoked_api_key`.",
        "headers": {
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "missing_api_key": {
                "summary": "Pas de clé",
                "value": {
                  "error": {
                    "code": "missing_api_key",
                    "message": "Missing API key. Send \"Authorization: Bearer <key>\" or \"X-API-Key: <key>\"."
                  }
                }
              },
              "invalid_api_key": {
                "summary": "Clé inconnue",
                "value": {
                  "error": {
                    "code": "invalid_api_key",
                    "message": "Invalid API key."
                  }
                }
              },
              "expired_api_key": {
                "summary": "Clé expirée",
                "value": {
                  "error": {
                    "code": "expired_api_key",
                    "message": "This API key has expired."
                  }
                }
              },
              "revoked_api_key": {
                "summary": "Clé révoquée",
                "value": {
                  "error": {
                    "code": "revoked_api_key",
                    "message": "This API key has been revoked."
                  }
                }
              }
            }
          }
        }
      },
      "Forbidden": {
        "description": "`insufficient_scope` : la clé n'a pas le scope de la route (`radar:read` ou `radar:write`). `radar_space_missing` : GetYourJob n'a pas encore ouvert votre espace Radar. `partner_inactive` : compte partenaire désactivé. `plan_locked` / `upgrade_required` : limites de plan (ne concernent pas un espace aux droits Scale).",
        "headers": {
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "insufficient_scope": {
                "summary": "Clé sans le scope de la route",
                "value": {
                  "error": {
                    "code": "insufficient_scope",
                    "message": "This API key lacks the scope this route needs."
                  }
                }
              },
              "radar_space_missing": {
                "summary": "Pas d'espace Radar",
                "value": {
                  "error": {
                    "code": "radar_space_missing",
                    "message": "This partner has no Radar space yet: ask GetYourJob to open it."
                  }
                }
              },
              "partner_inactive": {
                "summary": "Compte partenaire désactivé",
                "value": {
                  "error": {
                    "code": "partner_inactive",
                    "message": "This partner account is inactive."
                  }
                }
              },
              "plan_locked": {
                "summary": "Consultant en lecture seule",
                "value": {
                  "error": {
                    "code": "plan_locked",
                    "message": "This consultant is read-only on the current plan."
                  }
                }
              },
              "upgrade_required": {
                "summary": "Limite du plan",
                "value": {
                  "error": {
                    "code": "upgrade_required",
                    "message": "Follow limit reached on this plan."
                  }
                }
              }
            }
          }
        }
      },
      "NotFound": {
        "description": "`not_found` : identifiant inconnu, d'un autre espace, ou entreprise de la liste noire.",
        "headers": {
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "not_found": {
                "summary": "Identifiant inconnu ou hors de votre espace",
                "value": {
                  "error": {
                    "code": "not_found",
                    "message": "Company not found"
                  }
                }
              }
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "`rate_limited` : plus de 60 requêtes en 60 secondes sur la clé (REST et MCP confondus). Attendre `Retry-After` secondes.",
        "headers": {
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          },
          "Retry-After": {
            "$ref": "#/components/headers/Retry-After"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "rate_limited": {
                "summary": "Débit dépassé",
                "value": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many requests. Retry after the number of seconds in the Retry-After header."
                  }
                }
              }
            }
          }
        }
      },
      "InternalError": {
        "description": "`internal_error` : erreur de notre côté. Réessayer plus tard, avec un délai croissant.",
        "headers": {
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "internal_error": {
                "summary": "Erreur de notre côté",
                "value": {
                  "error": {
                    "code": "internal_error",
                    "message": "Internal error."
                  }
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "Error": {
        "description": "Le corps de toute erreur. Fiez-vous à `code` ; `message` est un texte libre en anglais, susceptible de changer. Un nouveau champ peut apparaître : ignorez-le.",
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Code stable de l'erreur. Codes connus : `missing_api_key`, `invalid_api_key`, `expired_api_key`, `revoked_api_key`, `partner_inactive`, `rate_limited`, `invalid_request`, `invalid_parameter`, `internal_error`, `insufficient_scope`, `radar_space_missing`, `not_found`, `plan_locked`, `upgrade_required`. La liste est ouverte : un nouveau code peut apparaître sans préavis (changement compatible) ; traitez un code inconnu selon le statut HTTP.",
                "x-known-codes": [
                  "missing_api_key",
                  "invalid_api_key",
                  "expired_api_key",
                  "revoked_api_key",
                  "partner_inactive",
                  "rate_limited",
                  "invalid_request",
                  "invalid_parameter",
                  "internal_error",
                  "insufficient_scope",
                  "radar_space_missing",
                  "not_found",
                  "plan_locked",
                  "upgrade_required"
                ]
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ]
          }
        },
        "required": [
          "error"
        ]
      },
      "RadarBenchPage": {
        "description": "Une page du bench, avec le nombre de leads clients finaux de chaque consultant.",
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "email": {
                  "type": "string"
                },
                "first_name": {
                  "type": "string"
                },
                "last_name": {
                  "type": "string"
                },
                "headline": {
                  "type": "string"
                },
                "years_of_experience": {
                  "type": "integer"
                },
                "seniority_level": {
                  "type": "string",
                  "enum": [
                    "JUNIOR",
                    "MID",
                    "SENIOR",
                    "TOP_PROFIL"
                  ]
                },
                "daily_rate": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "contract_salary_min": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "contract_salary_max": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "contract_type_preference": {
                  "type": "string",
                  "enum": [
                    "FREELANCE",
                    "CDI",
                    "STAGE",
                    "ALTERNANCE",
                    "BOTH"
                  ]
                },
                "currency": {
                  "type": "string"
                },
                "available_from": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                },
                "cost_floor_daily": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "min_daily_rate": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "max_mission_weeks": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "workload_days_min": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "workload_days_max": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "flexible_daily_rate": {
                  "type": "boolean"
                },
                "work_types": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "REMOTE",
                      "HYBRID",
                      "ONSITE"
                    ]
                  }
                },
                "main_cv_url": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "website_url": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "linkedin_url": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "github_url": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "malt_url": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "collectiv_url": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "location_formatted": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "location_lat": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "location_lng": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "location_country": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "location_region": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "location_city": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "max_travel_distance": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "job_visibility_scope": {
                  "type": "string",
                  "enum": [
                    "LOCAL",
                    "NATIONAL",
                    "INTERNATIONAL"
                  ]
                },
                "remote_reach": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "NATIONAL",
                    "INTERNATIONAL",
                    null
                  ]
                },
                "onsite_unlimited": {
                  "type": "boolean"
                },
                "is_active": {
                  "type": "boolean"
                },
                "read_only": {
                  "type": "boolean"
                },
                "notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "main_skills": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "technology": {
                        "type": "string"
                      },
                      "order": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "technology",
                      "order"
                    ]
                  }
                },
                "secondary_skills": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "technology": {
                        "type": "string"
                      },
                      "rating": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "technology",
                      "rating"
                    ]
                  }
                },
                "interested_roles": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "ARCHITECT",
                      "CHEF_DE_PROJET",
                      "QA",
                      "CONSULTANT",
                      "AI",
                      "LEAD",
                      "FULL_STACK",
                      "BACKEND",
                      "FRONTEND",
                      "BUILDER",
                      "DEVOPS",
                      "SCRUM_MASTER",
                      "MOBILE",
                      "DELIVERY_MANAGER",
                      "PRODUCT_OWNER",
                      "DATA_ANALYST",
                      "DATA_SCIENTIST",
                      "DATA_ENGINEER",
                      "BUSINESS_ANALYST",
                      "SECURITY",
                      "AGILE_COACH",
                      "SCRUM_MASTER_SAFE",
                      "RELEASE_TRAIN_ENGINEER",
                      "SAP",
                      "ITIL",
                      "DSI",
                      "PRODUCT_DESIGNER",
                      "BUSINESS_DEVELOPER"
                    ]
                  }
                },
                "primary_role": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "ARCHITECT",
                    "CHEF_DE_PROJET",
                    "QA",
                    "CONSULTANT",
                    "AI",
                    "LEAD",
                    "FULL_STACK",
                    "BACKEND",
                    "FRONTEND",
                    "BUILDER",
                    "DEVOPS",
                    "SCRUM_MASTER",
                    "MOBILE",
                    "DELIVERY_MANAGER",
                    "PRODUCT_OWNER",
                    "DATA_ANALYST",
                    "DATA_SCIENTIST",
                    "DATA_ENGINEER",
                    "BUSINESS_ANALYST",
                    "SECURITY",
                    "AGILE_COACH",
                    "SCRUM_MASTER_SAFE",
                    "RELEASE_TRAIN_ENGINEER",
                    "SAP",
                    "ITIL",
                    "DSI",
                    "PRODUCT_DESIGNER",
                    "BUSINESS_DEVELOPER",
                    null
                  ]
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "leads": {
                  "description": "Leads clients finaux du consultant ; null quand ils ne sont pas calculés.",
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "visibility": {
                      "type": "string",
                      "enum": [
                        "VISIBLE",
                        "FROM_J30",
                        "DATE_REQUIRED",
                        "PLAN_LOCKED"
                      ]
                    },
                    "total": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 0
                    }
                  },
                  "required": [
                    "visibility",
                    "total"
                  ]
                }
              },
              "required": [
                "id",
                "email",
                "first_name",
                "last_name",
                "headline",
                "years_of_experience",
                "seniority_level",
                "daily_rate",
                "contract_salary_min",
                "contract_salary_max",
                "contract_type_preference",
                "currency",
                "available_from",
                "cost_floor_daily",
                "min_daily_rate",
                "max_mission_weeks",
                "workload_days_min",
                "workload_days_max",
                "flexible_daily_rate",
                "work_types",
                "main_cv_url",
                "website_url",
                "linkedin_url",
                "github_url",
                "malt_url",
                "collectiv_url",
                "location_formatted",
                "location_lat",
                "location_lng",
                "location_country",
                "location_region",
                "location_city",
                "max_travel_distance",
                "job_visibility_scope",
                "remote_reach",
                "onsite_unlimited",
                "is_active",
                "read_only",
                "notes",
                "main_skills",
                "secondary_skills",
                "interested_roles",
                "primary_role",
                "created_at",
                "updated_at",
                "leads"
              ]
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "total_leads": {
            "description": "Leads clients finaux, tous consultants confondus.",
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "data",
          "next_cursor",
          "has_more",
          "total",
          "total_leads"
        ]
      },
      "RadarConsultant": {
        "description": "Un consultant du bench de votre espace. Toutes les clés sont toujours présentes ; une information absente vaut null.",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "headline": {
            "type": "string"
          },
          "years_of_experience": {
            "type": "integer"
          },
          "seniority_level": {
            "type": "string",
            "enum": [
              "JUNIOR",
              "MID",
              "SENIOR",
              "TOP_PROFIL"
            ]
          },
          "daily_rate": {
            "type": [
              "integer",
              "null"
            ]
          },
          "contract_salary_min": {
            "type": [
              "integer",
              "null"
            ]
          },
          "contract_salary_max": {
            "type": [
              "integer",
              "null"
            ]
          },
          "contract_type_preference": {
            "type": "string",
            "enum": [
              "FREELANCE",
              "CDI",
              "STAGE",
              "ALTERNANCE",
              "BOTH"
            ]
          },
          "currency": {
            "type": "string"
          },
          "available_from": {
            "description": "Date de disponibilité (AAAA-MM-JJ) ; null = non renseignée.",
            "type": [
              "string",
              "null"
            ],
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "cost_floor_daily": {
            "type": [
              "integer",
              "null"
            ]
          },
          "min_daily_rate": {
            "type": [
              "integer",
              "null"
            ]
          },
          "max_mission_weeks": {
            "type": [
              "integer",
              "null"
            ]
          },
          "workload_days_min": {
            "type": [
              "integer",
              "null"
            ]
          },
          "workload_days_max": {
            "type": [
              "integer",
              "null"
            ]
          },
          "flexible_daily_rate": {
            "type": "boolean"
          },
          "work_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "REMOTE",
                "HYBRID",
                "ONSITE"
              ]
            }
          },
          "main_cv_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "website_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "linkedin_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "github_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "malt_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "collectiv_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "location_formatted": {
            "type": [
              "string",
              "null"
            ]
          },
          "location_lat": {
            "type": [
              "number",
              "null"
            ]
          },
          "location_lng": {
            "type": [
              "number",
              "null"
            ]
          },
          "location_country": {
            "type": [
              "string",
              "null"
            ]
          },
          "location_region": {
            "type": [
              "string",
              "null"
            ]
          },
          "location_city": {
            "type": [
              "string",
              "null"
            ]
          },
          "max_travel_distance": {
            "type": [
              "integer",
              "null"
            ]
          },
          "job_visibility_scope": {
            "type": "string",
            "enum": [
              "LOCAL",
              "NATIONAL",
              "INTERNATIONAL"
            ]
          },
          "remote_reach": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "NATIONAL",
              "INTERNATIONAL",
              null
            ]
          },
          "onsite_unlimited": {
            "type": "boolean"
          },
          "is_active": {
            "type": "boolean"
          },
          "read_only": {
            "description": "Au-delà du nombre de consultants du plan : lecture seule, hors recommandations et leads (ne concerne pas un espace partenaire, aux droits Scale).",
            "type": "boolean"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "main_skills": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "technology": {
                  "type": "string"
                },
                "order": {
                  "type": "integer"
                }
              },
              "required": [
                "technology",
                "order"
              ]
            }
          },
          "secondary_skills": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "technology": {
                  "type": "string"
                },
                "rating": {
                  "type": "integer"
                }
              },
              "required": [
                "technology",
                "rating"
              ]
            }
          },
          "interested_roles": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "ARCHITECT",
                "CHEF_DE_PROJET",
                "QA",
                "CONSULTANT",
                "AI",
                "LEAD",
                "FULL_STACK",
                "BACKEND",
                "FRONTEND",
                "BUILDER",
                "DEVOPS",
                "SCRUM_MASTER",
                "MOBILE",
                "DELIVERY_MANAGER",
                "PRODUCT_OWNER",
                "DATA_ANALYST",
                "DATA_SCIENTIST",
                "DATA_ENGINEER",
                "BUSINESS_ANALYST",
                "SECURITY",
                "AGILE_COACH",
                "SCRUM_MASTER_SAFE",
                "RELEASE_TRAIN_ENGINEER",
                "SAP",
                "ITIL",
                "DSI",
                "PRODUCT_DESIGNER",
                "BUSINESS_DEVELOPER"
              ]
            }
          },
          "primary_role": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "ARCHITECT",
              "CHEF_DE_PROJET",
              "QA",
              "CONSULTANT",
              "AI",
              "LEAD",
              "FULL_STACK",
              "BACKEND",
              "FRONTEND",
              "BUILDER",
              "DEVOPS",
              "SCRUM_MASTER",
              "MOBILE",
              "DELIVERY_MANAGER",
              "PRODUCT_OWNER",
              "DATA_ANALYST",
              "DATA_SCIENTIST",
              "DATA_ENGINEER",
              "BUSINESS_ANALYST",
              "SECURITY",
              "AGILE_COACH",
              "SCRUM_MASTER_SAFE",
              "RELEASE_TRAIN_ENGINEER",
              "SAP",
              "ITIL",
              "DSI",
              "PRODUCT_DESIGNER",
              "BUSINESS_DEVELOPER",
              null
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "email",
          "first_name",
          "last_name",
          "headline",
          "years_of_experience",
          "seniority_level",
          "daily_rate",
          "contract_salary_min",
          "contract_salary_max",
          "contract_type_preference",
          "currency",
          "available_from",
          "cost_floor_daily",
          "min_daily_rate",
          "max_mission_weeks",
          "workload_days_min",
          "workload_days_max",
          "flexible_daily_rate",
          "work_types",
          "main_cv_url",
          "website_url",
          "linkedin_url",
          "github_url",
          "malt_url",
          "collectiv_url",
          "location_formatted",
          "location_lat",
          "location_lng",
          "location_country",
          "location_region",
          "location_city",
          "max_travel_distance",
          "job_visibility_scope",
          "remote_reach",
          "onsite_unlimited",
          "is_active",
          "read_only",
          "notes",
          "main_skills",
          "secondary_skills",
          "interested_roles",
          "primary_role",
          "created_at",
          "updated_at"
        ]
      },
      "RadarConsultantCreateBody": {
        "description": "Les champs du formulaire consultant du tableau de bord, en snake_case. Les règles (formats, bornes, au moins une rémunération ou un lien professionnel, rôle principal parmi les rôles) sont celles du tableau de bord ; un refus nomme le champ.",
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "headline": {
            "type": "string"
          },
          "years_of_experience": {
            "type": "number"
          },
          "seniority_level": {
            "type": "string",
            "enum": [
              "JUNIOR",
              "MID",
              "SENIOR",
              "TOP_PROFIL"
            ]
          },
          "daily_rate": {
            "type": [
              "number",
              "null"
            ]
          },
          "contract_salary_min": {
            "type": [
              "number",
              "null"
            ]
          },
          "contract_salary_max": {
            "type": [
              "number",
              "null"
            ]
          },
          "contract_type_preference": {
            "type": "string",
            "enum": [
              "FREELANCE",
              "CDI",
              "BOTH"
            ]
          },
          "currency": {
            "type": "string"
          },
          "available_from": {
            "type": [
              "string",
              "null"
            ]
          },
          "cost_floor_daily": {
            "type": [
              "number",
              "null"
            ]
          },
          "min_daily_rate": {
            "type": [
              "number",
              "null"
            ]
          },
          "max_mission_weeks": {
            "type": [
              "number",
              "null"
            ]
          },
          "workload_days_min": {
            "type": [
              "number",
              "null"
            ]
          },
          "workload_days_max": {
            "type": [
              "number",
              "null"
            ]
          },
          "flexible_daily_rate": {
            "type": "boolean"
          },
          "work_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "REMOTE",
                "HYBRID",
                "ONSITE"
              ]
            }
          },
          "main_cv_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "website_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "linkedin_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "github_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "malt_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "collectiv_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "location_formatted": {
            "type": [
              "string",
              "null"
            ]
          },
          "location_lat": {
            "type": [
              "number",
              "null"
            ]
          },
          "location_lng": {
            "type": [
              "number",
              "null"
            ]
          },
          "location_country": {
            "type": [
              "string",
              "null"
            ]
          },
          "location_region": {
            "type": [
              "string",
              "null"
            ]
          },
          "location_city": {
            "type": [
              "string",
              "null"
            ]
          },
          "max_travel_distance": {
            "type": [
              "number",
              "null"
            ]
          },
          "job_visibility_scope": {
            "type": "string",
            "enum": [
              "LOCAL",
              "NATIONAL",
              "INTERNATIONAL"
            ]
          },
          "remote_reach": {
            "type": "string",
            "enum": [
              "NATIONAL",
              "INTERNATIONAL"
            ]
          },
          "onsite_unlimited": {
            "type": "boolean"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "main_skills": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "technology": {
                  "type": "string"
                },
                "order": {
                  "type": "number"
                }
              },
              "required": [
                "technology",
                "order"
              ],
              "additionalProperties": false
            }
          },
          "secondary_skills": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "technology": {
                  "type": "string"
                },
                "rating": {
                  "type": "number"
                }
              },
              "required": [
                "technology",
                "rating"
              ],
              "additionalProperties": false
            }
          },
          "interested_roles": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "ARCHITECT",
                "CHEF_DE_PROJET",
                "QA",
                "CONSULTANT",
                "AI",
                "LEAD",
                "FULL_STACK",
                "BACKEND",
                "FRONTEND",
                "BUILDER",
                "DEVOPS",
                "SCRUM_MASTER",
                "MOBILE",
                "DELIVERY_MANAGER",
                "PRODUCT_OWNER",
                "DATA_ANALYST",
                "DATA_SCIENTIST",
                "DATA_ENGINEER",
                "BUSINESS_ANALYST",
                "SECURITY",
                "AGILE_COACH",
                "SCRUM_MASTER_SAFE",
                "RELEASE_TRAIN_ENGINEER",
                "SAP",
                "ITIL",
                "DSI",
                "PRODUCT_DESIGNER",
                "BUSINESS_DEVELOPER"
              ]
            }
          },
          "primary_role": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "ARCHITECT",
              "CHEF_DE_PROJET",
              "QA",
              "CONSULTANT",
              "AI",
              "LEAD",
              "FULL_STACK",
              "BACKEND",
              "FRONTEND",
              "BUILDER",
              "DEVOPS",
              "SCRUM_MASTER",
              "MOBILE",
              "DELIVERY_MANAGER",
              "PRODUCT_OWNER",
              "DATA_ANALYST",
              "DATA_SCIENTIST",
              "DATA_ENGINEER",
              "BUSINESS_ANALYST",
              "SECURITY",
              "AGILE_COACH",
              "SCRUM_MASTER_SAFE",
              "RELEASE_TRAIN_ENGINEER",
              "SAP",
              "ITIL",
              "DSI",
              "PRODUCT_DESIGNER",
              "BUSINESS_DEVELOPER",
              null
            ]
          }
        },
        "required": [
          "email",
          "first_name",
          "last_name",
          "headline",
          "years_of_experience",
          "seniority_level",
          "work_types",
          "main_skills",
          "interested_roles"
        ],
        "additionalProperties": false
      },
      "RadarConsultantUpdateBody": {
        "description": "Les champs à modifier seulement, plus `is_active`.",
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "headline": {
            "type": "string"
          },
          "years_of_experience": {
            "type": "number"
          },
          "seniority_level": {
            "type": "string",
            "enum": [
              "JUNIOR",
              "MID",
              "SENIOR",
              "TOP_PROFIL"
            ]
          },
          "daily_rate": {
            "type": [
              "number",
              "null"
            ]
          },
          "contract_salary_min": {
            "type": [
              "number",
              "null"
            ]
          },
          "contract_salary_max": {
            "type": [
              "number",
              "null"
            ]
          },
          "contract_type_preference": {
            "type": "string",
            "enum": [
              "FREELANCE",
              "CDI",
              "BOTH"
            ]
          },
          "currency": {
            "type": "string"
          },
          "available_from": {
            "type": [
              "string",
              "null"
            ]
          },
          "cost_floor_daily": {
            "type": [
              "number",
              "null"
            ]
          },
          "min_daily_rate": {
            "type": [
              "number",
              "null"
            ]
          },
          "max_mission_weeks": {
            "type": [
              "number",
              "null"
            ]
          },
          "workload_days_min": {
            "type": [
              "number",
              "null"
            ]
          },
          "workload_days_max": {
            "type": [
              "number",
              "null"
            ]
          },
          "flexible_daily_rate": {
            "type": "boolean"
          },
          "work_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "REMOTE",
                "HYBRID",
                "ONSITE"
              ]
            }
          },
          "main_cv_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "website_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "linkedin_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "github_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "malt_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "collectiv_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "location_formatted": {
            "type": [
              "string",
              "null"
            ]
          },
          "location_lat": {
            "type": [
              "number",
              "null"
            ]
          },
          "location_lng": {
            "type": [
              "number",
              "null"
            ]
          },
          "location_country": {
            "type": [
              "string",
              "null"
            ]
          },
          "location_region": {
            "type": [
              "string",
              "null"
            ]
          },
          "location_city": {
            "type": [
              "string",
              "null"
            ]
          },
          "max_travel_distance": {
            "type": [
              "number",
              "null"
            ]
          },
          "job_visibility_scope": {
            "type": "string",
            "enum": [
              "LOCAL",
              "NATIONAL",
              "INTERNATIONAL"
            ]
          },
          "remote_reach": {
            "type": "string",
            "enum": [
              "NATIONAL",
              "INTERNATIONAL"
            ]
          },
          "onsite_unlimited": {
            "type": "boolean"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "main_skills": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "technology": {
                  "type": "string"
                },
                "order": {
                  "type": "number"
                }
              },
              "required": [
                "technology",
                "order"
              ],
              "additionalProperties": false
            }
          },
          "secondary_skills": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "technology": {
                  "type": "string"
                },
                "rating": {
                  "type": "number"
                }
              },
              "required": [
                "technology",
                "rating"
              ],
              "additionalProperties": false
            }
          },
          "interested_roles": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "ARCHITECT",
                "CHEF_DE_PROJET",
                "QA",
                "CONSULTANT",
                "AI",
                "LEAD",
                "FULL_STACK",
                "BACKEND",
                "FRONTEND",
                "BUILDER",
                "DEVOPS",
                "SCRUM_MASTER",
                "MOBILE",
                "DELIVERY_MANAGER",
                "PRODUCT_OWNER",
                "DATA_ANALYST",
                "DATA_SCIENTIST",
                "DATA_ENGINEER",
                "BUSINESS_ANALYST",
                "SECURITY",
                "AGILE_COACH",
                "SCRUM_MASTER_SAFE",
                "RELEASE_TRAIN_ENGINEER",
                "SAP",
                "ITIL",
                "DSI",
                "PRODUCT_DESIGNER",
                "BUSINESS_DEVELOPER"
              ]
            }
          },
          "primary_role": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "ARCHITECT",
              "CHEF_DE_PROJET",
              "QA",
              "CONSULTANT",
              "AI",
              "LEAD",
              "FULL_STACK",
              "BACKEND",
              "FRONTEND",
              "BUILDER",
              "DEVOPS",
              "SCRUM_MASTER",
              "MOBILE",
              "DELIVERY_MANAGER",
              "PRODUCT_OWNER",
              "DATA_ANALYST",
              "DATA_SCIENTIST",
              "DATA_ENGINEER",
              "BUSINESS_ANALYST",
              "SECURITY",
              "AGILE_COACH",
              "SCRUM_MASTER_SAFE",
              "RELEASE_TRAIN_ENGINEER",
              "SAP",
              "ITIL",
              "DSI",
              "PRODUCT_DESIGNER",
              "BUSINESS_DEVELOPER",
              null
            ]
          },
          "is_active": {
            "type": "boolean"
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "RadarMissionsPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RadarMission"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "chain_rank_counts": {
            "description": "Missions par rang dans la chaîne de sous-traitance, dans le cadre du consultant.",
            "type": "object",
            "properties": {
              "CLIENT_FINAL": {
                "type": "integer",
                "minimum": 0
              },
              "PLATEFORME": {
                "type": "integer",
                "minimum": 0
              },
              "NON_PRECISE": {
                "type": "integer",
                "minimum": 0
              },
              "RANG_2_PLUS": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "CLIENT_FINAL",
              "PLATEFORME",
              "NON_PRECISE",
              "RANG_2_PLUS"
            ]
          },
          "out_of_frame_count": {
            "description": "Missions hors du cadre du consultant (TJM, durée, charge), exclues sauf `include_out_of_frame=true`.",
            "type": "integer",
            "minimum": 0
          },
          "locked_hidden_count": {
            "description": "Missions verrouillées retirées de la liste par un filtre.",
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "data",
          "next_cursor",
          "has_more",
          "total",
          "chain_rank_counts",
          "out_of_frame_count",
          "locked_hidden_count"
        ]
      },
      "RadarMission": {
        "description": "Une mission recommandée pour un consultant. `locked: true` : offre hors marché verrouillée pour le plan (projection réduite).",
        "oneOf": [
          {
            "description": "Une mission recommandée pour un consultant. `locked: true` : offre hors marché verrouillée pour le plan (projection réduite).",
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "locked": {
                "type": "boolean",
                "const": false
              },
              "off_market": {
                "type": "boolean"
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "company": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "type": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "name",
                  "type"
                ]
              },
              "location": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "stack": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "job_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "seniority_level": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "is_urgent": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "application_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "daily_rate": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "min": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "max": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "label": {
                    "type": "string"
                  }
                },
                "required": [
                  "min",
                  "max",
                  "label"
                ]
              },
              "work_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "FULL_REMOTE",
                  "FULL_REMOTE_CONSTRAINED",
                  "FULL_REMOTE_UNVERIFIED",
                  "HYBRID",
                  "ON_SITE",
                  null
                ]
              },
              "remote_verdict": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "FULL_REMOTE",
                  "FULL_REMOTE_CONSTRAINED",
                  "FULL_REMOTE_UNVERIFIED",
                  "HYBRID",
                  "ON_SITE",
                  null
                ]
              },
              "remote_claim": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "REMOTE",
                  "HYBRID",
                  "ON_SITE",
                  null
                ]
              },
              "remote_constraint_detail": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "mission_terms": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "duration_weeks_min": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "duration_weeks_max": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "workload_days_per_week": {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                },
                "required": [
                  "duration_weeks_min",
                  "duration_weeks_max",
                  "workload_days_per_week"
                ]
              },
              "out_of_frame": {
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "criterion": {
                          "type": "string",
                          "enum": [
                            "DAILY_RATE",
                            "DURATION"
                          ]
                        },
                        "offer": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "criterion",
                        "offer",
                        "limit"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "criterion": {
                          "type": "string",
                          "const": "WORKLOAD"
                        },
                        "offer": {
                          "type": "number"
                        },
                        "limit": {
                          "type": "object",
                          "properties": {
                            "min": {
                              "type": "number"
                            },
                            "max": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "min",
                            "max"
                          ]
                        }
                      },
                      "required": [
                        "criterion",
                        "offer",
                        "limit"
                      ]
                    }
                  ]
                }
              },
              "distance_km": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "chain_rank": {
                "type": "string",
                "enum": [
                  "CLIENT_FINAL",
                  "PLATEFORME",
                  "NON_PRECISE",
                  "RANG_2_PLUS"
                ]
              },
              "chain_rank_label": {
                "type": "string"
              },
              "need_author_kind": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "ESN",
                  "COMPANY",
                  null
                ]
              },
              "also_published_by_count": {
                "type": "integer",
                "minimum": 0
              },
              "match_score": {
                "type": "number"
              },
              "match_id": {
                "type": "string"
              },
              "matched_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "id",
              "locked",
              "off_market",
              "title",
              "company_name",
              "company",
              "location",
              "stack",
              "job_type",
              "seniority_level",
              "is_urgent",
              "application_url",
              "created_at",
              "daily_rate",
              "work_type",
              "remote_verdict",
              "remote_claim",
              "remote_constraint_detail",
              "mission_terms",
              "out_of_frame",
              "distance_km",
              "chain_rank",
              "chain_rank_label",
              "need_author_kind",
              "also_published_by_count",
              "match_score",
              "match_id",
              "matched_at"
            ]
          },
          {
            "description": "Une mission recommandée pour un consultant. `locked: true` : offre hors marché verrouillée pour le plan (projection réduite).",
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "locked": {
                "type": "boolean",
                "const": true
              },
              "off_market": {
                "type": "boolean",
                "const": true
              },
              "role_family": {
                "type": "string"
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "extracted_at": {
                "type": "string",
                "format": "date-time"
              },
              "match_score": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "locked",
              "off_market",
              "role_family",
              "region",
              "extracted_at",
              "match_score"
            ]
          }
        ]
      },
      "RadarLeadStatusesPage": {
        "type": "object",
        "properties": {
          "visible": {
            "description": "false sur le plan gratuit, sans entrée (ne concerne pas un espace partenaire).",
            "type": "boolean"
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "company_id": {
                  "type": "string"
                },
                "company_name": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "SAVED",
                    "CONTACTED",
                    "MEETING",
                    "WON",
                    "LOST",
                    "DISMISSED"
                  ]
                },
                "note": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "company_id",
                "company_name",
                "status",
                "note",
                "updated_at"
              ]
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "visible",
          "data",
          "next_cursor",
          "has_more",
          "total"
        ]
      },
      "RadarLeadStatusResult": {
        "type": "object",
        "properties": {
          "consultant_id": {
            "type": "string"
          },
          "company_id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "SAVED",
              "CONTACTED",
              "MEETING",
              "WON",
              "LOST",
              "DISMISSED"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "consultant_id",
          "company_id",
          "status",
          "note",
          "updated_at"
        ]
      },
      "RadarLeadStatusBody": {
        "description": "Une note null ou vide efface la note.",
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "SAVED",
              "CONTACTED",
              "MEETING",
              "WON",
              "LOST",
              "DISMISSED"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2000
          }
        },
        "required": [
          "status"
        ],
        "additionalProperties": false
      },
      "RadarLeadsPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RadarLead"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "tracks": {
            "description": "Entreprises par piste, après tous les filtres sauf la piste.",
            "type": "object",
            "properties": {
              "jeunes_pousses": {
                "type": "integer",
                "minimum": 0
              },
              "pme_en_tension": {
                "type": "integer",
                "minimum": 0
              },
              "besoin_immediat": {
                "type": "integer",
                "minimum": 0
              },
              "rame_a_recruter": {
                "type": "integer",
                "minimum": 0
              },
              "ouvert_remote": {
                "type": "integer",
                "minimum": 0
              },
              "nouveau_marche": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "jeunes_pousses",
              "pme_en_tension",
              "besoin_immediat",
              "rame_a_recruter",
              "ouvert_remote",
              "nouveau_marche"
            ]
          },
          "truncated": {
            "description": "Une limite de la requête marché a coupé la liste des entreprises.",
            "type": "boolean"
          },
          "bench_size": {
            "type": "integer",
            "minimum": 0
          },
          "empty_reason": {
            "description": "NO_LOCATION : le consultant a un rayon mais pas de point de départ (donnez `city`).",
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "NO_LOCATION",
              null
            ]
          }
        },
        "required": [
          "data",
          "next_cursor",
          "has_more",
          "total",
          "tracks",
          "truncated",
          "bench_size",
          "empty_reason"
        ]
      },
      "RadarLead": {
        "description": "Un lead client final : une entreprise qui recrute en direct, avec les raisons et les postes ouverts.",
        "type": "object",
        "properties": {
          "company_id": {
            "type": "string"
          },
          "company_name": {
            "type": "string"
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "size_class": {
            "type": "string",
            "enum": [
              "TPE",
              "PME",
              "ETI",
              "GRAND_COMPTE",
              "UNKNOWN"
            ]
          },
          "founded_year": {
            "type": [
              "integer",
              "null"
            ]
          },
          "score": {
            "type": "number"
          },
          "reasons": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "SIZE",
                    "YOUNG",
                    "URGENT",
                    "REPOSTED",
                    "CONTRACT",
                    "OPEN_SINCE",
                    "PERSISTENT"
                  ]
                },
                "label": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "label"
              ]
            }
          },
          "why_now": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "OPEN_ROLES"
                    },
                    "skill": {
                      "type": "string"
                    },
                    "count": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "label": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "kind",
                    "skill",
                    "count",
                    "label"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "OPEN_SINCE"
                    },
                    "days": {
                      "type": "number"
                    },
                    "label": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "kind",
                    "days",
                    "label"
                  ]
                }
              ]
            }
          },
          "work_modes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "remote",
                "hybrid",
                "onsite"
              ]
            }
          },
          "matching_offers": {
            "type": "integer",
            "minimum": 0
          },
          "distance_km": {
            "type": [
              "number",
              "null"
            ]
          },
          "postes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "job_type": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "contract": {
                  "type": "string",
                  "enum": [
                    "FREELANCE",
                    "CDD",
                    "CDI",
                    "BOTH",
                    "UNKNOWN"
                  ]
                },
                "age_days": {
                  "type": "number"
                },
                "city": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "distance_km": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "copies": {
                  "type": "integer",
                  "minimum": 0
                },
                "sources": {
                  "type": "integer",
                  "minimum": 0
                },
                "stt_accepted": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "evidence": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "evidence"
                  ]
                }
              },
              "required": [
                "id",
                "title",
                "job_type",
                "contract",
                "age_days",
                "city",
                "distance_km",
                "copies",
                "sources",
                "stt_accepted"
              ]
            }
          },
          "bench_fit": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "consultant_id": {
                  "type": "string"
                },
                "short_name": {
                  "type": "string"
                }
              },
              "required": [
                "consultant_id",
                "short_name"
              ]
            }
          },
          "status": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "SAVED",
                  "CONTACTED",
                  "MEETING",
                  "WON",
                  "LOST",
                  "DISMISSED"
                ]
              },
              "consultant_id": {
                "type": "string"
              }
            },
            "required": [
              "status",
              "consultant_id"
            ]
          },
          "followed": {
            "type": "boolean"
          }
        },
        "required": [
          "company_id",
          "company_name",
          "city",
          "size_class",
          "founded_year",
          "score",
          "reasons",
          "why_now",
          "work_modes",
          "matching_offers",
          "distance_km",
          "postes",
          "bench_fit",
          "status",
          "followed"
        ]
      },
      "RadarCompanySearch": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "company_id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "city": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "size_class": {
                  "type": "string",
                  "enum": [
                    "TPE",
                    "PME",
                    "ETI",
                    "GRAND_COMPTE",
                    "UNKNOWN"
                  ]
                },
                "company_type": {
                  "type": "string"
                },
                "followed": {
                  "type": "boolean"
                }
              },
              "required": [
                "company_id",
                "name",
                "city",
                "size_class",
                "company_type",
                "followed"
              ]
            }
          }
        },
        "required": [
          "data"
        ]
      },
      "RadarCompany": {
        "description": "La fiche Radar d'une entreprise. `locked: false` : la fiche complète, contacts compris (cas d'un espace partenaire, aux droits Scale). `locked: true` : la vue réduite du plan gratuit, sans contact.",
        "oneOf": [
          {
            "description": "La fiche Radar d'une entreprise. `locked: false` : la fiche complète, contacts compris (cas d'un espace partenaire, aux droits Scale). `locked: true` : la vue réduite du plan gratuit, sans contact.",
            "type": "object",
            "properties": {
              "locked": {
                "type": "boolean",
                "const": false
              },
              "company": {
                "$ref": "#/components/schemas/RadarCompanyHeader"
              },
              "followed": {
                "type": "boolean"
              },
              "counts": {
                "type": "object",
                "properties": {
                  "open_postes": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "history_postes": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "open_postes",
                  "history_postes"
                ]
              },
              "reasons": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "SIZE",
                        "YOUNG",
                        "URGENT",
                        "REPOSTED",
                        "CONTRACT",
                        "OPEN_SINCE",
                        "PERSISTENT"
                      ]
                    },
                    "label": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "kind",
                    "label"
                  ]
                }
              },
              "open_postes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "offer_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "contract": {
                      "type": "string",
                      "enum": [
                        "FREELANCE",
                        "CDD",
                        "CDI",
                        "BOTH",
                        "UNKNOWN"
                      ]
                    },
                    "work_mode": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "remote",
                        "hybrid",
                        "onsite",
                        null
                      ]
                    },
                    "city": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "age_days": {
                      "type": "number"
                    },
                    "copies": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "sources": {
                      "type": "integer",
                      "minimum": 0
                    }
                  },
                  "required": [
                    "offer_id",
                    "title",
                    "contract",
                    "work_mode",
                    "city",
                    "age_days",
                    "copies",
                    "sources"
                  ]
                }
              },
              "history": {
                "type": "object",
                "properties": {
                  "postes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "offer_id": {
                          "type": "string"
                        },
                        "title": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "contract": {
                          "type": "string",
                          "enum": [
                            "FREELANCE",
                            "CDD",
                            "CDI",
                            "BOTH",
                            "UNKNOWN"
                          ]
                        },
                        "work_mode": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "remote",
                            "hybrid",
                            "onsite",
                            null
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "age_days": {
                          "type": "number"
                        },
                        "copies": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "sources": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "open": {
                          "type": "boolean"
                        },
                        "closed_days_ago": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "offer_id",
                        "title",
                        "contract",
                        "work_mode",
                        "city",
                        "age_days",
                        "copies",
                        "sources",
                        "open",
                        "closed_days_ago"
                      ]
                    }
                  },
                  "per_month": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "month": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}$"
                        },
                        "count": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "month",
                        "count"
                      ]
                    }
                  }
                },
                "required": [
                  "postes",
                  "per_month"
                ]
              },
              "bench": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "consultant_id": {
                      "type": "string"
                    },
                    "short_name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "consultant_id",
                    "short_name"
                  ]
                }
              },
              "statuses": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "consultant_id": {
                      "type": "string"
                    },
                    "short_name": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "SAVED",
                        "CONTACTED",
                        "MEETING",
                        "WON",
                        "LOST",
                        "DISMISSED"
                      ]
                    }
                  },
                  "required": [
                    "consultant_id",
                    "short_name",
                    "status"
                  ]
                }
              },
              "note": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "exclusion": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "CLIENT_ACTUEL",
                  "NE_PAS_CONTACTER",
                  null
                ]
              },
              "contacts": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/RadarContact"
                }
              },
              "channels": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/RadarCompanyChannel"
                }
              }
            },
            "required": [
              "locked",
              "company",
              "followed",
              "counts",
              "reasons",
              "open_postes",
              "history",
              "bench",
              "statuses",
              "note",
              "exclusion",
              "contacts",
              "channels"
            ]
          },
          {
            "description": "La fiche Radar d'une entreprise. `locked: false` : la fiche complète, contacts compris (cas d'un espace partenaire, aux droits Scale). `locked: true` : la vue réduite du plan gratuit, sans contact.",
            "type": "object",
            "properties": {
              "locked": {
                "type": "boolean",
                "const": true
              },
              "company": {
                "$ref": "#/components/schemas/RadarCompanyHeader"
              },
              "followed": {
                "type": "boolean"
              },
              "counts": {
                "type": "object",
                "properties": {
                  "open_postes": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "open_postes"
                ]
              },
              "latest_titles": {
                "type": "array",
                "items": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            },
            "required": [
              "locked",
              "company",
              "followed",
              "counts",
              "latest_titles"
            ]
          }
        ]
      },
      "RadarCompanyHeader": {
        "description": "L'identité de l'entreprise (registres publics et site de l'entreprise).",
        "type": "object",
        "properties": {
          "company_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "hq_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "size_class": {
            "type": "string",
            "enum": [
              "TPE",
              "PME",
              "ETI",
              "GRAND_COMPTE",
              "UNKNOWN"
            ]
          },
          "size_source": {
            "type": [
              "string",
              "null"
            ]
          },
          "sirene_category": {
            "type": [
              "string",
              "null"
            ]
          },
          "founded_year": {
            "type": [
              "integer",
              "null"
            ]
          },
          "industry": {
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "type": [
              "string",
              "null"
            ]
          },
          "linkedin_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "public_slug": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "company_id",
          "name",
          "city",
          "hq_address",
          "size_class",
          "size_source",
          "sirene_category",
          "founded_year",
          "industry",
          "website",
          "linkedin_url",
          "public_slug"
        ]
      },
      "RadarContact": {
        "description": "Une personne à contacter dans l'entreprise. Relue à chaque requête, jamais mise en cache. Une personne qui s'est opposée au traitement n'apparaît jamais : un contact peut donc disparaître d'un appel à l'autre, et vous devez alors le supprimer de votre côté.",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "role_type": {
            "type": "string"
          },
          "linkedin_url": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RadarSourcedValue"
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RadarSourcedValue"
              },
              {
                "type": "null"
              }
            ]
          },
          "phone": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RadarSourcedValue"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "title",
          "role_type",
          "linkedin_url",
          "email",
          "phone"
        ]
      },
      "RadarSourcedValue": {
        "description": "Une coordonnée d'un contact, avec sa provenance : `source` (identifiant brut de la source), `source_label` (libellé public, null si la source n'est pas publique) et `collected_at` (date de collecte).",
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "source": {
            "description": "Identifiant brut de la source : sirene, data.gouv, pappers, website, wttj, hellowork, linkedin_company_page, linkedin_profile… (liste ouverte).",
            "type": "string"
          },
          "source_label": {
            "description": "Libellé public de la source ; null quand la source n'est pas publique.",
            "type": [
              "string",
              "null"
            ]
          },
          "collected_at": {
            "description": "Date à laquelle la donnée a été collectée.",
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "value",
          "source",
          "source_label",
          "collected_at"
        ]
      },
      "RadarCompanyChannel": {
        "description": "Une coordonnée publiée par l'entreprise elle-même (standard, adresse générique, formulaire), avec la page où elle a été lue.",
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "email",
              "phone",
              "form"
            ]
          },
          "value": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "source_label": {
            "type": [
              "string",
              "null"
            ]
          },
          "source_url": {
            "type": "string"
          },
          "collected_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "kind",
          "value",
          "source",
          "source_label",
          "source_url",
          "collected_at"
        ]
      },
      "RadarFollowsPage": {
        "description": "Une page des entreprises suivies, la plus récemment suivie en premier.",
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "company_id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "city": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "size_class": {
                  "type": "string",
                  "enum": [
                    "TPE",
                    "PME",
                    "ETI",
                    "GRAND_COMPTE",
                    "UNKNOWN"
                  ]
                },
                "open_postes": {
                  "type": "integer",
                  "minimum": 0
                },
                "latest_poste": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "title": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "age_days": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "title",
                    "age_days"
                  ]
                },
                "new_count": {
                  "type": "integer",
                  "minimum": 0
                },
                "bench_fit": {
                  "type": "integer",
                  "minimum": 0
                },
                "status": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "SAVED",
                        "CONTACTED",
                        "MEETING",
                        "WON",
                        "LOST",
                        "DISMISSED"
                      ]
                    },
                    "consultant_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "status",
                    "consultant_id"
                  ]
                },
                "note": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "paused": {
                  "type": "boolean"
                }
              },
              "required": [
                "company_id",
                "name",
                "city",
                "size_class",
                "open_postes",
                "latest_poste",
                "new_count",
                "bench_fit",
                "status",
                "note",
                "paused"
              ]
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "follow_limit": {
            "description": "Suivis actifs que garde le plan ; null = illimité.",
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0
          }
        },
        "required": [
          "data",
          "next_cursor",
          "has_more",
          "total",
          "follow_limit"
        ]
      },
      "RadarFollowResult": {
        "type": "object",
        "properties": {
          "company_id": {
            "type": "string"
          },
          "followed": {
            "type": "boolean"
          }
        },
        "required": [
          "company_id",
          "followed"
        ]
      },
      "RadarFollowBody": {
        "type": "object",
        "properties": {
          "company_id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "company_id"
        ],
        "additionalProperties": false
      },
      "RadarCompanyNote": {
        "type": "object",
        "properties": {
          "company_id": {
            "type": "string"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "company_id",
          "note"
        ]
      },
      "RadarFollowNoteBody": {
        "description": "null efface la note.",
        "type": "object",
        "properties": {
          "note": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2000
          }
        },
        "required": [
          "note"
        ],
        "additionalProperties": false
      },
      "RadarExclusionsPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "company_id": {
                  "type": "string"
                },
                "company_name": {
                  "type": "string"
                },
                "reason": {
                  "type": "string",
                  "enum": [
                    "CLIENT_ACTUEL",
                    "NE_PAS_CONTACTER"
                  ]
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "company_id",
                "company_name",
                "reason",
                "created_at"
              ]
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "data",
          "next_cursor",
          "has_more",
          "total"
        ]
      },
      "RadarExclusionResult": {
        "type": "object",
        "properties": {
          "company_id": {
            "type": "string"
          },
          "excluded": {
            "type": "boolean"
          }
        },
        "required": [
          "company_id",
          "excluded"
        ]
      },
      "RadarExclusionBody": {
        "description": "CLIENT_ACTUEL ou NE_PAS_CONTACTER.",
        "type": "object",
        "properties": {
          "company_id": {
            "type": "string",
            "format": "uuid"
          },
          "reason": {
            "type": "string",
            "enum": [
              "CLIENT_ACTUEL",
              "NE_PAS_CONTACTER"
            ]
          }
        },
        "required": [
          "company_id",
          "reason"
        ],
        "additionalProperties": false
      },
      "RadarExclusionDeleteBody": {
        "type": "object",
        "properties": {
          "company_id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "company_id"
        ],
        "additionalProperties": false
      },
      "RadarSavedMissionResult": {
        "description": "La mission enregistrée et, si demandée, la réponse de la proposition à l’auteur d’un besoin Espace Pro.",
        "type": "object",
        "properties": {
          "saved_mission": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "consultant_id": {
                "type": "string"
              },
              "job_offer_id": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "notes": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "id",
              "consultant_id",
              "job_offer_id",
              "status",
              "notes",
              "created_at",
              "updated_at"
            ]
          },
          "proposal": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "outcome": {
                    "type": "string",
                    "enum": [
                      "created",
                      "duplicate"
                    ]
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "required": [
                  "outcome",
                  "message"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "outcome": {
                    "type": "string",
                    "const": "refused"
                  },
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "required": [
                  "outcome",
                  "code",
                  "message"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "saved_mission",
          "proposal"
        ]
      },
      "RadarSavedMissionBody": {
        "type": "object",
        "properties": {
          "consultant_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,64}$"
          },
          "job_offer_id": {
            "type": "string",
            "format": "uuid"
          },
          "notes": {
            "type": "string"
          },
          "propose_to_author": {
            "type": "boolean"
          },
          "proposal_message": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 500
          }
        },
        "required": [
          "consultant_id",
          "job_offer_id"
        ],
        "additionalProperties": false
      },
      "RadarSavedMissionDeleted": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "deleted": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "id",
          "deleted"
        ]
      }
    }
  }
}
