{"openapi":"3.1.0","info":{"title":"Quark Commerce API","version":"0.1.0"},"paths":{"/api/v1/health":{"get":{"tags":["Santé"],"summary":"Health","operationId":"health_api_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Api V1 Health Get"}}}}}}},"/api/v1/auth/token":{"post":{"tags":["Authentification"],"summary":"Token","operationId":"token_api_v1_auth_token_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_token_api_v1_auth_token_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/login":{"post":{"tags":["Authentification"],"summary":"Login","operationId":"login_api_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/me":{"get":{"tags":["Authentification"],"summary":"Me","operationId":"me_api_v1_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}}},"security":[{"JWT":[]}]}},"/api/v1/prospects":{"get":{"tags":["Prospects"],"summary":"List Prospects","operationId":"list_prospects_api_v1_prospects_get","security":[{"JWT":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProspectOut"},"title":"Response List Prospects Api V1 Prospects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Prospects"],"summary":"Create Prospect","operationId":"create_prospect_api_v1_prospects_post","security":[{"JWT":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProspectCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProspectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/prospects/from-text":{"post":{"tags":["Prospects"],"summary":"Create Prospect From Text","operationId":"create_prospect_from_text_api_v1_prospects_from_text_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProspectCreateFromText"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProspectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/prospects/{prospect_id}":{"get":{"tags":["Prospects"],"summary":"Get Prospect","operationId":"get_prospect_api_v1_prospects__prospect_id__get","security":[{"JWT":[]}],"parameters":[{"name":"prospect_id","in":"path","required":true,"schema":{"type":"string","title":"Prospect Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProspectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Prospects"],"summary":"Update Prospect","operationId":"update_prospect_api_v1_prospects__prospect_id__patch","security":[{"JWT":[]}],"parameters":[{"name":"prospect_id","in":"path","required":true,"schema":{"type":"string","title":"Prospect Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProspectUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProspectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Prospects"],"summary":"Delete Prospect","operationId":"delete_prospect_api_v1_prospects__prospect_id__delete","security":[{"JWT":[]}],"parameters":[{"name":"prospect_id","in":"path","required":true,"schema":{"type":"string","title":"Prospect Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/prospects/{prospect_id}/interlocuteurs":{"post":{"tags":["Prospects"],"summary":"Add Interlocuteur","operationId":"add_interlocuteur_api_v1_prospects__prospect_id__interlocuteurs_post","security":[{"JWT":[]}],"parameters":[{"name":"prospect_id","in":"path","required":true,"schema":{"type":"string","title":"Prospect Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterlocuteurIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterlocuteurOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/prospects/{prospect_id}/interlocuteurs/{interlocuteur_id}":{"delete":{"tags":["Prospects"],"summary":"Remove Interlocuteur","operationId":"remove_interlocuteur_api_v1_prospects__prospect_id__interlocuteurs__interlocuteur_id__delete","security":[{"JWT":[]}],"parameters":[{"name":"prospect_id","in":"path","required":true,"schema":{"type":"string","title":"Prospect Id"}},{"name":"interlocuteur_id","in":"path","required":true,"schema":{"type":"string","title":"Interlocuteur Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/prospects/{prospect_id}/rendez-vous":{"get":{"tags":["Rendez-vous"],"summary":"List Rendez Vous","operationId":"list_rendez_vous_api_v1_prospects__prospect_id__rendez_vous_get","security":[{"JWT":[]}],"parameters":[{"name":"prospect_id","in":"path","required":true,"schema":{"type":"string","title":"Prospect Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RendezVousOut"},"title":"Response List Rendez Vous Api V1 Prospects  Prospect Id  Rendez Vous Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Rendez-vous"],"summary":"Create Rendez Vous","operationId":"create_rendez_vous_api_v1_prospects__prospect_id__rendez_vous_post","security":[{"JWT":[]}],"parameters":[{"name":"prospect_id","in":"path","required":true,"schema":{"type":"string","title":"Prospect Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RendezVousCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RendezVousOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/rendez-vous/{rendez_vous_id}":{"patch":{"tags":["Rendez-vous"],"summary":"Update Rendez Vous","operationId":"update_rendez_vous_api_v1_rendez_vous__rendez_vous_id__patch","security":[{"JWT":[]}],"parameters":[{"name":"rendez_vous_id","in":"path","required":true,"schema":{"type":"string","title":"Rendez Vous Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RendezVousUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RendezVousOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/rendez-vous/{rendez_vous_id}/collectes":{"get":{"tags":["Collecte terrain"],"summary":"List Collectes","operationId":"list_collectes_api_v1_rendez_vous__rendez_vous_id__collectes_get","security":[{"JWT":[]}],"parameters":[{"name":"rendez_vous_id","in":"path","required":true,"schema":{"type":"string","title":"Rendez Vous Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CollecteOut"},"title":"Response List Collectes Api V1 Rendez Vous  Rendez Vous Id  Collectes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Collecte terrain"],"summary":"Upload Collecte","operationId":"upload_collecte_api_v1_rendez_vous__rendez_vous_id__collectes_post","security":[{"JWT":[]}],"parameters":[{"name":"rendez_vous_id","in":"path","required":true,"schema":{"type":"string","title":"Rendez Vous Id"}},{"name":"type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/CollecteType"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_collecte_api_v1_rendez_vous__rendez_vous_id__collectes_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollecteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/collectes/{collecte_id}/relancer-transcription":{"post":{"tags":["Collecte terrain"],"summary":"Relancer Transcription","operationId":"relancer_transcription_api_v1_collectes__collecte_id__relancer_transcription_post","security":[{"JWT":[]}],"parameters":[{"name":"collecte_id","in":"path","required":true,"schema":{"type":"string","title":"Collecte Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollecteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/prospects/{prospect_id}/echanges":{"get":{"tags":["Échanges"],"summary":"List Echanges","operationId":"list_echanges_api_v1_prospects__prospect_id__echanges_get","security":[{"JWT":[]}],"parameters":[{"name":"prospect_id","in":"path","required":true,"schema":{"type":"string","title":"Prospect Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EchangeOut"},"title":"Response List Echanges Api V1 Prospects  Prospect Id  Echanges Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Échanges"],"summary":"Envoyer Depuis Fiche","operationId":"envoyer_depuis_fiche_api_v1_prospects__prospect_id__echanges_post","security":[{"JWT":[]}],"parameters":[{"name":"prospect_id","in":"path","required":true,"schema":{"type":"string","title":"Prospect Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EchangeCreateDepuisFiche"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EchangeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/echanges":{"post":{"tags":["Échanges"],"summary":"Enregistrer Echange Recu","operationId":"enregistrer_echange_recu_api_v1_echanges_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EchangeRecu"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EchangeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/echanges/a-rattacher":{"get":{"tags":["Échanges"],"summary":"List A Rattacher","operationId":"list_a_rattacher_api_v1_echanges_a_rattacher_get","security":[{"JWT":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EchangeOut"},"title":"Response List A Rattacher Api V1 Echanges A Rattacher Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/echanges/{echange_id}/rattacher":{"post":{"tags":["Échanges"],"summary":"Rattacher","operationId":"rattacher_api_v1_echanges__echange_id__rattacher_post","security":[{"JWT":[]}],"parameters":[{"name":"echange_id","in":"path","required":true,"schema":{"type":"string","title":"Echange Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EchangeRattacher"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EchangeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/prospects/{prospect_id}/devis":{"get":{"tags":["Devis"],"summary":"List Devis","operationId":"list_devis_api_v1_prospects__prospect_id__devis_get","security":[{"JWT":[]}],"parameters":[{"name":"prospect_id","in":"path","required":true,"schema":{"type":"string","title":"Prospect Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DevisOut"},"title":"Response List Devis Api V1 Prospects  Prospect Id  Devis Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Devis"],"summary":"Create Devis","operationId":"create_devis_api_v1_prospects__prospect_id__devis_post","security":[{"JWT":[]}],"parameters":[{"name":"prospect_id","in":"path","required":true,"schema":{"type":"string","title":"Prospect Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevisCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevisOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/devis/{devis_id}/statut":{"patch":{"tags":["Devis"],"summary":"Update Statut","operationId":"update_statut_api_v1_devis__devis_id__statut_patch","security":[{"JWT":[]}],"parameters":[{"name":"devis_id","in":"path","required":true,"schema":{"type":"string","title":"Devis Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevisStatutUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevisOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/alertes":{"get":{"tags":["Actions à faire et relances"],"summary":"List Alertes","operationId":"list_alertes_api_v1_alertes_get","security":[{"JWT":[]}],"parameters":[{"name":"prospect_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AlertOut"},"title":"Response List Alertes Api V1 Alertes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Actions à faire et relances"],"summary":"Create Alerte","operationId":"create_alerte_api_v1_alertes_post","security":[{"JWT":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/alertes/{alert_id}/traiter":{"post":{"tags":["Actions à faire et relances"],"summary":"Traiter","operationId":"traiter_api_v1_alertes__alert_id__traiter_post","security":[{"JWT":[]}],"parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"string","title":"Alert Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/alertes/{alert_id}/reporter":{"post":{"tags":["Actions à faire et relances"],"summary":"Reporter","operationId":"reporter_api_v1_alertes__alert_id__reporter_post","security":[{"JWT":[]}],"parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"string","title":"Alert Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertReporter"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard":{"get":{"tags":["Tableau de bord"],"summary":"Get Dashboard","operationId":"get_dashboard_api_v1_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardOut"}}}}},"security":[{"JWT":[]}]}},"/api/v1/prospects/{prospect_id}/historique":{"get":{"tags":["Tableau de bord"],"summary":"Get Historique","operationId":"get_historique_api_v1_prospects__prospect_id__historique_get","security":[{"JWT":[]}],"parameters":[{"name":"prospect_id","in":"path","required":true,"schema":{"type":"string","title":"Prospect Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TimelineItem"},"title":"Response Get Historique Api V1 Prospects  Prospect Id  Historique Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/territoires/carte":{"get":{"tags":["Territoires"],"summary":"Get Carte","operationId":"get_carte_api_v1_territoires_carte_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProspectCarte"},"type":"array","title":"Response Get Carte Api V1 Territoires Carte Get"}}}}},"security":[{"JWT":[]}]}},"/api/v1/territoires/analyses":{"get":{"tags":["Territoires"],"summary":"Get Analyses","operationId":"get_analyses_api_v1_territoires_analyses_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ZoneAnalyse"},"type":"array","title":"Response Get Analyses Api V1 Territoires Analyses Get"}}}}},"security":[{"JWT":[]}]}},"/api/v1/whatsapp/embedded-signup/complete":{"post":{"tags":["WhatsApp"],"summary":"Complete Embedded Signup","operationId":"complete_embedded_signup_api_v1_whatsapp_embedded_signup_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddedSignupComplete"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappCompteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/whatsapp/accounts":{"get":{"tags":["WhatsApp"],"summary":"List Accounts","operationId":"list_accounts_api_v1_whatsapp_accounts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/WhatsappCompteOut"},"type":"array","title":"Response List Accounts Api V1 Whatsapp Accounts Get"}}}}},"security":[{"JWT":[]}]}}},"components":{"schemas":{"AlertCreate":{"properties":{"prospect_id":{"type":"string","title":"Prospect Id"},"libelle":{"type":"string","title":"Libelle"},"echeance":{"type":"string","format":"date-time","title":"Echeance"}},"type":"object","required":["prospect_id","libelle","echeance"],"title":"AlertCreate"},"AlertOut":{"properties":{"id":{"type":"string","title":"Id"},"prospect_id":{"type":"string","title":"Prospect Id"},"type":{"$ref":"#/components/schemas/AlertType"},"libelle":{"type":"string","title":"Libelle"},"echeance":{"type":"string","format":"date-time","title":"Echeance"},"statut":{"$ref":"#/components/schemas/AlertStatus"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","prospect_id","type","libelle","echeance","statut","created_at"],"title":"AlertOut"},"AlertReporter":{"properties":{"choix":{"type":"string","title":"Choix"},"date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date"}},"type":"object","required":["choix"],"title":"AlertReporter"},"AlertStatus":{"type":"string","enum":["a_traiter","traitee","reportee","ignoree"],"title":"AlertStatus"},"AlertType":{"type":"string","enum":["manuelle","sans_reponse"],"title":"AlertType"},"Body_token_api_v1_auth_token_post":{"properties":{"grant_type":{"anyOf":[{"type":"string","pattern":"^password$"},{"type":"null"}],"title":"Grant Type"},"username":{"type":"string","title":"Username"},"password":{"type":"string","format":"password","title":"Password"},"scope":{"type":"string","title":"Scope","default":""},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"format":"password","title":"Client Secret"}},"type":"object","required":["username","password"],"title":"Body_token_api_v1_auth_token_post"},"Body_upload_collecte_api_v1_rendez_vous__rendez_vous_id__collectes_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_collecte_api_v1_rendez_vous__rendez_vous_id__collectes_post"},"CollecteOut":{"properties":{"id":{"type":"string","title":"Id"},"rendez_vous_id":{"type":"string","title":"Rendez Vous Id"},"prospect_id":{"type":"string","title":"Prospect Id"},"type":{"$ref":"#/components/schemas/CollecteType"},"nom_fichier":{"type":"string","title":"Nom Fichier"},"content_type":{"type":"string","title":"Content Type"},"taille_octets":{"type":"integer","title":"Taille Octets"},"url_telechargement":{"type":"string","title":"Url Telechargement"},"transcription":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcription"},"transcription_echouee":{"type":"boolean","title":"Transcription Echouee"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","rendez_vous_id","prospect_id","type","nom_fichier","content_type","taille_octets","url_telechargement","transcription","transcription_echouee","created_at"],"title":"CollecteOut"},"CollecteType":{"type":"string","enum":["photo","vocal","document"],"title":"CollecteType"},"DashboardOut":{"properties":{"total_prospects":{"type":"integer","title":"Total Prospects"},"valeur_estimee_totale":{"type":"number","title":"Valeur Estimee Totale"},"alertes_a_traiter":{"type":"integer","title":"Alertes A Traiter"},"repartition_statuts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Repartition Statuts"},"repartition_devis":{"additionalProperties":{"type":"integer"},"type":"object","title":"Repartition Devis"}},"type":"object","required":["total_prospects","valeur_estimee_totale","alertes_a_traiter","repartition_statuts","repartition_devis"],"title":"DashboardOut"},"DevisCreate":{"properties":{"titre":{"type":"string","title":"Titre"},"lignes":{"items":{"$ref":"#/components/schemas/DevisLigneIn"},"type":"array","title":"Lignes","default":[]}},"type":"object","required":["titre"],"title":"DevisCreate"},"DevisLigneIn":{"properties":{"description":{"type":"string","title":"Description"},"quantite":{"type":"number","title":"Quantite","default":1.0},"prix_unitaire":{"type":"number","title":"Prix Unitaire","default":0.0}},"type":"object","required":["description"],"title":"DevisLigneIn"},"DevisLigneOut":{"properties":{"id":{"type":"string","title":"Id"},"description":{"type":"string","title":"Description"},"quantite":{"type":"number","title":"Quantite"},"prix_unitaire":{"type":"number","title":"Prix Unitaire"}},"type":"object","required":["id","description","quantite","prix_unitaire"],"title":"DevisLigneOut"},"DevisOut":{"properties":{"id":{"type":"string","title":"Id"},"prospect_id":{"type":"string","title":"Prospect Id"},"numero":{"type":"string","title":"Numero"},"titre":{"type":"string","title":"Titre"},"statut":{"$ref":"#/components/schemas/DevisStatus"},"total":{"type":"number","title":"Total"},"envoye_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Envoye At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"lignes":{"items":{"$ref":"#/components/schemas/DevisLigneOut"},"type":"array","title":"Lignes","default":[]}},"type":"object","required":["id","prospect_id","numero","titre","statut","total","envoye_at","created_at"],"title":"DevisOut"},"DevisStatus":{"type":"string","enum":["brouillon","envoye","accepte","refuse"],"title":"DevisStatus"},"DevisStatutUpdate":{"properties":{"statut":{"$ref":"#/components/schemas/DevisStatus"}},"type":"object","required":["statut"],"title":"DevisStatutUpdate"},"EchangeCanal":{"type":"string","enum":["mail","whatsapp","linkedin"],"title":"EchangeCanal"},"EchangeCreateDepuisFiche":{"properties":{"interlocuteur_id":{"type":"string","title":"Interlocuteur Id"},"canal":{"$ref":"#/components/schemas/EchangeCanal"},"sujet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sujet"},"corps":{"type":"string","title":"Corps"}},"type":"object","required":["interlocuteur_id","canal","corps"],"title":"EchangeCreateDepuisFiche"},"EchangeOut":{"properties":{"id":{"type":"string","title":"Id"},"prospect_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Id"},"interlocuteur_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interlocuteur Id"},"canal":{"$ref":"#/components/schemas/EchangeCanal"},"sens":{"$ref":"#/components/schemas/EchangeSens"},"expediteur":{"type":"string","title":"Expediteur"},"destinataire":{"type":"string","title":"Destinataire"},"sujet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sujet"},"corps":{"type":"string","title":"Corps"},"repondu":{"type":"boolean","title":"Repondu"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","prospect_id","interlocuteur_id","canal","sens","expediteur","destinataire","sujet","corps","repondu","created_at"],"title":"EchangeOut"},"EchangeRattacher":{"properties":{"prospect_id":{"type":"string","title":"Prospect Id"},"interlocuteur_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interlocuteur Id"}},"type":"object","required":["prospect_id"],"title":"EchangeRattacher"},"EchangeRecu":{"properties":{"canal":{"$ref":"#/components/schemas/EchangeCanal"},"expediteur":{"type":"string","title":"Expediteur"},"destinataire":{"type":"string","title":"Destinataire"},"sujet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sujet"},"corps":{"type":"string","title":"Corps"}},"type":"object","required":["canal","expediteur","destinataire","corps"],"title":"EchangeRecu"},"EchangeSens":{"type":"string","enum":["envoye","recu"],"title":"EchangeSens"},"EmbeddedSignupComplete":{"properties":{"code":{"type":"string","title":"Code"},"waba_id":{"type":"string","title":"Waba Id"},"phone_number_id":{"type":"string","title":"Phone Number Id"},"business_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Id"},"pin":{"anyOf":[{"type":"string","maxLength":8,"minLength":4},{"type":"null"}],"title":"Pin"}},"type":"object","required":["code","waba_id","phone_number_id"],"title":"EmbeddedSignupComplete"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InterlocuteurIn":{"properties":{"nom":{"type":"string","title":"Nom"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"whatsapp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whatsapp"},"est_contact_principal":{"type":"boolean","title":"Est Contact Principal","default":false}},"type":"object","required":["nom"],"title":"InterlocuteurIn"},"InterlocuteurOut":{"properties":{"id":{"type":"string","title":"Id"},"nom":{"type":"string","title":"Nom"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"whatsapp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whatsapp"},"est_contact_principal":{"type":"boolean","title":"Est Contact Principal"}},"type":"object","required":["id","nom","email","whatsapp","est_contact_principal"],"title":"InterlocuteurOut"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"ProspectCarte":{"properties":{"id":{"type":"string","title":"Id"},"nom":{"type":"string","title":"Nom"},"ville":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ville"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"adresse_a_verifier":{"type":"boolean","title":"Adresse A Verifier"},"statut":{"$ref":"#/components/schemas/ProspectStatus"}},"type":"object","required":["id","nom","ville","latitude","longitude","adresse_a_verifier","statut"],"title":"ProspectCarte"},"ProspectCreate":{"properties":{"nom":{"type":"string","title":"Nom"},"ville":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ville"},"adresse":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adresse"},"etape":{"$ref":"#/components/schemas/ProspectStage","default":"qualification"},"statut_saisi":{"anyOf":[{"$ref":"#/components/schemas/ProspectStatus"},{"type":"null"}]},"score":{"type":"integer","title":"Score","default":0},"valeur_estimee":{"type":"number","title":"Valeur Estimee","default":0.0},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"interlocuteurs":{"items":{"$ref":"#/components/schemas/InterlocuteurIn"},"type":"array","title":"Interlocuteurs","default":[]}},"type":"object","required":["nom"],"title":"ProspectCreate"},"ProspectCreateFromText":{"properties":{"texte":{"type":"string","title":"Texte"}},"type":"object","required":["texte"],"title":"ProspectCreateFromText"},"ProspectOut":{"properties":{"id":{"type":"string","title":"Id"},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"},"responsable_id":{"type":"string","title":"Responsable Id"},"nom":{"type":"string","title":"Nom"},"ville":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ville"},"adresse":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adresse"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"adresse_a_verifier":{"type":"boolean","title":"Adresse A Verifier"},"statut":{"$ref":"#/components/schemas/ProspectStatus"},"etape":{"$ref":"#/components/schemas/ProspectStage"},"score":{"type":"integer","title":"Score"},"valeur_estimee":{"type":"number","title":"Valeur Estimee"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"interlocuteurs":{"items":{"$ref":"#/components/schemas/InterlocuteurOut"},"type":"array","title":"Interlocuteurs","default":[]}},"type":"object","required":["id","company_id","responsable_id","nom","ville","adresse","latitude","longitude","adresse_a_verifier","statut","etape","score","valeur_estimee","notes","created_at","updated_at"],"title":"ProspectOut"},"ProspectStage":{"type":"string","enum":["qualification","visite","proposition","negociation","vente"],"title":"ProspectStage"},"ProspectStatus":{"type":"string","enum":["chaud","tiede","froid"],"title":"ProspectStatus"},"ProspectUpdate":{"properties":{"nom":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nom"},"ville":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ville"},"adresse":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adresse"},"etape":{"anyOf":[{"$ref":"#/components/schemas/ProspectStage"},{"type":"null"}]},"statut_saisi":{"anyOf":[{"$ref":"#/components/schemas/ProspectStatus"},{"type":"null"}]},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"valeur_estimee":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Valeur Estimee"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"ProspectUpdate"},"RendezVousCreate":{"properties":{"date_heure":{"type":"string","format":"date-time","title":"Date Heure"},"duree_minutes":{"type":"integer","title":"Duree Minutes","default":60},"lieu":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lieu"}},"type":"object","required":["date_heure"],"title":"RendezVousCreate"},"RendezVousOut":{"properties":{"id":{"type":"string","title":"Id"},"prospect_id":{"type":"string","title":"Prospect Id"},"numero":{"type":"integer","title":"Numero"},"date_heure":{"type":"string","format":"date-time","title":"Date Heure"},"duree_minutes":{"type":"integer","title":"Duree Minutes"},"lieu":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lieu"},"statut":{"$ref":"#/components/schemas/RendezVousStatus"},"compte_rendu":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Compte Rendu"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","prospect_id","numero","date_heure","duree_minutes","lieu","statut","compte_rendu","created_at"],"title":"RendezVousOut"},"RendezVousStatus":{"type":"string","enum":["prevu","effectue","annule"],"title":"RendezVousStatus"},"RendezVousUpdate":{"properties":{"date_heure":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date Heure"},"duree_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duree Minutes"},"lieu":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lieu"},"statut":{"anyOf":[{"$ref":"#/components/schemas/RendezVousStatus"},{"type":"null"}]},"compte_rendu":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Compte Rendu"}},"type":"object","title":"RendezVousUpdate"},"Role":{"type":"string","enum":["commercial","admin"],"title":"Role"},"TimelineItem":{"properties":{"type":{"type":"string","title":"Type"},"date":{"type":"string","format":"date-time","title":"Date"},"resume":{"type":"string","title":"Resume"},"data":{"additionalProperties":true,"type":"object","title":"Data"}},"type":"object","required":["type","date","resume","data"],"title":"TimelineItem"},"TokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"}},"type":"object","required":["access_token","refresh_token"],"title":"TokenResponse"},"UserOut":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"full_name":{"type":"string","title":"Full Name"},"role":{"$ref":"#/components/schemas/Role"},"status":{"$ref":"#/components/schemas/UserStatus"}},"type":"object","required":["id","email","full_name","role","status"],"title":"UserOut"},"UserStatus":{"type":"string","enum":["active","disabled"],"title":"UserStatus"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WhatsappCompteOut":{"properties":{"id":{"type":"string","title":"Id"},"waba_id":{"type":"string","title":"Waba Id"},"business_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Id"},"phone_number_id":{"type":"string","title":"Phone Number Id"},"numero_whatsapp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Numero Whatsapp"},"nom_affichage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nom Affichage"},"is_active":{"type":"boolean","title":"Is Active"},"token_expire_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Token Expire At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","waba_id","business_id","phone_number_id","numero_whatsapp","nom_affichage","is_active","token_expire_at","created_at"],"title":"WhatsappCompteOut"},"ZoneAnalyse":{"properties":{"ville":{"type":"string","title":"Ville"},"nombre_prospects":{"type":"integer","title":"Nombre Prospects"},"valeur_estimee_totale":{"type":"number","title":"Valeur Estimee Totale"}},"type":"object","required":["ville","nombre_prospects","valeur_estimee_totale"],"title":"ZoneAnalyse"}},"securitySchemes":{"JWT":{"type":"oauth2","description":"","flows":{"password":{"scopes":{},"tokenUrl":"/api/v1/auth/token"}}}}}}