* 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
5.6 KiB
PHP
139 lines
5.6 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
return [
|
|
'title' => 'Webhooks',
|
|
'description' => 'Ricevi notifiche in tempo reale quando i post vengono creati, programmati, deprogrammati, pubblicati o falliscono.',
|
|
'new' => 'Crea webhook',
|
|
'empty_title' => 'Nessun webhook ancora',
|
|
'empty_description' => 'Crea un webhook per ricevere notifiche di eventi in tempo reale.',
|
|
'table' => [
|
|
'endpoint' => 'Endpoint',
|
|
'events' => 'In ascolto',
|
|
'status' => 'Stato',
|
|
'last_sent' => 'Ultimo invio',
|
|
],
|
|
'events_count' => '{1} :count evento|[2,*] :count eventi',
|
|
'never' => 'Mai',
|
|
'status' => [
|
|
'enabled' => 'Attivo',
|
|
'disabled' => 'Disattivato',
|
|
'paused' => 'In pausa',
|
|
],
|
|
'actions' => [
|
|
'view' => 'Vedi dettagli',
|
|
'copy_id' => 'Copia ID del webhook',
|
|
'delete' => 'Elimina',
|
|
'edit' => 'Modifica endpoint',
|
|
'enable' => 'Attiva endpoint',
|
|
'disable' => 'Disattiva endpoint',
|
|
'rotate' => 'Ruota secret di firma',
|
|
'send_test' => 'Invia evento di test',
|
|
'replay' => 'Reinvia',
|
|
'reveal_secret' => 'Mostra secret',
|
|
'hide_secret' => 'Nascondi secret',
|
|
'copy_secret' => 'Copia secret',
|
|
],
|
|
'create' => [
|
|
'title' => 'Crea webhook',
|
|
'description' => 'Configura un endpoint per ricevere le notifiche webhook.',
|
|
'endpoint' => 'URL dell\'endpoint',
|
|
'endpoint_placeholder' => 'https://example.com/webhooks',
|
|
'events' => 'Eventi',
|
|
'events_placeholder' => 'Seleziona eventi...',
|
|
'events_selected' => '{1} :count evento selezionato|[2,*] :count eventi selezionati',
|
|
'search_events' => 'Cerca eventi...',
|
|
'no_events' => 'Nessun evento trovato',
|
|
'submit' => 'Crea webhook',
|
|
'cancel' => 'Annulla',
|
|
],
|
|
'edit' => [
|
|
'title' => 'Modifica endpoint',
|
|
'description' => 'Aggiorna l\'URL dell\'endpoint e gli eventi da ascoltare.',
|
|
'submit' => 'Salva modifiche',
|
|
'cancel' => 'Annulla',
|
|
],
|
|
'delete' => [
|
|
'title' => 'Elimina webhook',
|
|
'description' => 'Vuoi davvero eliminare questo webhook? Non riceverai più notifiche di eventi su questo endpoint.',
|
|
'confirm' => 'Elimina webhook',
|
|
'cancel' => 'Annulla',
|
|
],
|
|
'rotate' => [
|
|
'title' => 'Ruota secret di firma',
|
|
'description' => 'Questo genera un nuovo secret di firma. Il secret attuale smette di funzionare subito. Aggiorna il tuo endpoint per usare il nuovo secret.',
|
|
'submit' => 'Ruota secret',
|
|
'cancel' => 'Annulla',
|
|
],
|
|
'show' => [
|
|
'signing_secret' => 'Secret di firma',
|
|
'last_sent' => 'Ultimo invio :time',
|
|
'listening_for' => 'In ascolto',
|
|
'http_status' => 'Stato HTTP',
|
|
'status_code' => ':code - :reason',
|
|
'attempts' => 'Tentativi',
|
|
'delivered_at' => 'Consegnato il',
|
|
'response_body' => 'Corpo della risposta',
|
|
'response' => 'Risposta',
|
|
'no_response_body' => 'Nessun corpo della risposta',
|
|
'no_response' => 'Nessuna risposta',
|
|
'payload' => 'Payload del messaggio',
|
|
'empty_title' => 'Nessun evento ancora',
|
|
'empty_description' => 'Quando i post vengono creati, programmati, deprogrammati o pubblicati, gli eventi del webhook appaiono qui.',
|
|
],
|
|
'events' => [
|
|
'group_posts' => 'Post',
|
|
'post_created' => 'Post creato',
|
|
'post_scheduled' => 'Post programmato',
|
|
'post_unscheduled' => 'Programmazione annullata',
|
|
'post_published' => 'Post pubblicato',
|
|
'post_partially_published' => 'Post pubblicato parzialmente',
|
|
'post_failed' => 'Post non riuscito',
|
|
'post_deleted' => 'Post eliminato',
|
|
],
|
|
'http_reasons' => [
|
|
'unknown' => 'Sconosciuto',
|
|
'200' => 'OK',
|
|
'201' => 'Creato',
|
|
'202' => 'Accettato',
|
|
'204' => 'Nessun contenuto',
|
|
'400' => 'Richiesta non valida',
|
|
'401' => 'Non autorizzato',
|
|
'403' => 'Vietato',
|
|
'404' => 'Non trovato',
|
|
'408' => 'Tempo scaduto',
|
|
'422' => 'Entità non elaborabile',
|
|
'429' => 'Troppe richieste',
|
|
'500' => 'Errore interno del server',
|
|
'502' => 'Gateway non valido',
|
|
'503' => 'Servizio non disponibile',
|
|
'504' => 'Tempo scaduto del gateway',
|
|
],
|
|
'copied' => [
|
|
'id' => 'ID del webhook copiato negli appunti',
|
|
'secret' => 'Secret di firma copiato negli appunti',
|
|
'response' => 'Corpo della risposta copiato',
|
|
'payload' => 'Payload copiato',
|
|
],
|
|
'errors' => [
|
|
'endpoint_not_allowed' => 'Questo endpoint non è consentito.',
|
|
'endpoint_unreachable' => 'L\'endpoint non è raggiungibile.',
|
|
'endpoint_http_status' => 'L\'endpoint ha restituito HTTP :status.',
|
|
],
|
|
'flash' => [
|
|
'created' => 'Webhook creato.',
|
|
'updated' => 'Webhook aggiornato.',
|
|
'deleted' => 'Webhook eliminato.',
|
|
'secret_rotated' => 'Secret di firma ruotato.',
|
|
'replayed' => 'Evento del webhook reinviato.',
|
|
'tested' => 'Evento di test inviato.',
|
|
],
|
|
'mail' => [
|
|
'paused_subject' => 'Webhook in pausa: :endpoint',
|
|
'paused_title' => 'Webhook messo in pausa dopo errori ripetuti',
|
|
'paused_preview' => 'Abbiamo messo in pausa un webhook dopo 5 errori di consegna consecutivi.',
|
|
'paused_body' => 'Abbiamo messo in pausa il webhook su :endpoint dopo 5 errori di consegna consecutivi. Controlla l\'endpoint e riattivalo dalla pagina dei dettagli del webhook.',
|
|
'paused_cta' => 'Vedi webhook',
|
|
],
|
|
];
|