* Add workspace webhooks and drop the unused automation webhook node. Give workspaces HMAC-signed outgoing webhooks for the post lifecycle, with retry, auto-pause, replay, and live logs, and keep HTTP Request as the only outbound automation node. * Tighten webhook controller and validation after review. Drop the redundant workspace redirects, prune logs without counting, and validate events/status with Rule::enum. * Move leftover webhook UI copy behind i18n. HTTP status phrases, delete-cancel, and validation attribute names were still English literals. * Build the webhook-paused email through Maizzle. The hand-written Blade skipped the shared layout, header, and footer used by the other mail templates. * Cover real webhook dispatch paths and restyle the webhook pages. * Ask for the shared delete keyword when confirming a webhook delete. The endpoint URL is a poor confirm string; posts and assets already use the common "delete" keyword. * Fix webhook review blockers so CI can go green. Drop leftover French automation keys, stop mutating Inertia log props, and show delivered_at instead of created_at. * Close the remaining webhook review gaps. Keep Echo log updates across infinite scroll, align the channel with the policy, persist log ids across retries, and fail unknown automation nodes without throwing. * Stop webhook delivery after disable and record last sent only on success. Queued jobs now skip paused or disabled endpoints unless the user replays, and changing the URL re-pings it first. * Limit webhooks to owners and admins, and encrypt signing secrets. Members can no longer create or inspect outgoing integrations, and secrets stay encrypted at rest. * Cover webhook secret hiding, skip-ping, and failed-delivery edges. * Send the full post on webhooks after labels and platforms are saved. * Fix webhook payloads for integer media ids and type webhook status. * Split the webhook show page into focused components. * Reset live webhook logs when switching endpoints. * Keep the newest webhook logs at the top after live merges. * Cast media item ids to string without the extra scalar check. * Add post.unscheduled webhooks and put the log id on the envelope. Unscheduling is now a first-class event, and receivers can send the delivery id back so we can find the matching log. * Translate webhook event names in the UI. * Make the webhook show page full-width and stop stacking flash toasts. * Translate remaining webhook UI copy in every locale. * Sign webhook pings and drop author email from the payload. * Send signed webhook tests after create instead of pinging on save. Create and update only block private URLs so the receiver can copy the secret first. The show page then sends a signed webhook.test with an object data envelope. * Polish webhook test UX and always mint the dispatch log id in the job. Keep send-test in the actions menu (its own group) and drop the leftover constructor param so retries reuse the serialized id instead of a caller-supplied one.
139 lines
6 KiB
PHP
139 lines
6 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
return [
|
|
'title' => 'Webhooks',
|
|
'description' => 'Recevez des notifications en temps réel lorsque des publications sont créées, programmées, déprogrammées, publiées ou échouent.',
|
|
'new' => 'Créer un webhook',
|
|
'empty_title' => 'Aucun webhook pour le moment',
|
|
'empty_description' => 'Créez un webhook pour recevoir des notifications d\'événements en temps réel.',
|
|
'table' => [
|
|
'endpoint' => 'Endpoint',
|
|
'events' => 'Écoute',
|
|
'status' => 'Statut',
|
|
'last_sent' => 'Dernier envoi',
|
|
],
|
|
'events_count' => '{1} :count événement|[2,*] :count événements',
|
|
'never' => 'Jamais',
|
|
'status' => [
|
|
'enabled' => 'Actif',
|
|
'disabled' => 'Désactivé',
|
|
'paused' => 'En pause',
|
|
],
|
|
'actions' => [
|
|
'view' => 'Voir les détails',
|
|
'copy_id' => 'Copier l\'ID du webhook',
|
|
'delete' => 'Supprimer',
|
|
'edit' => 'Modifier l\'endpoint',
|
|
'enable' => 'Activer l\'endpoint',
|
|
'disable' => 'Désactiver l\'endpoint',
|
|
'rotate' => 'Faire tourner le secret de signature',
|
|
'send_test' => 'Envoyer un événement de test',
|
|
'replay' => 'Renvoyer',
|
|
'reveal_secret' => 'Afficher le secret',
|
|
'hide_secret' => 'Masquer le secret',
|
|
'copy_secret' => 'Copier le secret',
|
|
],
|
|
'create' => [
|
|
'title' => 'Créer un webhook',
|
|
'description' => 'Configurez un endpoint pour recevoir les notifications de webhook.',
|
|
'endpoint' => 'URL de l\'endpoint',
|
|
'endpoint_placeholder' => 'https://example.com/webhooks',
|
|
'events' => 'Événements',
|
|
'events_placeholder' => 'Sélectionner des événements...',
|
|
'events_selected' => '{1} :count événement sélectionné|[2,*] :count événements sélectionnés',
|
|
'search_events' => 'Rechercher des événements...',
|
|
'no_events' => 'Aucun événement trouvé',
|
|
'submit' => 'Créer un webhook',
|
|
'cancel' => 'Annuler',
|
|
],
|
|
'edit' => [
|
|
'title' => 'Modifier l\'endpoint',
|
|
'description' => 'Mettez à jour l\'URL de l\'endpoint et les événements à écouter.',
|
|
'submit' => 'Enregistrer les modifications',
|
|
'cancel' => 'Annuler',
|
|
],
|
|
'delete' => [
|
|
'title' => 'Supprimer le webhook',
|
|
'description' => 'Voulez-vous vraiment supprimer ce webhook ? Vous ne recevrez plus de notifications d\'événements sur cet endpoint.',
|
|
'confirm' => 'Supprimer le webhook',
|
|
'cancel' => 'Annuler',
|
|
],
|
|
'rotate' => [
|
|
'title' => 'Faire tourner le secret de signature',
|
|
'description' => 'Cela génère un nouveau secret de signature. Le secret actuel cesse de fonctionner immédiatement. Mettez à jour votre endpoint pour utiliser le nouveau secret.',
|
|
'submit' => 'Faire tourner le secret',
|
|
'cancel' => 'Annuler',
|
|
],
|
|
'show' => [
|
|
'signing_secret' => 'Secret de signature',
|
|
'last_sent' => 'Dernier envoi :time',
|
|
'listening_for' => 'Écoute',
|
|
'http_status' => 'Statut HTTP',
|
|
'status_code' => ':code - :reason',
|
|
'attempts' => 'Tentatives',
|
|
'delivered_at' => 'Livré le',
|
|
'response_body' => 'Corps de la réponse',
|
|
'response' => 'Réponse',
|
|
'no_response_body' => 'Aucun corps de réponse',
|
|
'no_response' => 'Aucune réponse',
|
|
'payload' => 'Payload du message',
|
|
'empty_title' => 'Aucun événement pour le moment',
|
|
'empty_description' => 'Lorsque des publications sont créées, programmées, déprogrammées ou publiées, les événements du webhook apparaissent ici.',
|
|
],
|
|
'events' => [
|
|
'group_posts' => 'Publications',
|
|
'post_created' => 'Publication créée',
|
|
'post_scheduled' => 'Publication programmée',
|
|
'post_unscheduled' => 'Publication déprogrammée',
|
|
'post_published' => 'Publication publiée',
|
|
'post_partially_published' => 'Publication partiellement publiée',
|
|
'post_failed' => 'Échec de publication',
|
|
'post_deleted' => 'Publication supprimée',
|
|
],
|
|
'http_reasons' => [
|
|
'unknown' => 'Inconnu',
|
|
'200' => 'OK',
|
|
'201' => 'Créé',
|
|
'202' => 'Accepté',
|
|
'204' => 'Aucun contenu',
|
|
'400' => 'Requête incorrecte',
|
|
'401' => 'Non autorisé',
|
|
'403' => 'Interdit',
|
|
'404' => 'Introuvable',
|
|
'408' => 'Délai d\'attente dépassé',
|
|
'422' => 'Entité non traitable',
|
|
'429' => 'Trop de requêtes',
|
|
'500' => 'Erreur interne du serveur',
|
|
'502' => 'Passerelle invalide',
|
|
'503' => 'Service indisponible',
|
|
'504' => 'Délai d\'attente de la passerelle',
|
|
],
|
|
'copied' => [
|
|
'id' => 'ID du webhook copié dans le presse-papiers',
|
|
'secret' => 'Secret de signature copié dans le presse-papiers',
|
|
'response' => 'Corps de la réponse copié',
|
|
'payload' => 'Payload copié',
|
|
],
|
|
'errors' => [
|
|
'endpoint_not_allowed' => 'Cet endpoint n\'est pas autorisé.',
|
|
'endpoint_unreachable' => 'L\'endpoint n\'est pas joignable.',
|
|
'endpoint_http_status' => 'L\'endpoint a renvoyé HTTP :status.',
|
|
],
|
|
'flash' => [
|
|
'created' => 'Webhook créé.',
|
|
'updated' => 'Webhook mis à jour.',
|
|
'deleted' => 'Webhook supprimé.',
|
|
'secret_rotated' => 'Secret de signature renouvelé.',
|
|
'replayed' => 'Événement du webhook renvoyé.',
|
|
'tested' => 'Événement de test envoyé.',
|
|
],
|
|
'mail' => [
|
|
'paused_subject' => 'Webhook en pause : :endpoint',
|
|
'paused_title' => 'Webhook mis en pause après des échecs répétés',
|
|
'paused_preview' => 'Nous avons mis un webhook en pause après 5 échecs de livraison consécutifs.',
|
|
'paused_body' => 'Nous avons mis le webhook de :endpoint en pause après 5 échecs de livraison consécutifs. Vérifiez l\'endpoint et réactivez-le depuis la page de détails du webhook.',
|
|
'paused_cta' => 'Voir le webhook',
|
|
],
|
|
];
|