{
  "name": "WEVIA Sync Contacts",
  "version": "1.0",
  "description": "Sync contact(s) iPhone vers WEVIA CRM (Twenty) + enrichissement IA",
  "install_instructions": [
    "Option A (Share Sheet - 1 contact) :",
    "1. Raccourcis → + → Nouveau",
    "2. Actions :",
    "   - 'Obtenir les contacts' depuis entrée (Share Sheet)",
    "   - Pour chaque contact → 'Obtenir prénom/nom/téléphone/email'",
    "   - 'Obtenir URL' POST JSON",
    "3. Active Share Sheet type Contacts",
    "4. Depuis Contacts → Partager → Sync WEVIA",
    "",
    "Option B (Bulk - tous les contacts) :",
    "1. Raccourcis → + → Nouveau raccourci 'Sync All WEVIA'",
    "2. Actions :",
    "   - 'Trouver tous les contacts'",
    "   - 'Répéter avec chacun' → POST à l'endpoint",
    "3. Run manuel depuis l'app"
  ],
  "url": "https://weval-consulting.com/api/wevia-apple-ingest.php?action=ingest_structured",
  "method": "POST",
  "headers": {"Content-Type": "application/json"},
  "json_body_template": {
    "type": "contact",
    "items": [
      {
        "name": "[Contact name]",
        "phone": "[Contact phone]",
        "email": "[Contact email]",
        "org": "[Company]",
        "notes": "[Contact notes]"
      }
    ]
  },
  "share_sheet": true,
  "share_sheet_types": ["Contact"]
}
